published fresh until

How do I give Claude Code sessions readable names for /resume?

Summary As of November 2026, manual names and generated titles can resume a session; default display labels cannot. Name it with /rename payments-refactor, then run claude --resume payments-refactor

Not for nested desktop sessions or recovering a session stuck on an error; see claude-code-desktop-update-worktrees-nested-sessions-btw

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, resume by a manual name, a generated title or a session ID; automatic display labels are a separate thing. Do first: run /rename payments-refactor for a predictable handle, then use claude --resume payments-refactor. Session naming.

Run claude --resume from the project directory you worked in, press Ctrl+A in the picker to list every project on the machine, and resume sessions started with claude -p by ID, because they never appear in the picker. Not for: a session stuck on an error or nested desktop sessions; see claude-code-desktop-update-worktrees-nested-sessions-btw.

Session missing from the list: checks

From the sessions page (Anthropic):

  • Sessions are stored per project directory as ~/.claude/projects/<project>/<session-id>.jsonl. The picker shows sessions from the current worktree plus sessions started elsewhere that added the current directory with /add-dir; Ctrl+W widens to all worktrees of the repository, Ctrl+A to every project, Ctrl+B filters to the current branch.
  • claude -p and Agent SDK sessions are left out of the picker and out of claude --continue; sessions whose first prompt was /loop are hidden too. Resume one with claude --resume <session-id>, or use claude -p --continue, which includes them.
  • claude --resume <session-id> can resolve the ID from any directory: it searches the current project and its worktrees, then every other project. If nothing matches it prints No conversation found with session ID: <session-id>.
  • The default label such as my-app-3f is not a resume handle; a name you set or the generated title is.
  • Transcripts are deleted after 30 days by default (cleanupPeriodDays). --no-session-persistence with claude -p writes no transcript, so there is nothing to resume.

Reported case: issue 10063 by diegocconsolini (Oct 2025, v2.0.24, WSL2): after --resume, claude --continue "starts a completely new session". The reporter blamed history.jsonl not being updated; this is unconfirmed, the docs do not mention that file, and the issue was closed as not planned by a stale bot with no maintainer reply.

The problem

claude --resume listed sessions only by auto-generated summaries and timestamps, so similar sessions were hard to tell apart after days. The GitHub request (opened 2025-06-15 by gwpl) asked for a session name flag and slash command. It was closed as completed on 2025-12-22.

What exists now

As of November 2026, the release notes for 2.0.64 say named sessions were added: use /rename to name a session, then /resume <name> inside Claude Code or claude --resume <name> from the terminal. A commenter quoted that entry in December 2025; one user on 2.0.64 still saw "Unknown slash command: rename", and a team member then said /rename <name> is supported. So update first.

Later release notes show the feature was polished: the name stays visible while Claude asks a multiple-choice question, survives /clear, appears on the VS Code editor tab, and a bug where custom titles vanished from /resume after long conversations was fixed. Check your own version's behavior.

Practical use

1. Run /rename payments-refactor early in a session. 2. Later, claude --resume payments-refactor, or /resume and pick it.

What it does not cover

  • Manual names and automatic titles are distinct. The sessions docs now describe a generated title based on the first prompt, replaced by a plan-based title on plan acceptance unless you already named the session. Those titles are resume handles; a generated display label such as my-app-3f is not. Direct shell claude -p runs do not get a generated title. You can also name a session at launch with claude -n payments-refactor.
  • Commenters argued a name should not replace the session ID, and wanted the ID easy to read; that request is separate from naming.
  • A commenter wanted the name to survive repeated /compact runs as context drifts; the changelog for 2.1.47 says renamed sessions now keep their custom title through compaction. Separately, 2.1.299 changed the resume command printed at exit to use the session ID rather than the name, so keep the ID if you script against it.
  • Wrapper tools exist (one commenter shared one for naming and forking sessions). Not reviewed or recommended.

Takeaway

Name sessions at the start with /rename, resume by name, and keep the ID when you need something stable to script against.

Sources

Limits

Terminal and extension session lists differ. A stable session ID is preferable when scripting against a conversation; external wrapper tools are outside this thread.

Started from a post by @gwpl, packaged by the editor. Original post

Subjects

More in refactoring

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I give Claude Code sessions readable names for /resume?
Summary: As of November 2026, manual names and generated titles can resume a session; default display labels cannot. Name it with /rename payments-refactor, then run `claude --resume payments-refactor`
Copy for agent
get the whatworks thread claude-code-rename-sessions-resume-list and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-rename-sessions-resume-list
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp