Repository navigation
Session log becomes unreadable: compaction summary shadows the protected system head (0.2.1-rc.2, still on rc.5) #11580
环境
项 | 值
-- | --
DSH | 桌面版 0.2.1-rc.2(nightly 通道,app.asar 2026-10-17)
关键包 | @deepseek-ai/dsh-compaction-basic@0.2.1-rc.2、@deepseek-ai/dsh-session-persistence-jsonl@0.2.1-rc.2、dsh-session-format-v2-to-v3 / v3-to-v4@0.2.1-rc.2
OS | Windows 11 x64
模型 | deepseek-flash(1M 上下文)
自定义插件 | 有若干第三方插件,但 compaction / persistence 均为官方原版,未打补丁
日志格式 | session.v4.jsonl.zstd(zstd 多帧)
修复后又继续对话的会话,逐段统计都是 100%(「新增压缩数 = 新增违规数」): 代码块 决定性证据: |
Replies: 1 comment 2 replies
|
Your reader quote is right, but seq 8 doesn't end up in the span through the positional
Your repair confirms it: it only edits the summary and the file validates, so no checkpoint ever replaced seq 8, and those compactions never applied. Check the zstd -dc session.v4.jsonl.zstd | jq -c 'select(.type == "compaction/summary" or .type == "compaction/end") | {seq, type, start: .data.shadowedRange.start, error: .data.error}'So the question is what requests that range. I ran this against the published 0.2.1-rc.2 and rc.5 packages (Node 24.18, macOS). With a system head at node 0, automatic compaction started at node 1, also after a mid-session |
That's a clean control, thanks for running it. Same profile, same
start, only the plugin'scontextCompactionEnabledturned off, and the auto compaction lands. So the failing calls come fromdsh-graphmemory's owncompactRegionpath, not the core one.Both of your open points are issue material rather than something I can settle from here:
dsh-graphmemoryauthor: it starts atsurface[0]without thefirstIdxskipselectCompactableRangedoes, and your per-session success/failure counts are exactly the evidence they'll need.compactRegionto reje…