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.json indexes all sessions with metadata
  • /resume already supports resuming past conversations

What's missing is a way to surface the ID to the user.

Proposed Solution

  1. Copy session ID: Add a "Copy Session ID" option in Past Conversations list and/or a /session-id command that prints the current session's UUID
  2. 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)

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗