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
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?
- Compacted messages duplicated4 people
- Resume un-compacts session5 people
- Resume drops concurrent turns2 people
Original reports4, newest first
- [mods] session.compact: a tool result handed back with its handle keeps its pre-compaction parent, so --resume loads the compacted history#107178
- --resume rebuilds the wrong conversation after a mod's session.compact keeps messages by handle (copies reuse message.id / parentUuid)#105781
- Function hooks: a transcript returned from a session.compact hook is dropped on --resume, and the full pre-compact history is replayed#96485
- A session.compact function hook's compaction is undone when the session is resumed#95328