Terminal strobing/flickering after returning from session selection screen (Windows Terminal)
Status Fixed / completed
Reported on v2.1.144
Maintainer reply ✓ Yes — claude[bot]
Workaround ✓ Mentioned in thread ↓
Activity 11 comments · opened May 19, 2026 · closed May 21, 2026
💡 Likely answer: A maintainer (claude[bot], contributor)
responded on this thread — see the highlighted reply below.
Environment
- Claude Code: 2.1.144
- Windows Terminal: 1.24.11321.0
- Shell: PowerShell 7.6.1
- OS: Windows 11 Pro 10.0.26200
Steps to Reproduce
- Open Claude Code in Windows Terminal (PowerShell 7.6.1 profile in taskbar)
- Navigate to the session selection screen
- Click back into an active session where Claude is thinking (spinner visible)
- Observe strobing/flickering in the terminal
What Happens
After re-entering the session:
- Terminal strobes/flickers while Claude is thinking (spinner animation)
- Strobing also occurs on every key press while typing a new prompt
- When Claude finishes thinking, the strobing stops
- When a new prompt is submitted and Claude starts thinking again, strobing resumes
- Issue persists for the entire duration of that terminal session
- Workaround: Closing and reopening the terminal window clears the bad state
Expected Behavior
Terminal renders cleanly after re-entering a session, with no flickering during the thinking animation or while typing.
Notes
The key-press strobing suggests the terminal gets into a corrupted render state when re-entering a session, not just a spinner animation issue. The problem appears to be in how Claude Code restores terminal state on session resume. Every subsequent render operation (cursor movement, input echo, spinner frame) triggers a full redraw instead of an in-place update.
11 Comments
I'm experiencing what appears to be the same or a very similar issue. Here's some additional testing data that may help narrow the root cause:
Regular
claudesessions have zero flickering on the same machine — the flickering only occurs in sessions entered viaclaude agents.Tested across multiple terminals (all flicker in agent view, none in regular sessions):
Cross-platform:
claude agentson macOS (Ghostty terminal) has no flicker.Environment: Claude Code v2.1.144, Windows 11 ARM (10.0.26200) via Parallels on MacBook Pro M4.
Workarounds attempted (none helped):
"tui": "fullscreen"in settings.jsonCLAUDE_CODE_NO_FLICKER=1env var"prefersReducedMotion": true"spinnerTipsEnabled": false"useAtlasEngine": false,"compatibility.disablePartialInvalidation": true,"compatibility.enableUnfocusedAcrylic": false,"useAcrylic": false,"opacity": 100Follow-up: SSH from macOS Ghostty into Windows VM still flickers
To isolate whether the issue is in the terminal renderer or in Claude Code's output, I SSH'd from macOS (Ghostty) into the Windows VM and ran
claude agentsthere. Result: still flickers, even worse than native Windows terminals.This is significant because the same Ghostty terminal renders
claude agentsflicker-free when running natively on macOS. The only difference is which Claude Code process is generating the output — macOS vs Windows.This confirms the bug is in Claude Code's Windows agent view rendering path (the escape sequences/redraws it emits), not in any terminal renderer or display layer.
Summary of all testing:
| Terminal | Platform | Agent view flickers? |
|----------|----------|---------------------|
| Ghostty | macOS native | No |
| Windows Terminal | Windows (Parallels) | Yes |
| PowerShell (pwsh) | Windows (Parallels) | Yes |
| Git CMD | Windows (Parallels) | Yes |
| Alacritty | Windows (Parallels) | Yes |
| WezTerm | Windows (Parallels) | Yes |
| Ghostty (SSH into Windows) | macOS rendering, Windows Claude Code | Yes |
Regular
claudesessions have zero flicker in all of the above.Having the same issue in windows with WezTerm such a shame!
Then:
Confirming this repros on Windows 11 Pro (26200) for the attach path specifically (
claude agents→ enter session, orclaude attach <id>), and does not repro for a direct foregroundclaudelaunch in the same directory.Reproduces in every terminal I tried:
Reproduces on every recent Claude Code version:
So it's not a terminal-, shell-, or recent-version-specific regression — it's the attach-via-supervisor codepath itself. Each keystroke in the prompt triggers a full-screen redraw that the terminal renders as taskbar attention / flicker.
Things I ruled out (no effect):
CLAUDE_CODE_NO_FLICKER=1on/off,tui: "default",CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1,CLAUDE_CODE_DISABLE_MOUSE=1preferredNotifChannel: notifications_disabledvoiceEnabled: falseawaySummaryEnabled: false,terminalProgressBarEnabled: falsenpx-based statuslineSessionStarthook (superpowers)bellStyle: noneLikely root cause (consistent with #27360 and #23211):
The attach path connects the session's stdio via a Windows named pipe to a ConPTY on the attaching terminal. On that pipe,
process.stdout.isTTYis unreliable and DECSET 2026 synchronized output isn't negotiated end-to-end, so Ink's incremental render path falls back to full-frame redraws (\x1b[2J+ cursor home) on every React state change. The attaching terminal renders the redraws as new content → taskbar flash + visible flicker on each character.The only behavioral workaround we found is to not use the attach path at all — launching a foreground
claudein the same directory works fine. That makes agent view unusable for actual interactive work on Windows today.Thanks to everyone for getting more data on this. I decided to try using claude agents finally, and the flickering is very distracting. Glad to see I'm not the only one (back to using Happy for now). Also, I noticed that it doesn't seem like agents view or the attached session actually respects the /tui setting. It seems to always be "fullscreen" even if you have "default" selected.
Additional testing on different hardware/connection methods:
I also tested
claude agentson a MacBook Pro mid-2015 running Windows 10 via Boot Camp:Combined with my earlier testing on Windows 11 ARM (Parallels), this suggests the issue may be Windows 11 specific rather than Parallels specific. Windows 10 handles the agent view attach path without any flickering.
This issue was fixed as of version 2.1.146.
~5h ago
Can confirm as well. Flickering passed for new sessions. For old sessions, remove them from the agent view (Ctrl+X), then find the sessions and background them. After that, the flickering stops
This issue was fixed as of version 2.1.146.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.