Roo-Code/src/integrations
roomote[bot] 37300ef0c5
fix: add character limit to prevent terminal output context explosion (#5777)
* fix: add character limit to prevent terminal output context explosion

- Enhanced truncateOutput function to accept character limits alongside line limits
- Character limits take priority over line limits to prevent context window explosion
- Added terminalOutputCharacterLimit setting (default: 100,000 characters)
- Updated all terminal output processing to use both limits
- Added comprehensive tests for character limit functionality

Fixes #5775

* feat: add terminal output character limit setting to UI

- Add character limit slider to Terminal Settings UI (default: 50,000)
- Update ExtensionStateContext to manage character limit state
- Add validation for positive character limit values
- Add English translation and translations for all 17 supported languages
- Connect UI to backend through proper message handling
- Character limit takes precedence over line limit to prevent memory issues

* fix: update test expectations for character limit edge cases

- Fix multi-byte character test to account for JavaScript's string length behavior
- Fix newline content test to match actual slice behavior
- Tests now correctly validate the truncateOutput function's character limit handling

---------

Co-authored-by: Roo Code <roomote@roocode.com>
Co-authored-by: Daniel Riccio <ricciodaniel98@gmail.com>
2025-07-19 13:26:25 -04:00
..
claude-code feat: enable Claude Code provider to run natively on Windows (#5615) 2025-07-14 14:12:39 -04:00
diagnostics Farewell jest (#4607) 2025-06-16 21:39:45 -07:00
editor feat: add configurable delay for Go diagnostics to prevent premature error reporting (#5863) 2025-07-18 16:12:00 -04:00
misc fix: add character limit to prevent terminal output context explosion (#5777) 2025-07-19 13:26:25 -04:00
terminal fix: add character limit to prevent terminal output context explosion (#5777) 2025-07-19 13:26:25 -04:00
theme Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
workspace Farewell jest (#4607) 2025-06-16 21:39:45 -07:00