claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

"Plan Mode Fails to Prevent Unintended Code Editing Operations"

Open BobbyWang0120 opened this issue 6 months ago • 1 comments

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.

BobbyWang0120 avatar Jun 09 '25 21:06 BobbyWang0120

Thanks for the report - I was able to repro this issue.

igorkofman avatar Jun 09 '25 22:06 igorkofman

Fix incoming in 1.0.18. Thanks for the report!

bcherny avatar Jun 10 '25 04:06 bcherny

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.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]