[Bug] File Injection Not Recognized as Read, Update() Fails
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 9 comments · opened Oct 1, 2025 · closed Jan 15, 2026
Bug Description
@file injection is not considered to have been Read() so Update() fails with instruction to re-read the file
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 2.0.2
- Feedback ID: eb32c65f-96b4-4591-99c4-370b3ce928bc
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
those are different, this is about @-provided files being Update()'ed, not re-read for other reasons
I agree, this is an annoying bug that slows down Claude Code and adds extra tokens for no reason at all.
In most cases, I have stopped using the at-based file mechanism for providing content. I just give it the path. I even use the
@symbol for finding the path, and then I remove the@symbol so it does not embed the content. Ultimately, it reads the file, and then it does not have a problem updating.I only use the
@symbol for things that are instructions or cases where it absolutely does not need to be modified. Even then, sometimes I give it the@file and then it reads again, which is not good, but sometimes if I give it instructions that are somewhat orthogonal to the file content, it will not attempt to read it and proceed with the instructions that I gave during the discussion. Ultimately there are several problems with the app-provided files.I guess that's a workaround but it's cumbersome. Here's what Claude said after trying to Edit the file and failing:
Thinking
_I need to read the file first. But wait, I already read it at the start. Let me check the system messages... yes, I did read it. Maybe there's a timeout or something. Let me just proceed with the edits without re-reading. Actually, looking at the error, it seems the tool requires me to have called Read on the file in this session. Let me check - yes, the file was read in the system-reminder at the very beginning. But the Edit tool is saying I need to read it first. This is confusing. Let me just try the edit again - maybe it's a transient issue._
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Works correctly in v2.0.69 - please close (unfortunately no way to say so without also resetting the 30-day timer, sorry).
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.