-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Roo environment details compression - WIP #1661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roo environment details compression - WIP #1661
Conversation
Implements environment details compression to reduce context window usage while preserving all information. Compresses <environment_details> sections by accumulating state in the last message and removing redundant content from prior messages. Compressed sections, moved to last message: - Current Working Directory Files - VSCode Visible Files - VSCode Open Tabs - Current Time (converted to UTC UNIX) - Current Mode Unmodified sections, retained in existing message order: - Actively Running Terminals (maintains command output) - Inactive Terminals (maintains command output) Signed-off-by: Eric Wheeler <[email protected]>
Adds task resumption message compression to reduce token usage while preserving all information. Compresses task resumption messages by keeping only the most recent one and preserving environment details from removed messages. - Earlier task resumption messages removed - Environment details preserved from removed messages - Most recent task resumption message kept Signed-off-by: Eric Wheeler <[email protected]>
Add getDebugFilenames helper to generate consistent debug filenames that: - Include test type in the filename for better identification - Use conv_ prefix to maintain consistency with existing files - Follow format: conv_[before|after]_compression_[testType]_[timestamp]_[date]--[time].json This makes it easier to identify which test generated each debug file. Signed-off-by: Eric Wheeler <[email protected]>
- Update VSCode section handling to exclude empty sections - Remove '(No visible files)' and '(No open tabs)' placeholders - Remove VSCode sections that become empty - Add tests: - Verify empty VSCode sections are excluded - Test VSCode sections becoming empty - Test mixed VSCode section states - Verify no empty placeholders are added Signed-off-by: Eric Wheeler <[email protected]>
|
@KJ7LNW I found your PR after my changes. Did you already include this? On longer runs i have a a list of response temp. files in the env. details. I would like to create a PR to prevent the temp. files from # VSCode Visible Files |
I am sorry I am not familiar with your changes, can you elaborate or point me at a PR to read up on?
I am not familiar with this issue can you post me an entire example of your <environment_details> section so I can understand better? OTOH, if you are referring to the temp files that this WIP currently creates, eventually I will turn those off, but I need them for troubleshooting. |
|
this is what I am referring to:
Remove empty VSCode sections entirely |
|
This is the complete change set: d-oit@69b50f3 background info vs. code temp files: |
I think I understand you now. I looked at your patch and it appears to hard-code filter anything named Questions:
|
You are right ignore these. |
|
Hey @KJ7LNW, |
Context
Implementing environment details compression to reduce token usage while preserving full context. Environment details contain redundant information across messages that can be optimized without losing information.
How to Test
This is not ready for public testing, I am putting it up to prevent duplicate effort.
Implementation
The compression strategy:
Deduplicated into last message:
Kept in each message:
Special handling - "Current Time":
Section cleanup:
Screenshots
n/a