--name flag does not display TUI session badge

Resolved 💬 3 comments Opened Apr 16, 2026 by mattyj718 Closed Apr 18, 2026

Description

The --name CLI flag sets the session name in metadata (visible in /resume picker and in the session JSONL as customTitle) but does not display the session name badge in the bottom-right corner of the TUI.

The /rename slash command sets the same customTitle field AND displays the badge. Expected behavior: --name should also display the badge.

Steps to reproduce

  1. Launch Claude Code with --name: claude --name myname
  2. Observe: no session badge in the bottom-right of the TUI
  3. Type /rename myname in the same session
  4. Observe: cyan badge appears in the bottom-right

Expected behavior

--name myname should display the same TUI badge as /rename myname.

Evidence

Session JSONL confirms --name correctly writes {"type": "custom-title", "customTitle": "myname"} as the first record. The data is there, just not rendered in the TUI.

Environment

  • Claude Code (latest, installed via CLI)
  • macOS 15.7.4 (Sequoia), Apple M4
  • Terminal: Ghostty

Screenshots

Without badge (--name only)

The status bar shows the project folder but no session name badge in bottom-right:

Opus 4.6 1M | 📁 tigh | 🌿 main ● | ⚡ 4.7% · 46.5k tokens
▸▸ bypass permissions on (shift+tab to cycle)

With badge (after /rename)

Same session after running /rename tigh — cyan badge appears bottom-right:

Opus 4.6 1M | 📁 tigh | 🌿 main ● | ⚡ 4.7% · 46.5k tokens           [tigh]
▸▸ bypass permissions on (shift+tab to cycle)

View original on GitHub ↗

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