[BUG] Ghostty Terminal Freezes with Claude Code

Resolved 💬 1 comment Opened Aug 16, 2025 by 9bingyin Closed Aug 18, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.83 (Claude Code)
  • Operating System: macOS Tahoe 26.0 arm64
  • Terminal: ghostty

Bug Description

When using Claude (claude) in the Ghostty terminal, the specific terminal tab where claude is running probabilistically experiences a complete freeze. It's important to note that this is not a full application freeze, as other tabs within Ghostty remain fully functional and responsive. This issue tends to manifest after the claude session has been running for some time, and particularly after multiple Git commits have been performed using VS Code's integrated Git plugin within the same project. Once frozen, the affected Ghostty terminal tab becomes entirely unresponsive to any keyboard input or shortcuts, including Ctrl+C and Ctrl+Z, making it impossible to interact with the claude process or the terminal itself.

Steps to Reproduce

The issue can be reproduced probabilistically by first opening the Ghostty terminal and navigating to a project folder that contains a .git directory. Then, run claude and use it for a period of time, engaging in several conversational turns or code edits. During or after this claude session, perform multiple Git commits within the same project using VS Code's integrated Git plugin. Finally, close the current claude session (if it's still active) and then attempt to re-run claude in the Ghostty terminal. It is under these conditions that the terminal may freeze.

Expected Behavior

The claude command should consistently run normally without causing the Ghostty terminal tab to freeze, regardless of prior usage duration or Git activity in the project. The terminal tab should remain responsive, allowing user input and the use of shortcuts at all times.

Actual Behavior

After running claude for a period and performing Git commits via VS Code, re-running claude in the Ghostty terminal can lead to the current terminal tab completely freezing. While the specific tab is unusable, users can still open new terminal tabs within Ghostty and those tabs function normally.

Additional Context

  • This issue has only been observed in the Ghostty terminal. claude operates without freezing in other terminals, such as VS Code's integrated terminal and the default macOS Terminal application.
  • A temporary workaround for the frozen Ghostty terminal tab is to delete the .git directory from the problematic project folder, after which the terminal tab becomes responsive again.
  • Restarting the computer does not resolve the issue; the problem persists even after a system reboot.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗