Show a resumed session's earlier messages #4

Merged
nelson merged 1 commit from ATC-3-resume-history into main 2026-11-10 17:58:39 -08:00
Owner

PR 1 of 5 toward every Claude launcher opening at-claude from one setting (ATC-6). This one is ATC-3: -resume now shows the session's earlier conversation, read from the file Claude Code saved it to, before anything new. It has to land first, because later PRs send Ctrl+Shift+T, session restore and the Chrome relaunch through at-claude, and without it those windows would come back empty.

Changed: internal/claude finds and reads the saved session (meta and subagent lines left out, notifications and compaction shown as notices), and the transcript replays it, closing an interrupted tool call instead of letting it hold back the rest. Checked on a throwaway server: a resumed recorded session shows its two turns, and a third message lands after them; an unknown id says why nothing could be shown. The largest real session (281 MB) reads and draws in about 2.7 s.

PR 1 of 5 toward every Claude launcher opening at-claude from one setting ([ATC-6](https://openproject.romaine.life/wp/ATC-6)). This one is [ATC-3](https://openproject.romaine.life/wp/ATC-3): `-resume` now shows the session's earlier conversation, read from the file Claude Code saved it to, before anything new. It has to land first, because later PRs send Ctrl+Shift+T, session restore and the Chrome relaunch through at-claude, and without it those windows would come back empty. Changed: `internal/claude` finds and reads the saved session (meta and subagent lines left out, notifications and compaction shown as notices), and the transcript replays it, closing an interrupted tool call instead of letting it hold back the rest. Checked on a throwaway server: a resumed recorded session shows its two turns, and a third message lands after them; an unknown id says why nothing could be shown. The largest real session (281 MB) reads and draws in about 2.7 s.
Show a resumed session's earlier messages (ATC-3)
All checks were successful
CI / build (pull_request) Successful in 1m16s
CI / pcs (pull_request) Has been skipped
CI / home-sync (pull_request) Successful in 0s
2a2dadd2f7
-resume reads the session file Claude Code saved under ~/.claude/projects and
replays it through the transcript before claude starts, so a window resumed by
an update, a restore or a relaunch shows its conversation again.
nelson merged commit cef7cfb74d into main 2026-11-10 17:58:39 -08:00
nelson deleted branch ATC-3-resume-history 2026-11-10 17:58:39 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-claude!4
No description provided.