claude-code - 💡(How to fix) Fix [FEATURE] Named Sessions for `--resume`

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Allow users to name Claude Code sessions and resume them by name instead of session ID.

Root Cause

Session IDs are for machines. Names are for humans. When context-switching across multiple workstreams — debugging, refactoring, feature work — developers need to re-enter the right session quickly without hunting through terminal history for a UUID.

This is the same UX principle behind:

  • tmux attach -t my-session
  • git checkout my-branch
  • Docker's auto-generated memorable container names

Code Example

claude --resume 550e8400-e29b-41d4-a716-446655440000

---

# Name a session on start
claude --session-name "payments-debug"

# Resume by name
claude --resume "payments-debug"

# Fuzzy match on partial name
claude --resume "payments"

# List all sessions with names, IDs, and timestamps
claude --sessions
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Feature Request: Named Sessions for --resume

Summary

Allow users to name Claude Code sessions and resume them by name instead of session ID.

Current Behaviour

claude --resume 550e8400-e29b-41d4-a716-446655440000

Session IDs are opaque UUIDs — impossible to remember across terminal sessions or days.

Proposed Behaviour

# Name a session on start
claude --session-name "payments-debug"

# Resume by name
claude --resume "payments-debug"

# Fuzzy match on partial name
claude --resume "payments"

# List all sessions with names, IDs, and timestamps
claude --sessions

Why This Matters

Session IDs are for machines. Names are for humans. When context-switching across multiple workstreams — debugging, refactoring, feature work — developers need to re-enter the right session quickly without hunting through terminal history for a UUID.

This is the same UX principle behind:

  • tmux attach -t my-session
  • git checkout my-branch
  • Docker's auto-generated memorable container names

Suggested Details

  • Names stored alongside session metadata
  • Fuzzy match so partial names resolve to closest session
  • Auto-generate memorable names (e.g. autumn-forest-42) when no name supplied — so every session is nameable even retroactively
  • --sessions flag to list all sessions with name, ID, last active timestamp, and working directory

Impact

Low implementation complexity. High daily-use value for anyone running multiple concurrent Claude Code sessions across projects.

Proposed Solution

Suggested Details

  • Names stored alongside session metadata
  • Fuzzy match so partial names resolve to closest session
  • Auto-generate memorable names (e.g. autumn-forest-42) when no name supplied — so every session is nameable even retroactively
  • --sessions flag to list all sessions with name, ID, last active timestamp, and working directory

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Named Sessions for `--resume`