Session naming: --name flag should also set the display name shown in the prompt (like /rename)

Resolved 💬 4 comments Opened Mar 26, 2026 by devopsjourney1 Closed Apr 18, 2026

Problem

There are currently two separate ways to name a session that serve the same underlying goal — helping developers identify sessions:

  1. claude -n "my-session" — sets a label visible in the /resume picker
  2. /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 /resume picker
  • The display name shown in the terminal prompt (equivalent to running /rename my-session automatically 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

View original on GitHub ↗

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