claude-code - 💡(How to fix) Fix [BUG] Plan mode not read-only: Claude executed git add and git commit without permission [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#52769Fetched 2026-04-25 06:21:28
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

Code Example

Can we replace the editor to something that allows editing in markdown, but translates it to html, and also reads the html to translate to markdown? Is it possible?

---

Alright, go ahead.

---
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?

Two things are important to note that happened in plan mode. I had plan mode selected My first promot

Can we replace the editor to something that allows editing in markdown, but translates it to html, and also reads the html to translate to markdown? Is it possible?

Claude edited my files here. I thought the pop up for asking a go ahead was not shown so next command I gave was

Alright, go ahead.

This is when Claude committed the code changes! So basically it makes the code change and also commits it without asking for any permissions in "Plan Mode"!!!

Please note that my "Bypass permissions" is disabled from the settings.

<img width="270" height="195" alt="Image" src="https://github.com/user-attachments/assets/cc045e66-2300-4703-b52c-e6520cb85c13" />

What Should Happen?

Description:

In Claude Code Desktop, with Plan mode selected, Claude unexpectedly executed tool commands and committed changes instead of staying read-only. Plan mode is meant to prevent tool execution entirely, so this is not expected behavior.

Error Messages/Logs

Steps to Reproduce

  • Start a normal local session in Claude Code Desktop.
  • Select Plan mode from the option below the text input area.
  • Ask Claude about writing a new feature and mention a query.
  • Observe Claude run perform edits. Note: I switched from Accept Edits mode to Plan mode, and then entered the query.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.3883.0

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by ensuring that the "Bypass permissions" setting is enabled and properly configured, or by avoiding the use of phrases that might be misinterpreted as explicit commands in Plan mode.

Guidance

  • Verify that the "Bypass permissions" setting is correctly disabled and that the intended behavior of Plan mode is understood, as the current behavior seems to contradict the expected read-only functionality.
  • Test whether rephrasing the query or command to avoid implicit execution instructions (e.g., "Alright, go ahead") prevents Claude from executing unintended actions in Plan mode.
  • Consider reporting this as a regression bug since it worked in a previous version, and provide more details about the last working version if possible.
  • Review the documentation or support resources for Claude Code to ensure that the usage of Plan mode and the "Bypass permissions" setting is correctly understood.

Example

No specific code snippet can be provided without more context on the internal workings of Claude Code or the Anthropic API.

Notes

The exact cause of the issue is unclear without more information on how Claude Code interprets commands in Plan mode or how the "Bypass permissions" setting affects this behavior. The fact that this is reported as a regression suggests a potential bug in the current version.

Recommendation

Apply workaround: Until the root cause is identified and fixed, users can try to apply workarounds such as carefully phrasing their queries to avoid triggering unintended executions in Plan mode.

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