[BUG] Claude falsely reports "Error editing file" when you confirm "Yes but..."
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?
If I respond to Claude's prompt to OK an edit of a file with Yes, _additional questions_ , Claude often answers my question then falsely reports "Error editing file" in orange.
What Should Happen?
Claude shouldn't confuse the user with these errors that aren't errors.
Error Messages/Logs
● [Claude answers my question]
⎿ Error editing file
Steps to Reproduce
Circumstances vary, but something like:
- Ask Claude to make a change that involves editing a file.
- When it prompts for confirmation, press [Tab] to modify its :1. Yes" prompt to ask it something unrelated.
When it continues, it will often display "Error editing file"
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.71
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
I asked Claude why it does this. Its own analysis:
why does your terminal output keep displaying in orange "Error editing file"?
● That's a bug in the Claude Code display — it's showing the failed tool call (the one you interrupted) in orange as an error, even though the subsequent retry succeeded. The file was actually edited correctly on the second attempt. It's a UI glitch, not a real error.
- - - -
This might be related to issue #3471
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗