claude-code - 💡(How to fix) Fix [FEATURE] Allow users to assign a human-readable name to a Claude Code session and resume by that name instead of a UUID. [1 participants]

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…
GitHub stats
anthropics/claude-code#52024Fetched 2026-04-23 07:38:34
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

I maintain several long-running sessions for distinct workstreams — bug triage, refactor branches, incident investigations. Today the only workaround is a shell alias:

  alias webbugs='claude --resume 250e3400-e39b-31d4-a736-442655430000'

This breaks if the session is garbage-collected and requires manually looking up the UUID via --list-sessions each time. Named sessions would eliminate this friction entirely.

Code Example

claude --resume 250e3400-e39b-31d4-a736-442655430000

---

# Start a named session
  claude --session-name webbugs

  # Resume by name instead of UUID
  claude --resume webbugs

---

alias webbugs='claude --resume 250e3400-e39b-31d4-a736-442655430000'
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

Problem

--resume requires a full UUID, which is hard to remember and not ergonomic for workflows where you maintain long-running sessions tied to specific projects or tasks (e.g. fixing bugs, an audit, a refactor branch, an incident investigation):

claude --resume 250e3400-e39b-31d4-a736-442655430000

There is no way to give a session a human-readable name.

Proposed Solution

Proposed Solution

Allow users to name a session at start and resume by name:

# Start a named session
claude --session-name webbugs

# Resume by name instead of UUID
claude --resume webbugs

--list-sessions should display names alongside UUIDs. If a name is reused, --resume resolves to the most recent session with that name.

Alternative Solutions

Alternative Solutions

OptionCommandNotes
Name at startclaude --session-name webbugsSet name when creating the session
Rename existingclaude session rename <uuid> webbugsTag a session after the fact
Auto-title (minimal change)(no new flag needed)Use working directory basename or first prompt as title; allow --resume to match on it

Priority

Critical - Blocking my work

Feature Category

CLI commands and flags

Use Case Example

I maintain several long-running sessions for distinct workstreams — bug triage, refactor branches, incident investigations. Today the only workaround is a shell alias:

  alias webbugs='claude --resume 250e3400-e39b-31d4-a736-442655430000'

This breaks if the session is garbage-collected and requires manually looking up the UUID via --list-sessions each time. Named sessions would eliminate this friction entirely.

Additional Context

No response

extent analysis

TL;DR

Implementing a --session-name flag to allow users to assign a human-readable name to a session, which can then be used with --resume instead of the full UUID, is the most likely fix.

Guidance

  • Introduce a --session-name flag to set a name when creating a session, allowing for easier resumption by name instead of UUID.
  • Modify the --list-sessions command to display names alongside UUIDs for better session management.
  • Consider implementing a resolution mechanism for duplicate session names, such as resolving to the most recent session with that name.
  • Evaluate the alternative solutions proposed, such as renaming existing sessions or auto-titling, to determine the best approach for the user's workflow.

Example

# Start a named session
claude --session-name webbugs

# Resume by name instead of UUID
claude --resume webbugs

Notes

The implementation details, such as how session names are stored and managed, are not specified in the issue and would need to be determined during development.

Recommendation

Apply a workaround by introducing a --session-name flag, as it directly addresses the user's need for more ergonomic session management and provides a clear path forward for implementation.

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] Allow users to assign a human-readable name to a Claude Code session and resume by that name instead of a UUID. [1 participants]