claude-code - 💡(How to fix) Fix [Bug] CLI hangs indefinitely when reading small files

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…

Error Message

[{"error":"The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()","timestamp":"2026-05-14T18:06:12.850Z"},{"error":"Error: Request timed out.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6784)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-14T19:28:50.759Z"},{"error":"AxiosError: Request failed with status code 400\n at Io (/$bunfs/root/src/entrypoints/cli.js:116:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12702)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T05:32:32.242Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n {\n "code": "unrecognized_keys",\n "keys": [\n "old_string",\n "new_string"\n ],\n "path": [],\n "message": "Unrecognized keys: \"old_string\", \"new_string\""\n }\n]\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n at map (native:1:11)\n at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T15:28:52.778Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n {\n "code": "unrecognized_keys",\n "keys": [\n "old_string"\n ],\n "path": [],\n "message": "Unrecognized key: \"old_string\""\n }\n]\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n at map (native:1:11)\n at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:27:23.453Z"},{"error":"Error: 413 {"type":"error","error":{"type":"invalid_request_error","message":"Request size exceeds model context window"},"request_id":"req_011CbANCQinxDBgJeB7hRUen"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:60240)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T16:40:57.258Z"}]

Code Example

[{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-05-14T18:06:12.850Z"},{"error":"Error: Request timed out.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6784)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-14T19:28:50.759Z"},{"error":"AxiosError: Request failed with status code 400\n    at Io (/$bunfs/root/src/entrypoints/cli.js:116:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12702)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T05:32:32.242Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"old_string\",\n      \"new_string\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized keys: \\\"old_string\\\", \\\"new_string\\\"\"\n  }\n]\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n    at map (native:1:11)\n    at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n    at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T15:28:52.778Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"old_string\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized key: \\\"old_string\\\"\"\n  }\n]\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n    at map (native:1:11)\n    at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n    at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:27:23.453Z"},{"error":"Error: 413 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Request size exceeds model context window\"},\"request_id\":\"req_011CbANCQinxDBgJeB7hRUen\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:60240)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T16:40:57.258Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description stuck reading a single small file for 4+minutes, pretty ridiculous

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.141
  • Feedback ID: e354a629-1a6b-426b-bd20-0eab66582811

Errors

[{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-05-14T18:06:12.850Z"},{"error":"Error: Request timed out.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:6784)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-14T19:28:50.759Z"},{"error":"AxiosError: Request failed with status code 400\n    at Io (/$bunfs/root/src/entrypoints/cli.js:116:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:121:12702)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:123:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-16T05:32:32.242Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"old_string\",\n      \"new_string\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized keys: \\\"old_string\\\", \\\"new_string\\\"\"\n  }\n]\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n    at map (native:1:11)\n    at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n    at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T15:28:52.778Z"},{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"old_string\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized key: \\\"old_string\\\"\"\n  }\n]\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5238:1034)\n    at map (native:1:11)\n    at j2_ (/$bunfs/root/src/entrypoints/cli.js:5238:559)\n    at fhK (/$bunfs/root/src/entrypoints/cli.js:9064:11025)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:27:23.453Z"},{"error":"Error: 413 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Request size exceeds model context window\"},\"request_id\":\"req_011CbANCQinxDBgJeB7hRUen\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:60240)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-18T16:40:57.258Z"}]

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] CLI hangs indefinitely when reading small files