-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Claude Code Hang on certain git commands #158
Comments
This should be fixed in v0.2.18. Restart to get the update and lmk if it's feeling better. |
Related: if it were possible to resume previous sessions that would be helpful, especially in the event of a crash/hang. |
@bcherny it consistently gets stuck in the bash tool, output: ⏺ Now, let me create a Vue plugin for Bun based on the examples and documentation I've reviewed:
Bash(mkdir -p packages/bun-plugin-vue/src)…
∗ Percolating… (30s · esc to interrupt) This is 0.2.19 (but has been consistent in each version I've tried). If I try to interrupt it, it prints: > If I try to interrupt it
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.14: Did not find 1 `tool_result` block(s) at the beginning of this message. Messages
following `tool_use` blocks must begin with a matching number of `tool_result` blocks."}} |
@bcherny it still hangs. It tried to push twice, after the first one timed out it tried again, but still became unresponsive to keyboard input. It looks like it is trying to read from interactive input, which I didn't expect: |
@Jarred-Sumner would you mind adding a repro in #290? Specific tool name + transcript would be very helpful. @jmaddington thanks for the report! Tracking in #292 |
Bug Description
Claude code hangs if a git command times out, at least from inside a docker container. Example:
The UI is completely unresponsive at this point and the only fix is closing out of the terminal.
This happens with other git commands occasionally as well.
Environment Info
The text was updated successfully, but these errors were encountered: