Auto-compaction silently resets long-running conversations: English-only checkpoints, zero-tail reset on overflow, and no user control — request for a “continuous conversation” mode #5650
TuringCorp-net
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The real-world usage that breaks
A common — for me, daily — pattern is one project ↔ one very long conversation. We keep chatting for hundreds of rounds: multi-stage plans, debugging sessions in the middle of step 2 of a fix, live architecture discussions. At the moment the thread matters most — often while a long autonomous task is still running in the background — the conversation "blows up":
Opening a new conversation mid-task is not an option (the live thread is the work), and a manual
/compactproduces the same amnesia. The net effect is the worst possible experience: the assistant turns into a stranger at the worst possible moment.Code references (0.1.1-rc.2)
dsh-compaction-basic: auto-compaction registers onagent/pre-step(pressure trigger) andagent/request-error(context-window-exceeded trigger).auto: config.auto ?? true,thresholdRatio = 0.8,retainRatio = 0.16, summary budgetmaxTokens = 8192; the overflow path calls the range selector withretainTokens = 0.Feature request
Reference implementation
We hit this badly in daily use and open-sourced a plugin implementing point 3: MosaicMemoryCompress — https://github.com/TuringCorp-net/mosaic-memory-compress (also listed on https://awesome-dsh-plugin.com). Recent ~30 rounds stay verbatim, middle rounds are dehydrated incrementally, ancient rounds fold into a compact summary pair, the original language is preserved, the steady-state message count is constant (same at round 60 or round 15,000), and the conversation never resets. Happy to adapt or contribute if that direction is useful.
Related threads sharing the "long conversations are not first-class" theme: #211 (UI freeze at long context), #370 (long sessions fail to open), #238 (TokenMeter O(n²) on long sessions).
All reactions