claude-code - 💡(How to fix) Fix [BUG] Claude is making changes in ? (ping-pong mode) without asking [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55561Fetched 2026-05-03 04:50:13
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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:

  1. When Claude calls the Edit tool, a diff should be shown
  2. User should be prompted to approve/reject the change
  3. Edit only applied after explicit approval

No "Exited Plan Mode" message should appear unless actually exiting plan mode.

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code in ? (ping-pong) mode
  2. Ask Claude to make a code change (e.g., "change label from X to Y")
  3. Claude calls Edit tool
  4. BUG: Edit applies immediately without confirmation prompt
  5. 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" />

extent analysis

TL;DR

The issue can be mitigated by downgrading to a previous version of Claude Code where the functionality worked as expected, as the current version 2.1.15 has a regression causing the bug.

Guidance

  • Review the differences in mode state tracking between the current version (2.1.15) and the last known working version to identify potential causes of the corruption.
  • Verify that the "Exited Plan Mode" message is correctly conditional on actually exiting plan mode, suggesting a logic error in the current implementation.
  • Test the ? (ping-pong) mode with various edit operations to ensure the confirmation dialog appears as expected and edits are only applied after approval.
  • Consider reporting the last working version to help in pinpointing the regression.

Example

No specific code snippet can be provided without access to the Claude Code source, but reviewing the conditional logic for mode transitions and edit confirmations would be a good starting point.

Notes

The provided images do not offer direct insight into the issue, and without access to the codebase or more detailed logs, pinpointing the exact cause is challenging. The fact that this is a regression suggests a recent change introduced the bug.

Recommendation

Apply workaround: Downgrade to the last known working version until the issue is resolved in a future update, as the current version has a confirmed regression affecting the desired functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING