"Plan Mode Fails to Prevent Unintended Code Editing Operations"
Bug Description Bug Report: Plan Mode Not Preventing Edit Operations Issue Description: I've discovered that the Plan Mode feature in Claude Code does not consistently prevent editing operations as intended. Steps to Reproduce:
Enable Plan Mode and provide requirements to Claude Code Claude Code generates a plan as expected While still in Plan Mode (forgot to disable it), prompt Claude Code to implement the plan Claude Code proceeds to perform all editing operations despite Plan Mode being active
Expected Behavior: When Plan Mode is enabled, Claude Code should only generate plans and should not perform any file editing operations. Actual Behavior: Claude Code performs editing operations even when Plan Mode is active, indicating that the mode restriction is not functioning properly. Additional Suggestion: The keyboard shortcut for Plan Mode should be reconsidered. Currently, it shares the same toggle mechanism with Auto Edit, requiring users to cycle through options. It would be more efficient to have a dedicated keyboard shortcut for Plan Mode to allow direct toggling without cycling through other modes. Impact: This defeats the purpose of Plan Mode, which is meant to allow users to review and approve plans before any code modifications are made.
Environment Info
- Platform: macos
- Terminal: iTerm.app
- Version: 1.0.17
- Feedback ID: 467b3733-629c-4f19-acb8-7faa29ac813f
Note: Error logs were truncated.
Thanks for the report - I was able to repro this issue.
Fix incoming in 1.0.18. Thanks for the report!
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.