Design contradiction with exit_plan_mode tool in non-interactive plan mode (-p option)

Resolved 💬 3 comments Opened Jul 18, 2025 by zio3 Closed Jan 5, 2026

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 -p option, 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
}

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗