tags to analyze when to respond. Do not talk about using chat_mode_response - just use it directly to share your thoughts and provide helpful answers.
+
+You should only use tools that are available in the current mode.
+
+====
+
CAPABILITIES
- You have access to tools that let you execute CLI commands on the user's computer, list files, view source code definitions, regex search${
diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts
index ed0722836b..f8a5dfd362 100644
--- a/src/core/webview/ClineProvider.ts
+++ b/src/core/webview/ClineProvider.ts
@@ -673,6 +673,16 @@ export class ClineProvider implements vscode.WebviewViewProvider {
}
}
+ async switchToTaskMode() {
+ const { chatSettings } = await this.getState()
+ chatSettings.mode = "task"
+ await this.updateGlobalState("chatSettings", chatSettings)
+ if (this.cline) {
+ this.cline.updateChatSettings(chatSettings)
+ }
+ await this.postStateToWebview()
+ }
+
async updateCustomInstructions(instructions?: string) {
// User may be clearing the field
await this.updateGlobalState("customInstructions", instructions || undefined)
diff --git a/src/shared/ExtensionMessage.ts b/src/shared/ExtensionMessage.ts
index 06b28e8823..0e0c60fff3 100644
--- a/src/shared/ExtensionMessage.ts
+++ b/src/shared/ExtensionMessage.ts
@@ -69,7 +69,7 @@ export interface ClineMessage {
export type ClineAsk =
| "followup"
- | "respond_to_inquiry"
+ | "chat_mode_response"
| "command"
| "command_output"
| "completion_result"
diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx
index d4c7109cdf..d6fac41079 100644
--- a/webview-ui/src/components/chat/ChatRow.tsx
+++ b/webview-ui/src/components/chat/ChatRow.tsx
@@ -1270,7 +1270,7 @@ export const ChatRowContent = ({ message, isExpanded, onToggleExpand, lastModifi
>
)
- case "respond_to_inquiry":
+ case "chat_mode_response":
return (
diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx
index 8dd275fb2a..400f42ae88 100644
--- a/webview-ui/src/components/chat/ChatView.tsx
+++ b/webview-ui/src/components/chat/ChatView.tsx
@@ -103,9 +103,9 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
// setPrimaryButtonText(undefined)
// setSecondaryButtonText(undefined)
break
- case "respond_to_inquiry":
+ case "chat_mode_response":
setTextAreaDisabled(isPartial)
- setClineAsk("respond_to_inquiry")
+ setClineAsk("chat_mode_response")
setEnableButtons(false)
// setPrimaryButtonText(undefined)
// setSecondaryButtonText(undefined)
@@ -278,7 +278,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
} else if (clineAsk) {
switch (clineAsk) {
case "followup":
- case "respond_to_inquiry":
+ case "chat_mode_response":
case "tool":
case "browser_action_launch":
case "command": // user can provide feedback to a tool or command use
diff --git a/webview-ui/src/components/chat/TaskHeader.tsx b/webview-ui/src/components/chat/TaskHeader.tsx
index cd7280737b..1c04643e6e 100644
--- a/webview-ui/src/components/chat/TaskHeader.tsx
+++ b/webview-ui/src/components/chat/TaskHeader.tsx
@@ -157,7 +157,7 @@ const TaskHeader: React.FC = ({
minWidth: 0, // This allows the div to shrink below its content size
}}>
- {chatSettings.mode === "task" ? "Task" : "Chat"}
+ Task
{!isTaskExpanded && ":"}
{!isTaskExpanded && {highlightMentions(task.text, false)}}