[FEATURE] Setting to hide the session-name badge on the prompt box
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Good day Anthropic Claude Code folks!
Problem Statement
A named session renders its name as a teal badge on the prompt box's top border. Nothing turns that off.
statusLine scripts already get session_name on stdin. Render it there and you get the name twice, one line apart:
<img width="1971" height="309" alt="Image" src="https://github.com/user-attachments/assets/3e44803e-eb1a-42f6-a2db-42fdff7f6cf6" />
I can drop it from my statusline, but that's the wrong half to give up. The statusline I control: truncate, colorize, combine with session id, branch, model. The badge is fixed.
There's no way to get an empty prompt bar. Leaving a session unnamed doesn't help — per the sessions docs, it gets an AI-generated title instead, which renders in the same badge. Every interactive session has one.
Proposed Solution
A boolean in settings.json, defaulting to current behavior:
{
"showSessionNameBadge": false
}
Off means the top border renders plain. The name keeps working everywhere else: /resume picker, terminal title, session_name in the statusLine payload, session metadata. Badge only.
A --no-session-name-badge flag would be handy for one-offs, but the setting matters more.
Alternative Solutions
- Drop
session_namefrom my statusLine. Works, but hands back formatting control and pins the name to a slot I can't style or combine. - Leave the session unnamed. Doesn't work: the AI-generated title fills the badge anyway, and I lose the name in
/resume. --ax-screen-reader. Strips borders wholesale. Too blunt.
Checked claude --help, the settings reference, interactive mode, statusline, and sessions docs, plus a grep of the 2.1.233 binary. The sessionTitle keys in there set and sync the title; none gate rendering.
Priority
Low - Nice to have
Feature Category
Interactive mode (TUI)
Use Case Example
- Many concurrent sessions, one per tmux pane, across several repos.
- My statusLine prints
<session-id-prefix> | <session_name> | <git-branch> | <model>— one dense line I scan across panes. - I
/renamesessions so/resumestays navigable. - So the name renders twice per pane, every session.
- With the setting off: once, in the line I formatted, and a clean border.
Additional Context
Version 2.1.233, macOS arm64.
Related, but about the badge's content rather than its visibility:
- #80711 — SessionStart hook
sessionTitlepersisted but never shown in the badge - #82724 — hook-set
sessionTitlereverted by the background AI titler - #77217 — statusline
session_namefalls back to the generated title
#73162, #60097, #75047 ask for more identity in the UI, so this should stay opt-out with the default on.