Design contradiction with exit_plan_mode tool in non-interactive plan mode (-p option)
Problem Overview
There is a design contradiction regarding the exit_plan_mode tool call when using plan mode with the -p (non-interactive) option.
Specific Issues
1. Logical Contradiction in Non-Interactive Mode
- When using the
-poption, users cannot provide interactive confirmation - However, the system always instructs to call
exit_plan_mode - Result: "Permission error" occurs every time
2. Conflict Between User Instructions and System Reminders
- User: "Don't call exit_plan_mode"
- System reminder: "Always call exit_plan_mode"
- This contradiction prevents the AI from functioning properly
3. UX Problem
- Users just want to review the plan, but unnecessary error messages are displayed
- The workflow is interrupted
Proposed Solution
if (planMode && nonInteractiveMode) {
// Skip exit_plan_mode call
// Display plan and exit
} else if (planMode && interactiveMode) {
// Call exit_plan_mode as usual
}
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.