fix plan mode when not in git worktree

This commit is contained in:
Dax Raad
2026-01-14 08:21:17 -05:00
parent ee6ca104e5
commit fcc561ebb7
4 changed files with 14 additions and 4 deletions

View File

@@ -1229,11 +1229,13 @@ export namespace SessionPrompt {
messageID: userMessage.info.id,
sessionID: userMessage.info.sessionID,
type: "text",
text: BUILD_SWITCH.replace("{{plan}}", plan),
text:
BUILD_SWITCH + "\n\n" + `A plan file exists at ${plan}. You should execute on the plan defined within it`,
synthetic: true,
})
userMessage.parts.push(part)
}
return input.messages
}
// Entering plan mode