feat: resolve Claude Code session names from JSONL transcripts#215
Merged
feat: resolve Claude Code session names from JSONL transcripts#215
Conversation
Display human-readable session names in the GUI sessions section instead of only model IDs. Names are resolved automatically from Claude Code's ~/.claude/projects/ JSONL files, preferring customTitle (from /rename or --name) over the auto-generated slug. Resolution priority: 1. customTitle (user-set via /rename or --name) 2. slug (auto-generated like "clever-waddling-allen") 3. x-session-name header (manual override via ANTHROPIC_CUSTOM_HEADERS) Also: - Move model names to a separate line below the session name - Style session name in light blue (#7ec8e3) - Lazy one-time lookup per session, cached in SessionAgentPool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.claude/projects/JSONL files, preferring customTitle (from/renameor--name)x-session-nameheader override viaANTHROPIC_CUSTOM_HEADERSResolution priority
customTitle— user-set via/renameor--name(preferred)~/.claude/projects/<encoded-path>x-session-nameheader — manual overrideFiles changed
src/session-pool.ts— lazy JSONL resolution,sessionNamescache,setName()APIsrc/server.ts— extractx-session-nameheadersrc/ws.ts— mergenameinto WebSocket summarysrc/types.ts— add optionalnametosessionStatstypegui/frontend/app.js— split name and models into separate linesgui/frontend/styles.css— light blue session name (#7ec8e3), dim models lineTest plan
/rename→ shows custom title (e.g. "Testing Session Name")x-session-nameheader override works