claude-code - 💡(How to fix) Fix [Bug] Prompt box `--name` label renders inconsistently in concurrent sessions [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52562Fetched 2026-04-24 06:03:51
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Title: --name display name missing from prompt box on some windows (v2.1.118)

claude --help documents -n, --name <name> as "shown in the prompt box, /resume picker, and terminal title". However the prompt-box label is intermittently absent.

Environment:

  • Claude Code v2.1.118
  • macOS Darwin 25.4.0, tmux (status off, automatic-rename off)
  • 3 concurrent Claude instances with different --name values: claude --name "<project-a>/main - Claude" claude --name "<project-b>/<branch> - Claude" claude --name "<project-c>/main - Claude"

Reproduction:

  1. Start multiple sessions above in separate tmux windows
  2. Switch between windows and observe the prompt box

Expected: the --name value is always rendered as a label above the input box.

Actual: the label appears on some windows and not others, with no obvious trigger. Compared two screenshots where the only difference is: one shows "Cooked for Xm Ys" (label visible), the other shows "Worked for Xm Ys" + N tasks summary (label hidden). Terminal width, Image in clipboard indicator state, and input-box emptiness are identical.

No related option found in settings.json docs or CHANGELOG. Cannot find a user-controlled way to force-show the label.

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.118
  • Feedback ID: f73640ee-58bb-4dfe-b1e2-92d130ab6a03

Errors

[]

extent analysis

TL;DR

The issue with the --name display name missing from the prompt box on some windows in Claude v2.1.118 may be related to the rendering of the label based on the state of the terminal or the specific --name values used.

Guidance

  • Verify that the issue persists across different terminal widths and --name values to rule out any specific pattern or trigger.
  • Check if the label visibility is affected by the presence of the "Cooked for Xm Ys" or "Worked for Xm Ys" + N tasks summary, as mentioned in the reproduction steps.
  • Investigate if there are any undocumented settings or environment variables that could influence the rendering of the prompt box label.
  • Consider testing with a different version of Claude or tmux to see if the issue is specific to the current setup.

Example

No specific code snippet can be provided without further information on the internal workings of Claude or tmux.

Notes

The issue seems to be intermittent and not directly related to the --name values or the environment settings. Further investigation is needed to identify the root cause.

Recommendation

Apply workaround: Since the issue is intermittent and not fully understood, it might be beneficial to try and find a consistent way to reproduce the issue or to look for any patterns that could help in identifying a workaround. Upgrading to a potentially fixed version is not recommended without more information on the availability of such a version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Prompt box `--name` label renders inconsistently in concurrent sessions [1 comments, 2 participants]