[FEATURE] Windows Terminal: OSC 9;4 progress is turned off although Windows Terminal renders it

Open Beginner friendly
#113,765 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Find the terminal capability check that returns false when WT_SESSION is set, then read the supported-terminal checks that follow it. Update the detection so Windows Terminal can report OSC 9;4 progress, and check how progress is cleared when a turn ends. Done means progress appears in Windows Terminal during work and clears afterward; the issue does not name a file or test.

Written by the indexing model from the issue text.

Description

area:tui enhancement platform:windows
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

Claude Code never sends the OSC 9;4 progress sequence under Windows Terminal. Its terminal check returns false as soon as WT_SESSION is set, before it looks at the list of supported terminals.

Windows Terminal has supported OSC 9;4 since 1.6 (microsoft/terminal#8055, merged in November 2020). It shows a ring over the tab icon and progress on its taskbar button. Intelligent Terminal sets WT_SESSION too, so progress is off there as well. Dropping the WT_SESSION check alone wouldn't be enough: Windows Terminal sets no TERM_PROGRAM, so the checks after it return false too.

Proposed Solution

Treat WT_SESSION as a terminal that supports progress, or add a setting that turns progress reporting on for any terminal.

Alternative Solutions

Hooks that emit ESC ]9;4;3;0 BEL on UserPromptSubmit and ESC ]9;4;0 BEL on Stop and Interrupt through terminalSequence. This works since Interrupt arrived in 2.1.335, but it starts a process per event (about a second on my machine), and nothing clears the ring on exit the way the native reporter does.

Priority

Low - Nice to have

Feature Category

Interactive mode (TUI)

Use Case Example
  1. Several Claude Code sessions run in Windows Terminal tabs.
  2. A background tab shows the ring while its session works, and the ring goes away when the turn ends.
Additional Context

#87049 asked for the same thing in another terminal and was closed as inactive. Claude Code 2.1.335, Windows 11, Windows Terminal 1.25, Intelligent Terminal 0.3.3301.0.

Dominant language
TypeScript
Stars
158k
Forks
25.1k
Avg merge
1d 8h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from anthropics/claude-code

All issues in anthropics/claude-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.