--name flag does not display session name in prompt UI like /rename does
Resolved 💬 2 comments Opened Mar 27, 2026 by stephanschoenig Closed Mar 28, 2026
Description
When launching Claude Code with the --name flag (e.g., claude --name "MySession"), the session name is correctly stored and visible in the /resume list, but it does not display the visual prompt decoration that /rename produces.
Expected behavior
--name should produce the same visual result as /rename:
- Session name shown right-aligned in the prompt separator bar
- Separator lines change to the accent color (teal/cyan)
Actual behavior
--name: Name is set internally (appears in/resumelist), but the prompt area shows no name and retains default styling/rename: Name appears in the prompt separator bar with colored lines
Steps to reproduce
- Launch:
claude --name "TestSession" - Observe the prompt area — no session name visible, default separator styling
- Within the same session, run
/rename TestSession - Observe the prompt area — name now appears right-aligned with colored separator
Screenshots
After /rename — name visible in prompt bar:
The session name appears right-aligned in the separator bar above the prompt, and the separator lines change to an accent color.
After --name launch — no visual indicator:
The prompt area shows the standard layout with no session name. The status line shows model, project, branch, context %, and time only.
Environment
- Claude Code CLI (latest)
- macOS
- Terminal: iTerm2
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗