fix(plan-mode): require manual ExitPlanMode approval in yolo (#1440)

This commit is contained in:
Devansh Jain
2026-03-18 17:03:32 -07:00
committed by GitHub
parent 59abc529de
commit 011731ea9e
7 changed files with 118 additions and 51 deletions

View File

@@ -1944,8 +1944,8 @@ ${SYSTEM_REMINDER_CLOSE}
})),
...needsUserInput.map((ac) => {
// One-shot headless mode has no control channel for interactive
// approvals. Match Claude behavior by auto-allowing EnterPlanMode
// while denying tools that need runtime user responses.
// approvals. Auto-allow plan-mode entry/exit tools, while denying
// tools that need runtime user responses.
if (isHeadlessAutoAllowTool(ac.approval.toolName)) {
return {
type: "approve" as const,