Rank, 14 days: 312 on the Claude Code sheet
4 people reported
All time, since Sep 23.
Compacted messages duplicated
“The desktop transcript shows entries from before and after the boundary, so a message kept through N compactions appears N+1 times.”
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/3053/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
Messages kept by session.compact hook duplicate after each compaction. Kept messages are re-written to the session log with the same message.id after compact_boundary, so the desktop transcript shows copies.
Is this your bug?
File my report- Where
- session.compact hook
- Versions
- 2.1.280 to 2.1.308
- Platforms
- macOS, Windows
Not quite your bug?
- Resume undoes hook compaction4 people
Original reports4, newest first
- Code tab shows assistant messages twice after a plugin compaction that returns messages#105383
- Function-hook session.compact replacement re-saves kept messages as new entries, so the desktop app shows them duplicated#101879
- Resume merges transcript lines sharing an assistant message.id across compact boundaries, multiplying messages kept by a session.compact hook#99727
- Desktop app renders kept messages twice after a
session.compacthook returns{ messages }; copies grow with every compaction#96502