HackerTrans
トップ新着トレンドコメント過去質問紹介求人

aciccarelli2

no profile record

投稿

Claude Code's compaction discards data that's still on disk

github.com
31 ポイント·投稿者 aciccarelli2·5 か月前·23 コメント

コメント

aciccarelli2
·5 か月前·議論
I hit this while pasting ~8K of DOM markup into Claude Code and iterating on selectors for a Chrome extension. About 40 minutes in, compaction fired and the summary said "user provided DOM markup" but the actual content was gone. Claude started guessing at selectors it had seen 20 minutes earlier.

The transcript with the original markup is still sitting at ~/.claude/projects/ as a .jsonl file — the compaction summary just has no pointer back to it.

I found 8+ open issues on the repo describing different symptoms of this same root cause. The proposal is to add line-range annotations to compaction summaries so Claude can surgically recover just the chunk it needs from the transcript on demand. Zero standing token overhead.

Curious if others have hit this in different scenarios or found workarounds that actually stick.