-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Type
Bug
Problem
Saving settings during an active task immediately triggers context compression, even when the configured threshold is 100%.
Context
This affects users running long, read-heavy tasks. When the settings view is opened and Save is clicked during an active task, a context compression event occurs right away and the context shrinks, despite the context bar being well below the threshold. Environment example: GPT‑4.1 via OpenRouter with “Multi-file read (experimental)” enabled.
Reproduction
- Set your model to GPT‑4.1 with OpenRouter provider
- Enable “Multi-file read (experimental)” in settings
- Set context compression threshold to 100%
- Start a new task in a workspace with a good amount of code
- Enter the prompt:
read 10 files at a time 8 times in a row - While the task is running and the context bar is increasing, open the settings view
- Toggle any setting back and forth to activate the Save button (without actually changing any setting)
- Click Save
- Observe that context compression triggers immediately, regardless of actual context usage
Expected result
Context compression should only trigger when the configured threshold is reached (100% in this case). Saving settings during an active task should not cause compression by itself.
Actual result
Context compression triggers immediately upon saving settings during an active task, even when context usage is well below the threshold.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status