[BUG] Claude CLI -p mode hangs indefinitely

Resolved 💬 2 comments Opened May 24, 2025 by visata Closed Jul 21, 2025

Environment

  • Platform (select one):
  • [X] Anthropic API
  • Claude CLI version: 1.0.3
  • Operating System: Windows 11
  • Terminal: WSL2 (Ubuntu)

Bug Description

The Claude CLI freezes and becomes unresponsive when using the -p flag with any prompt. The process appears to hang indefinitely without producing any output, error messages.

Steps to Reproduce

claude -p "explain what Python is"

Expected Behavior

The CLI should process the prompt and show the output.

Actual Behavior

No output is displayed

View original on GitHub ↗

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