[Bug] Rewind/Compact prevents re-reading unchanged files removed from context
Resolved 💬 3 comments Opened Apr 11, 2026 by GlassBricks Closed Apr 12, 2026
Bug Description
When using rewind or compact, if claude reads a file that was read before in the compacted/rewinded section, but is no longer in context because of the rewind/compact, the read tool doesn't read it due to "unchanged since last read". But the file is no longer in context. Looks like whatever mechanism tracks already read files doesn't get reset on compact or rewind.
Side note: claude occasionally but not reliably works around this by using cat/sed instead
Environment Info
- Platform: linux
- Terminal: kitty
- Version: 2.1.101
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗