Skip to content

[FEAT] session ledger + one-click restore - #9

Merged
haimbj1 merged 1 commit into
mainfrom
feat/session-ledger-restore
Sep 14, 2026
Merged

haimbj1 merged 1 commit into
mainfrom
feat/session-ledger-restore

Conversation

@haimbj1

@haimbj1 haimbj1 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

What

  • session_ledger.json: the collector records every session it sees and keeps dead ones 14 days (name, sessionId, cwd, tmux, kind, lastSeen). Unit-tested.
  • The Sessions panel shows an "Ended sessions" section from the ledger. Tick rows, click Restore — the server resumes each with claude --resume <id> in its own tmux session. No model tokens.
  • Restore skips live sessions, existing tmux names, and unknown ids; it reports each skip.

Why

A reboot kills every session and the registry entries with it. PR-session links drop and the developer must dig session ids out of transcripts by hand.

@haimbj1
haimbj1 merged commit 4bad9fb into main Sep 14, 2026
1 check passed
@haimbj1
haimbj1 deleted the feat/session-ledger-restore branch September 14, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant