claude-code - 💡(How to fix) Fix [Bug] Unintended git reset --hard executed without user confirmation [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52064Fetched 2026-04-23 07:37:29
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×5

Error Message

[{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:54:49.914Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.065Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.066Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.265Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.266Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.919Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.920Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.515Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.516Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.705Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.706Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n at K (/$bunfs/root/src/entrypoints/cli.js:525:11889)\n at emitWarning (ws:43:42)\n at #onOrOnce (ws:170:18)\n at Dr_ (/$bunfs/root/src/entrypoints/cli.js:3832:4680)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T06:14:59.07…

Code Example

[{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:54:49.914Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.065Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.066Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.265Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.266Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.919Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.920Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.515Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.516Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.705Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.706Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:525:11889)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at Dr_ (/$bunfs/root/src/entrypoints/cli.js:3832:4680)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T06:14:59.07
RAW_BUFFERClick to expand / collapse

Bug Description Well you can see it here. It runied a lot of work by doing a git reset --hard on my worktree without asking..... Tons of creative code work done and a waste of my tokens. Really sad about this

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.114
  • Feedback ID: 5918da7b-1b73-472a-8d9f-30679781fdb5

Errors

[{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:54:49.914Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.065Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T21:37:00.066Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.265Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T22:53:09.266Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.919Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T00:03:07.920Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.515Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T02:27:45.516Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T04:23:03.681Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.705Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at zF1 (/$bunfs/root/src/entrypoints/cli.js:2749:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T05:25:43.706Z"},{"error":"Error: console.error: [bun] Warning: ws.WebSocket 'unexpected-response' event is not implemented in bun\n    at K (/$bunfs/root/src/entrypoints/cli.js:525:11889)\n    at emitWarning (ws:43:42)\n    at #onOrOnce (ws:170:18)\n    at Dr_ (/$bunfs/root/src/entrypoints/cli.js:3832:4680)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T06:14:59.07

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely caused by a timeout error when fetching the version from a specific URL, and a potential workaround is to increase the timeout value or check the network connectivity.

Guidance

  • The error messages indicate a timeout of 30000ms exceeded when trying to fetch the version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest. This suggests a network connectivity issue or a problem with the server responding in a timely manner.
  • To mitigate this, you can try increasing the timeout value to a higher number, such as 60000ms, to give the server more time to respond.
  • Additionally, checking the network connectivity and ensuring that the URL is accessible can help resolve the issue.
  • It's also worth noting that there's a warning about an unimplemented ws.WebSocket 'unexpected-response' event in bun, which might be related to the issue, but without more information, it's hard to determine the exact cause.

Notes

The provided content was truncated, which might limit the ability to provide a comprehensive solution. Further investigation into the network connectivity, server response times, and the warning about the unimplemented ws.WebSocket 'unexpected-response' event might be necessary to fully resolve the issue.

Recommendation

Apply a workaround by increasing the timeout value or checking the network connectivity, as the root cause of the issue is not entirely clear from the provided information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Unintended git reset --hard executed without user confirmation [1 participants]