claude-code - 💡(How to fix) Fix Emit terminal title when resuming a chat (including /resume) [1 comments, 1 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#52639Fetched 2026-04-24 06:01:46
View on GitHub
Comments
1
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Claude Code sets the terminal title to the chat's title when starting a new conversation, but when resuming an existing chat, the title isn't re-emitted. This happens whether I resume via claude --resume, pick from the recent list, or use the /resume slash command mid-session. My terminal tab ends up stuck with whatever title was there before, which makes it hard to tell tabs apart when I have a few resumed sessions open.

Would be great if the CLI emitted the OSC title sequence on resume too (including /resume), so the terminal title always matches the active conversation.

extent analysis

TL;DR

Emitting the OSC title sequence when resuming a conversation, including via the /resume command, is likely the fix to update the terminal title correctly.

Guidance

  • The issue seems related to the handling of conversation resumption, where the terminal title is not updated as expected.
  • To verify the fix, test resuming a conversation using claude --resume, the recent list, and the /resume slash command, checking if the terminal title updates correctly each time.
  • Consider modifying the code to emit the OSC title sequence upon resuming a conversation to ensure the terminal title matches the active conversation.
  • Review the current implementation of conversation resumption to identify why the title is not being updated as expected.

Notes

The exact implementation details of emitting the OSC title sequence are not provided, so the specific code changes required are uncertain.

Recommendation

Apply workaround: Modify the CLI to emit the OSC title sequence when resuming a conversation, as this directly addresses the reported issue of the terminal title not being updated.

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