HackerTrans
TopNewTrendsCommentsPastAskShowJobs

aciccarelli2

no profile record

Submissions

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

github.com
31 points·by aciccarelli2·5개월 전·23 comments

comments

aciccarelli2
·5개월 전·discuss
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.