Roo-Code/packages
Roo Code f53f674aba fix: prevent context exhaustion when reading large files
- Add file size check to reject files larger than 10MB
- Add largeFileLineThreshold setting (default 5000 lines)
- When maxReadFileLine is -1 and file exceeds threshold, automatically truncate to first 1000 lines
- Add configuration options for the threshold
- Add tests for the new functionality

This prevents the 'Failed to condense' error when Roo Code accidentally tries to read very large files, which was causing context window exhaustion and loss of task memory.

Fixes #6069
2025-07-22 17:43:33 +00:00
..
build Sharing improvements (#5082) 2025-06-24 16:36:32 -04:00
cloud Bugfix: Cloud: be more specific about session error codes (#6051) 2025-07-22 07:16:15 -07:00
config-eslint Upgrade to ESLint 9 + share eslint config across workspaces (#3815) 2025-05-21 21:30:21 -07:00
config-typescript Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00
evals Fix evals; broken by #5865 (#6065) 2025-07-22 09:18:38 -07:00
ipc Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
telemetry Git repo cloud telemetry (#5119) 2025-06-25 17:01:32 -07:00
types fix: prevent context exhaustion when reading large files 2025-07-22 17:43:33 +00:00