This commit is contained in:
Saoud Rizwan 2025-01-20 20:55:09 -08:00
parent 6ceda01b24
commit d25fa0b14e
3 changed files with 6 additions and 5 deletions

View file

@ -3289,13 +3289,11 @@ export class Cline {
details += "\n\n# Current Mode"
if (this.chatSettings.mode === "plan") {
details += "\nPLAN MODE"
details +=
"\nIn this mode you should focus on information gathering and architecting a solution. If you haven't done so already, it's a good idea to start by reading files to get context and then asking questions."
details += "\nIn this mode you should focus on information gathering, asking questions, and architecting a solution."
details +=
'\n(Remember: You now have access to the plan_mode_response tool, which allows you to engage in a more conversational back and forth with the user rather than jumping into executing the task. If it seems the user wants you to use tools only available in ACT MODE, you should ask the user to "toggle to Act mode" - they will have to manually do this themselves with the Plan/Act toggle button below. You do not have the ability to switch to ACT MODE yourself, and must wait for the user to do it themselves once they are satisfied with the plan.)'
} else {
details += "\nACT MODE"
details += "\n(Remember: You cannot use the plan_mode_response tool.)"
}
return `<environment_details>\n${details.trim()}\n</environment_details>`

View file

@ -85,7 +85,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
private cline?: Cline
private workspaceTracker?: WorkspaceTracker
mcpHub?: McpHub
private latestAnnouncementId = "jan-20a-2025" // update to some unique identifier when we add a new announcement
private latestAnnouncementId = "jan-20-2025" // update to some unique identifier when we add a new announcement
constructor(
readonly context: vscode.ExtensionContext,

View file

@ -32,7 +32,10 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
<ul style={{ margin: "0 0 8px", paddingLeft: "12px" }}>
<li>
<b>Plan/Act mode toggle:</b> Plan mode lets Cline focus on gathering information, asking clarifying questions,
brainstorm ideas, and architect a solution. Switch back to Act mode to let him execute the plan!
brainstorm ideas, and architect a solution. Switch back to Act mode to let him execute the plan!{" "}
<VSCodeLink href="https://x.com/sdrzn/status/1876378124126236949" style={{ display: "inline" }}>
See a demo here.
</VSCodeLink>
</li>
<li>
<b>Quick API/model switching</b> with a new popup menu under the chat field