Bash tool hangs on single-line commands

Resolved 💬 4 comments Opened Feb 8, 2026 by AungMyoKyaw Closed Feb 12, 2026

Bug Description

The bash tool gets stuck/hangs when executing single-line commands in Claude Code 2.1.37.

<img width="1552" height="1012" alt="Image" src="https://github.com/user-attachments/assets/1fec61c8-55c5-415d-a865-8bc0824cd8b8" />

Environment

  • Claude Code version: 2.1.37
  • Platform: macOS (darwin)
  • Shell: zsh

Steps to Reproduce

  1. Run a git commit command via bash tool
  2. Example command that hangs:

``bash
git add claude/settings.json zsh/.zshrc zsh/.zshrc.d/00-performance.zsh zsh/.zshrc.d/10-modern-tools.zsh nvim/.config/nvim/lazy-lock.json && git commit -m "refactor: simplify zsh config"
``

Expected Behavior

Command should execute and return results within a reasonable time.

Actual Behavior

Bash tool hangs indefinitely on single-line command execution.

Additional Context

  • Was attempting to commit changes after refactoring zsh configuration
  • Git status showed staged changes ready to commit
  • Command works fine when run directly in terminal

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗