[BUG] Claude is making changes in ? (ping-pong mode) without asking
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When in ? (ping-pong) mode, Claude made file edits without showing the confirmation dialog. The edits were applied directly as if in auto-accept mode.
Additionally, after the edits were applied, a spurious ## Exited Plan Mode system message appeared even though I was never in plan mode - I was in ? mode the entire time.
This suggests the mode state tracking is broken/corrupted.
What Should Happen?
In ? (ping-pong) mode:
- When Claude calls the Edit tool, a diff should be shown
- User should be prompted to approve/reject the change
- Edit only applied after explicit approval
No "Exited Plan Mode" message should appear unless actually exiting plan mode.
Error Messages/Logs
Steps to Reproduce
- Start Claude Code in ? (ping-pong) mode
- Ask Claude to make a code change (e.g., "change label from X to Y")
- Claude calls Edit tool
- BUG: Edit applies immediately without confirmation prompt
- BUG: "Exited Plan Mode" message appears despite never being in plan mode
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.15
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<img width="1290" height="972" alt="Image" src="https://github.com/user-attachments/assets/64794705-8c56-49b8-98dd-42fbd54f61aa" />
<img width="1344" height="830" alt="Image" src="https://github.com/user-attachments/assets/8fa06125-3f52-4b5f-b01a-d8fb4d98b88e" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗