claude-code - 💡(How to fix) Fix [BUG] Agent View: right-arrow into running agent freezes Terminal.app with partial black render (process idle, Terminal stops drawing)

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…

From Agent View, pressing right-arrow to enter a running agent occasionally freezes the Terminal.app window with a partial-text render and large black regions. The window stops accepting input. Workaround: open Agent View in a new Terminal tab, which usually succeeds on the second try.

Likely related to #58990 (left-arrow nav issues), and shares symptoms with #53353 (transcript view freeze), but the trigger here is specifically right-arrow into a running agent.

Error Message

Error Messages/Logs

Root Cause

From Agent View, pressing right-arrow to enter a running agent occasionally freezes the Terminal.app window with a partial-text render and large black regions. The window stops accepting input. Workaround: open Agent View in a new Terminal tab, which usually succeeds on the second try.

Likely related to #58990 (left-arrow nav issues), and shares symptoms with #53353 (transcript view freeze), but the trigger here is specifically right-arrow into a running agent.

Fix Action

Fix / Workaround

From Agent View, pressing right-arrow to enter a running agent occasionally freezes the Terminal.app window with a partial-text render and large black regions. The window stops accepting input. Workaround: open Agent View in a new Terminal tab, which usually succeeds on the second try.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary

From Agent View, pressing right-arrow to enter a running agent occasionally freezes the Terminal.app window with a partial-text render and large black regions. The window stops accepting input. Workaround: open Agent View in a new Terminal tab, which usually succeeds on the second try.

Likely related to #58990 (left-arrow nav issues), and shares symptoms with #53353 (transcript view freeze), but the trigger here is specifically right-arrow into a running agent.

Environment

  • Claude Code: 2.1.150
  • macOS: 15.7.3 (24G419), Apple Silicon
  • Terminal: Terminal.app (default macOS)
  • Shell: zsh

Diagnostics

Captured one occurrence with a sample-based diagnostic script. Key findings:

  • Foreground claude PID (25668): main thread spent ~99% of samples in kevent64 in libsystem_kernel.dylib. The Node event loop was idle and waiting for I/O. Not a CPU hang.
  • Agent claude PID being entered (79211): also overwhelmingly idle in kevent64. The agent was healthy.
  • WindowServer: 8.4% CPU at moment of freeze (elevated but not pegged).
  • mds_stores / mdworker (Spotlight): 0% CPU. Rules out Spotlight indexing.
  • Frontmost app: Terminal.

Interpretation: both Claude Code processes were alive and event-loop-idle. Terminal stopped drawing them and stopped accepting input. This looks like a render-layer wedge in Terminal.app or WindowServer, possibly triggered by something Claude Code emits on agent-entry (cursor/alt-screen/SGR sequences, PTY resize).

Full capture (sample stacks, ps, env, render-suspects list) available on request. Generated by a small script at ~/.claude/scripts/capture-agent-freeze.sh.

Asks

  1. Are there known sequences Claude Code emits on agent entry that could put Terminal.app's renderer in a bad state? (Alt screen toggles, mouse mode, bracketed paste, SGR resets.)
  2. Is there a debug flag that logs each TTY write so the offending sequence can be isolated next time?
  3. Has this been reproduced on iTerm2 or Ghostty? If it is Terminal.app specific, that materially narrows the surface.

Happy to provide the full capture, run additional diagnostics, or test a candidate fix.

What Should Happen?

Claude agent view should enter agent sessions without freezing terminal

Error Messages/Logs

Steps to Reproduce

  1. From an active session, open Agent View (Ctrl+O or equivalent).
  2. With one or more agents running, press right-arrow to enter one.
  3. Intermittently: window renders a partial frame, large blacked-out regions appear, and the tab stops accepting any input.
  4. Recovery: kill the tab and open Agent View in a new tab. Usually works on second attempt.

Frequency: several times per week. No reliable reproducer.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.150

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

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