Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/utils/ui/modeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { ToolPolicy } from "@/common/utils/tools/toolPolicy";
*/
export function getPlanModeInstruction(planFilePath: string, planExists: boolean): string {
const fileStatus = planExists
? `A plan file already exists at ${planFilePath}. You can read it and make incremental edits using the file_edit_* tools.`
? `A plan file already exists at ${planFilePath}. First, read it to determine if it's relevant to the current request. If the current request is unrelated to the existing plan, delete the file and start fresh. If relevant, make incremental edits using the file_edit_* tools.`
: `No plan file exists yet. You should create your plan at ${planFilePath} using the file_edit_* tools.`;

return `You are in Plan Mode. ${fileStatus}
Expand Down