claude-code - 💡(How to fix) Fix Feature Request: Show loading/spinner symbol in terminal tab title during processing [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#46929Fetched 2026-04-12 13:29:27
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

Current Workaround

Code Example

Claude Code — working...

---

Claude Code

---

\033]0;Claude Code — working...\007
RAW_BUFFERClick to expand / collapse

Feature Request

Summary: Update the terminal tab title to show a spinner/loading indicator while Claude is actively processing, similar to how many CLI tools use escape codes to update the tab title dynamically.

Desired Behavior

While Claude Code is working (processing a prompt), the terminal tab title should display a loading indicator, e.g.:

⠋ Claude Code — working...

And revert to the default title once idle:

Claude Code

Why This Is Useful

  • Users who have multiple terminal tabs open can glance at the tab bar to see if Claude is still working
  • Reduces context-switching — no need to click into the Claude tab just to check status
  • Common UX pattern in modern CLIs (e.g., npm, webpack, etc.)

Implementation Suggestion

This could be achieved via ANSI/xterm escape codes:

\033]0;⠋ Claude Code — working...\007

Triggered at the start of a response and cleared when complete. Could also be exposed as a configurable option in settings.json.

Current Workaround

Hooks can set the tab title at SessionStart/Stop boundaries, but there is no way to trigger a live spinner during active processing.

extent analysis

TL;DR

Implementing ANSI/xterm escape codes to update the terminal tab title dynamically can achieve the desired loading indicator behavior.

Guidance

  • Investigate using ANSI/xterm escape codes, such as \033]0;⠋ Claude Code — working...\007, to update the terminal tab title.
  • Trigger the escape code at the start of a response and clear it when complete to create a live spinner effect.
  • Consider exposing this feature as a configurable option in settings.json for user customization.
  • Review existing hooks, such as SessionStart/Stop, to determine if they can be leveraged or extended to support the dynamic tab title update.

Example

print("\033]0;⠋ Claude Code — working...\007")  # Set tab title with loading indicator
# ... processing code ...
print("\033]0;Claude Code\007")  # Reset tab title when complete

Notes

The implementation may vary depending on the programming language and terminal emulator being used. Additionally, some terminals might not support ANSI/xterm escape codes, which could limit the compatibility of this feature.

Recommendation

Apply workaround using ANSI/xterm escape codes, as it provides a straightforward and widely adopted solution for dynamically updating the terminal tab title.

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