claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Claude CLI -p mode hangs indefinitely

Open visata opened this issue 7 months ago • 1 comments

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

visata avatar May 24 '25 08:05 visata

Quick update on the issue I reported earlier with the Claude CLI -p flag hanging indefinitely.

Turns out it wasn't actually a bug - looks like there was some API downtime happening when I was testing it. I just tried the same commands again and everything's working perfectly now. The -p flag is responding normally and processing prompts as expected.

visata avatar May 24 '25 08:05 visata

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jul 29 '25 16:07 github-actions[bot]