[BUG] Possible CACHE poision in processing images from file system
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 claude code should proccess screenshots from stored files, for example screens-*.png (defined in prompt) and one of files is corrupted, it ended with error taht could not process image. and all
other prompts fails on same error till /clear command is issued. possible cache poison.
What Should Happen?
after repeating same or modified prompt, there should be new image file reading and processing. or should be there some checksum check if file was changed.
Error Messages/Logs
Steps to Reproduce
Sample prompt with bad png file in the way:
Go through the screenshots in the logs/dark-*.png files in the directory. I highlighted the problems and inconsistencies in yellow, especially in dark mode. But some are bad in both modes.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.81
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗