You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] File editing operations are not blocked in plan mode #2467
File editing tools (Edit, Write, MultiEdit) can be executed even when in plan mode, which should only allow read-only operations.
Steps to Reproduce
Start a conversation with plan mode active (user uses /p or similar)
Claude attempts to use Edit or Write tools during planning phase
The tools execute successfully and modify files instead of being blocked
Expected Behavior
In plan mode, all write operations should be rejected with an error
Only read-only tools (Read, LS, Grep, Glob, etc.) should be allowed
System should prevent file modifications until exit_plan_mode is approved
Actual Behavior
Edit, Write, and other modification tools execute normally
Files are actually modified despite being in plan mode
No error or warning is shown when attempting write operations
The system-reminder about plan mode is present but not enforced
Additional Context
This defeats the purpose of plan mode, which is meant to prevent unintended modifications while planning tasks. The system-reminder clearly states "you MUST NOT make any edits, run any non-readonly tools"
but the tools still execute when called.
Example: During plan mode, I was able to:
Create new files with Write tool
Edit existing files with Edit tool
These changes persisted even though the user hadn't approved the plan
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.
Activity
github-actions commentedon Aug 16, 2025
Found 2 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Aug 21, 2025
This issue has been automatically closed as a duplicate of #5406.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Aug 29, 2025
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.