macOS: Single tab/surface becomes unresponsive while rest of app stays alive (1.3.1, Tahoe 26) #12636
Replies: 2 comments 1 reply
-
|
Routing pointer: the active diagnostic thread is now on the closed companion issue #12629 — @eraseliu001 has posted a deterministic repro and an in-band-reset diagnostic that narrows the wedge to per-surface object-model state in Ghostty (not DEC/xterm/kitty mode flags). I hit it again today on two tabs simultaneously and have +1'd the reopen request there. Anyone following this discussion: that's where the live evidence is accumulating. |
Beta Was this translation helpful? Give feedback.
-
|
Independent reproduction on July 13 with Ghostty 1.3.1, macOS 26.5.1 on Apple Silicon, and Claude Code 2.1.206. One Ghostty surface became completely keyboard-input-dead while:
Closing only the affected tab and resuming the same Claude conversation in a fresh Ghostty tab/PTY restored input immediately. The incident occurred near a high-system-load period and a tmux launch, but neither is established as causal. Tmux was attached to a different PTY. The contemporaneous I saw the suggestion to inspect keyboard events through Ghostty's Terminal Inspector. Unfortunately, I closed the wedged surface before capturing that. On recurrence I can check whether key events reach the inspector and collect a Ghostty sample/spindump at the same time. Is there a preferred debug build, trace category, or diagnostic bundle for distinguishing surface event delivery from the PTY write path? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
A single Ghostty tab becomes completely unresponsive — keyboard input and shortcuts (including Ctrl-C / Ctrl-Z) are dropped, while other tabs in the same Ghostty window stay fully responsive. Closing the tab is the only known recovery.
Likely the same surface-level wedge as anthropics/claude-code#5939 (closed by reporter without investigation, no fix).
This is a single-surface freeze (one tab dead, rest of the app alive) — distinct from the whole-window SecureKeyboardInput freeze in #9590. Diagnostics in the Actual Behavior section.
Expected Behavior
The Ghostty tab should continue to respond to keyboard input throughout the session, regardless of how long it has been running or how much git activity has happened in the same project directory.
Actual Behavior
After running
claudein a Ghostty tab for an extended session in a project containing.git/, alongside parallel git commits via VS Code's git plugin, the tab eventually becomes totally unresponsive — keystrokes ignored, Ctrl-C / Ctrl-Z dead, scrollback dead. Other tabs keep working. Closing the affected tab is the only recovery.Captured live during a freeze: 5 s user-stack
sampleof ghostty + 2 min unified log +psstate.Triage signature check
SecureKeyboardInput/TSMProcessRawKeyCodepasteboard/NSPasteboardCGSConnectionByID/WindowServerkevent/libxevMain thread (1 ms sampling, 4017 hits over 5 s)
mach_msginside_DPSNextEvent— normal idle.Single sample only — a longer
sampleorspindumpwould confirm whether this is the steady-state hot path. Sharing because thecold.6marker is unusual.Thread layout
22 threads total: 3× renderer, 3× io, 3× io-reader, 3× cf_release (all parked in
kevent64); plus NSEventThread, CVDisplayLink, Metal queues, main thread (state above). Three sets of renderer/io/io-reader implies three live surfaces; only one wedged from the user's perspective.Unified log (last 2 min)
Routine
StateRestorationflushes, CoreSpotlight indexing, AppKit XPC. Nothing pathological.Full sample.txt (232 KB) and unified-log.txt (24 KB) available on request — non-maintainers can't attach files to discussions in this repo.
Reproduction Steps
.git/.claude) for an extended period..git/).Probabilistic; not every session, but recurring. Not reproduced in Terminal.app, iTerm2, or VS Code's integrated terminal.
Ghostty Logs
No response
Ghostty Version
OS Version Information
macOS Tahoe 26.4.1 (Apple Silicon, M-series, build 25E253)
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions