Print the Claude Code internal UUID (msg.uuid) for each assistant message, enabling self-service /compact-at recovery without needing external tooling.
- On startup (session resume): display
last messageId: <uuid> so the most recent assistant UUID is immediately visible
- During message streaming: display
messageId: <uuid> before each assistant message's content
- UUID is loaded from audit file tail on resume via
UsageTracker.lastAssistant
- UUID is tracked live via
onMessage for runtime updates
Print the Claude Code internal UUID (
msg.uuid) for each assistant message, enabling self-service/compact-atrecovery without needing external tooling.last messageId: <uuid>so the most recent assistant UUID is immediately visiblemessageId: <uuid>before each assistant message's contentUsageTracker.lastAssistantonMessagefor runtime updates