fix(policy): address review feedback for wildcard policy

- add checkExhaustive to switch block in ApprovalModeIndicator.tsx
- add test coverage for wildcard styling in InputPrompt.test.tsx
- update lingering YOLO comment in exit-plan-mode.ts
This commit is contained in:
Spencer
2026-03-20 13:20:40 +00:00
parent 9a4ead65e7
commit c361970215
4 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ Ask the user for specific feedback on how to improve the plan.`,
// For non-interactive environment requires minimal user action, exit as AUTO_EDIT mode for plan implementation.
return ApprovalMode.AUTO_EDIT;
}
// By default, YOLO mode in interactive environment cannot enter/exit plan mode.
// By default, wildcard policies in interactive environment cannot enter/exit plan mode.
// Always exit plan mode and move to default approval mode if exit_plan_mode tool is configured with allow decision.
return ApprovalMode.DEFAULT;
}