[BUG] system-reminder injections for modified files have no size cap, injecting 695-line files in full
Resolved 💬 4 comments Opened Feb 21, 2026 by dnedal Closed Feb 24, 2026
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?
system-reminder injections for modified files have no size cap, injecting 695-line files in full
What Should Happen?
There should be a size cap or some other guardrail against this behavior, like not monitoring large static files unless needed.
Error Messages/Logs
Steps to Reproduce
N/A, just happens.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.49
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗