Repository navigation
[BUG] Compaction happens every few steps for no reason, context is only around 50% of maximum #8088
Replies: 4 comments
|
Not a coincidence β we hit the same symptom and traced it to the 0.1.7 compaction trigger formula in
And Measured on our side by decoding Full write-up with the 0.1.5-vs-0.1.7 source diff, impact table, session evidence, the Workaround until upstream decides: set |
|
This is what I did for my 90K context window local model, which doom-compact-looped at ~30K: Filecordis.patch.yml Edit
|
|
Iβm still seeing this on DSH Web with I havenβt reproduced the quota impact on Additional evidence from the conversation where I was investigating this: The chat shows three compactions of 7, 3, and 1 history items (~5,539, ~3,672, and ~2,087 tokens), interleaved with just two tool-call batches. [Chat view: three βContext compactedβ entries around two tool-call batches] The timeline separately shows successive checkpoints and an βOpenAI Responses stream ended before a terminal response eventβ error. The footer reads 29% in this capture; that is a UI snapshot, not a measurement of pressure at the exact trigger. The error does not establish that compaction caused the stream failure. [Timeline: repeated COMPACTED/CONTEXT rows, stream error, and 29% footer] Workaround: As a workaround, I had to turn off automatic compaction because the chat kept stalling. In DSH Web, set this on the - id: compaction-basic
name: '@deepseek-ai/dsh-compaction-basic'
config:
auto: falseThis keeps manual Plugin-side settings are tracked in Subscriptions #237. |
|
A concrete example of the budget interaction that @bsmart1120 pointed out: with For a 272,000-token route with no override, the default policy gives @Dudu-0223, since you worked on the output reservation and 64K headroom, would it make sense to let an adapter report a proactive-compaction reservation separately from its default generation cap, or to use a route-specific override in DSH? @imccyu, you touched oversized-summary retry handling; the repeated summarization with little or no progress may be worth tracking separately from the threshold itself. |


Uh oh!
There was an error while loading. Please reload this page.
I just updated to the Next release of DSH, and now I notice it keeps going into compaction early and repeats every few steps

All reactions