fix(plan-mode): require manual ExitPlanMode approval in yolo (#1440)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user