Skip to content

feat: display previous Claude Code sessions with interactive resume commands - #2

Closed
esaruoho wants to merge 1 commit into
sodiumsun:mainfrom
esaruoho:feat/previous-sessions
Closed

feat: display previous Claude Code sessions with interactive resume commands#2
esaruoho wants to merge 1 commit into
sodiumsun:mainfrom
esaruoho:feat/previous-sessions

Conversation

@esaruoho

Copy link
Copy Markdown

This PR adds a "Previous Sessions" panel to the runs sidebar, allowing developers to see historical Claude Code runs, their turn counts, and file sizes directly on the dashboard.

Features

  1. Lossy encoding mapping: Matches Claude's internal alphanumeric-to-dash directory format under ~/.claude/projects/ to locate past .jsonl transcripts.
  2. Metadata caching: Uses an in-memory mtime/size file-stat cache to extract user turns and the initial prompt snippet without repeatedly parsing large transcripts on SSE heartbeats.
  3. Interactive Resume: Clicking any previous session card expands it to show the exact command to resume that run: claude --dangerously-skip-permissions --resume <uuid>.
  4. Scrollable Sidebar: Constrains the runs sidebar height (bottom: 24px with overflow-y: auto) to ensure a beautiful scrollable list when displaying active and past runs.

Zero dependencies. Completely local-first.

@esaruoho

Copy link
Copy Markdown
Author

@sodiumsun

@sodiumsun

Copy link
Copy Markdown
Owner

superseded by #4 - closing this one, continuing there. thanks!

@sodiumsun sodiumsun closed this Aug 27, 2026
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.

2 participants