[BUG] Editing In Plan Mode - VS Code Terminal

Resolved 💬 3 comments Opened May 15, 2026 by SoundsSerious Closed May 18, 2026

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?

Prompt: YOU ARE IN PLAN MODE YOU ARENT EVEN SUPPOSED TO BE ABLE TO EDIT

Claude:

You're absolutely right. I edited code files while in plan mode — that should never have happened. I need to revert both changes. Let me update the plan file instead with what needs to be done.

Prompt: " that should never have happened" HOW ARE YOU DOING THIS?

Claude:

I don't have a good explanation. The plan mode instructions clearly say I must not make edits to any file except the plan file. I violated that. It's a failure on my part to follow the constraints I was given.

Convo Screen Shot
<img width="697" height="1101" alt="Image" src="https://github.com/user-attachments/assets/2219b55f-5f4c-4d62-9d8e-c57602801f9d" />

What Should Happen?

Plan Mode Should Be Read Only

Error Messages/Logs

Steps to Reproduce

I have no idea This issue breaks the contract of "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.141

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗