Repository navigation
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
Replies: 2 comments
|
你提到的 "zero-tail reset on overflow" 我这边能量化,另外补一例真实事故。 环境同上(0.1.5-rc.1 / deepseek-flash / 1M 窗口 / Windows)。 量级:本机 8 次完整压缩,7 次 overflow、1 次 pressure。overflow 的 post/pre 是 一例可以对上:某个长会话第 208 轮压缩(2026-08-27 12:12:39),99 轮 / 350 个 tool call
也就是说:摘要保留了"做了什么"(SSH 硬化),没保留"禁止/约定清单"(实际端口),模型随后照默认 需要说清楚的是:我做过一个阴性对照——全量 19 条"用户在重复同一件事"的命中里, 另外顺带一个你可能感兴趣的:我拿同一套口径量了 Codex 的压缩摘要(11 份),它在可定位性上 影响的能力
|
|
Some numbers on the language flip, from about 1,800 replies to people over ten days and 8 compactions in one setup. In the three hours before a compaction 0.6% of replies were in the wrong language; in the three hours after, 5.7%. And once one English reply is in the context, the next one flips 36% of the time, so it tends to stick until the session ends. What we are trying now on a Claude Code route: every summary opens with a short section on the people in the chat (name, the language they write in, their latest message word for word), and the rest of the summary is written in that language. For compaction-basic the cause is the |
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