Session naming: --name flag should also set the display name shown in the prompt (like /rename)
Problem
There are currently two separate ways to name a session that serve the same underlying goal — helping developers identify sessions:
claude -n "my-session"— sets a label visible in the/resumepicker/rename my-session— sets a display name shown in the terminal prompt (right-hand side with color)
These are disconnected. Using --name does not update the visible prompt name, so developers who want both behaviors (easy resume + easy identification in the terminal) have to do it twice — once via CLI flag and once manually via /rename inside the session.
Expected Behavior
claude -n "my-session" (or --name) should set both:
- The session label in the
/resumepicker - The display name shown in the terminal prompt (equivalent to running
/rename my-sessionautomatically on session start)
Why
The human-level goal is identical: identify a session. Whether you're picking from a list of past sessions or glancing at multiple terminal tabs, you want the same name to appear. Splitting this into two features adds friction with no benefit.
🤖 Generated with Claude Code
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗