[BUG] Claude Code TUI reads stale plan after edit in VS Code
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?
After generating a plan with Claude Code in the TUI, and then using Ctrl+g to edit the plan in VS Code the version that the terminal displays is the edited version, but the plan that is used in implementation does not have the edits (it reverts to a pre-edit state, or uses a cached version).
What Should Happen?
The agent given the task of implementing uses the plan displayed for approval.
Error Messages/Logs
Steps to Reproduce
- Ctrl+G opens plan file in VS Code
- Edit, save, and close temp plan file in VS Code
- Switch back to terminal - edits appear displayed
- But Claude's Read tool gets stale/old content
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.76
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
Discussing with the agent, it suggests: "This is likely a file caching issue where Claude Code isn't invalidating its cache when the file changes externally. The display might be showing the file correctly, but the Read tool is returning cached content."
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗