claude-code - 💡(How to fix) Fix [Bug] UI layout breaks on terminal resize with corrupted table and code display [1 comments, 2 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#55577Fetched 2026-05-03 04:49:48
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/morris/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-02T12:29:01.302Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/morris/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n    at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-02T12:29:01.302Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I am using a MacBook with Ghostty editor, and it seems that every time I resize the window vertically or horizontally, the "UI" in Claude code chat breaks. The tables, code blocks, and other text formats become distorted (it only shows half the screen). I have to Ctrl+C to stop the session and Cmd+K to clear the chat; the Claude --resume session fixes it.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.126
  • Feedback ID: 766642d7-861e-425a-9457-7d9a5763c1ce

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/morris/.local/share/claude/versions/2.1.126 (expected in multi-process scenarios)\n    at r86 (/$bunfs/root/src/entrypoints/cli.js:2768:2177)\n    at HD8 (/$bunfs/root/src/entrypoints/cli.js:2768:1257)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-02T12:29:01.302Z"}]

extent analysis

TL;DR

The issue may be related to the Ghostty editor's handling of window resizes, causing the Claude code chat UI to break, and a potential workaround is to avoid resizing the window or use a different terminal.

Guidance

  • The error message suggests a potential issue with lock acquisition, which might be related to the multi-process scenario, but it's unclear how this directly affects the UI distortion.
  • To mitigate the issue, try avoiding window resizes or use a different terminal to see if the problem persists.
  • The fact that stopping the session and clearing the chat fixes the issue temporarily suggests that it might be related to the rendering or state management of the Claude code chat.
  • Consider reporting this issue to the Ghostty editor or Claude developers, as it might be a compatibility problem between the two.

Notes

The provided error message does not directly point to the cause of the UI distortion, and without more information about the Ghostty editor's rendering mechanism or the Claude code chat's implementation, it's challenging to provide a definitive fix.

Recommendation

Apply workaround: Avoid resizing the window or use a different terminal, as this seems to temporarily resolve the issue, although it's not a permanent solution.

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

claude-code - 💡(How to fix) Fix [Bug] UI layout breaks on terminal resize with corrupted table and code display [1 comments, 2 participants]