claude-code - 💡(How to fix) Fix [FEATURE] Add OSC 0 setting of title whenever the session name is set/changes [2 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#60638Fetched 2026-05-20 03:53:19
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

The terminal tab name (or in tmux or the like) is just basically the command that was run. It'd be very helpful to see the session name that I set, in order to more quickly/easily see which session is which in which tab.

Proposed Solution

Emit an ASNI OSC 0 (title + icon) whenever the session name is set/changed.

References: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands https://en.wikipedia.org/wiki/ANSI_escape_code#OSC

Alternative Solutions

Working around by setting via a UserPromptSubmit, on every single prompt submission. It's wasteful and unnecessary, and NOT built-in, which means not everybody can enjoy this functionality.

Priority

High - Significant impact on productivity

Feature Category

Interactive mode (TUI)

Use Case Example

Helps me identify which session for which terminal window, or tmux tab is which.

Also will help screen-readers and the like (accessibility!) since they now have a good title to operate off of for tabs and such, as well as for voice in/out usage.

Additional Context

No response

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 [FEATURE] Add OSC 0 setting of title whenever the session name is set/changes [2 comments, 2 participants]