Feature: Surface conversation session ID for external reference (GitHub issues, PRs)
Resolved 💬 3 comments Opened Feb 8, 2026 by orangewk Closed Feb 8, 2026
Problem
When using Claude Code to work on GitHub issues, I want to reference the specific conversation from the issue/PR for traceability. Currently there's no easy way to get the conversation's session ID.
The data already exists
Session IDs are already stored internally:
- Each conversation has a UUID (e.g.,
9a99ddf9-7884-445b-8e43-efe371d9a492) ~/.claude/projects/{project}/sessions-index.jsonindexes all sessions with metadata/resumealready supports resuming past conversations
What's missing is a way to surface the ID to the user.
Proposed Solution
- Copy session ID: Add a "Copy Session ID" option in Past Conversations list and/or a
/session-idcommand that prints the current session's UUID - Searchable by ID: Allow finding/resuming a conversation by its ID (e.g.,
/resume 9a99ddf9-...)
This enables workflows like:
gh issue comment 25 --body "CC session: 9a99ddf9-7884-445b-8e43-efe371d9a492"
Then later:
/resume 9a99ddf9-7884-445b-8e43-efe371d9a492
Use Case
- Work on a GitHub issue with Claude Code
- Record the session ID on the issue
- Months later, resume the exact conversation with full context when follow-up is needed
Environment
- Claude Code VSCode Extension (also relevant to CLI)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗