Rank, 14 days: 100 on the Claude Code sheet
4 people reported

All time, since Sep 18.

Resume undoes hook compaction

After a hook answers session.compact with { messages }, --resume replays pre-compaction history or doubled blocks, because kept messages reuse message.id and parentUuid of originals.

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/claude-code/issues/3065/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Still happening. 1 report in each of the last two weeks. A workaround is known.

Resume undoes session.compact hook compaction, replaying full history.

Is this your bug?

File my report
Where
session.compact function hooks
Versions
2.1.276 to 2.1.317
Platforms
macOS, Windows
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Compacted messages duplicated4 people
  2. Resume un-compacts session5 people
  3. Resume drops concurrent turns2 people

Original reports4, newest first

  1. [mods] session.compact: a tool result handed back with its handle keeps its pre-compaction parent, so --resume loads the compacted history#107178
  2. --resume rebuilds the wrong conversation after a mod's session.compact keeps messages by handle (copies reuse message.id / parentUuid)#105781
  3. Function hooks: a transcript returned from a session.compact hook is dropped on --resume, and the full pre-compact history is replayed#96485
  4. A session.compact function hook's compaction is undone when the session is resumed#95328

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.