claude-code - 💡(How to fix) Fix [Bug] Claude Code ignores user instructions and takes easier approach despite max effort setting [1 comments, 2 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#48794Fetched 2026-04-16 06:50:46
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gus/.local/share/claude/versions/2.1.105 (expected in multi-process scenarios)\n at bd_ (/$bunfs/root/src/entrypoints/cli.js:2334:2153)\n at nt6 (/$bunfs/root/src/entrypoints/cli.js:2334:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:50.989Z"},{"error":"MaxFileReadTokenExceededError: File content (23163 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Jf7 (/$bunfs/root/src/entrypoints/cli.js:4404:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:58.907Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.093Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.162Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n at emitError (node:events:43:23)\n at emitErrorNT (internal:streams/destroy:88:12)\n at emitErrorCloseNT (internal:streams/destroy:69:14)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async up1 (unknown)\n at async mp1 (unknown)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n at emitError (node:events:43:23)\n at emitErrorNT (internal:streams/destroy:88:12)\n at emitErrorCloseNT (internal:streams/destroy:69:14)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at async up1 (unknown)\n at async mp1 (unknown)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()\n at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n at async pn9 (unknown)\n at async cn9 (unknown)\n at async cp1 (unknown)\n at async Qn9 (unknown)\n at unknown\n at processTicksAndRejections (native:7:39)","t…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gus/.local/share/claude/versions/2.1.105 (expected in multi-process scenarios)\n    at bd_ (/$bunfs/root/src/entrypoints/cli.js:2334:2153)\n    at nt6 (/$bunfs/root/src/entrypoints/cli.js:2334:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:50.989Z"},{"error":"MaxFileReadTokenExceededError: File content (23163 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Jf7 (/$bunfs/root/src/entrypoints/cli.js:4404:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:58.907Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.093Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.162Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","t…
RAW_BUFFERClick to expand / collapse

Bug Description novamente o claude nao segue o que foi pedido e tenta achar a saida mais facil mesmo no max effort.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.105
  • Feedback ID: a06cbcb4-b918-49dd-97f3-b9b59e30776c

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/gus/.local/share/claude/versions/2.1.105 (expected in multi-process scenarios)\n    at bd_ (/$bunfs/root/src/entrypoints/cli.js:2334:2153)\n    at nt6 (/$bunfs/root/src/entrypoints/cli.js:2334:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:50.989Z"},{"error":"MaxFileReadTokenExceededError: File content (23163 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at Jf7 (/$bunfs/root/src/entrypoints/cli.js:4404:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T04:58:58.907Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.093Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/gus/Faz o PIX.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4413:7629)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T05:20:53.162Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T07:05:52.416Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12521)\n    at emitError (node:events:43:23)\n    at emitErrorNT (internal:streams/destroy:88:12)\n    at emitErrorCloseNT (internal:streams/destroy:69:14)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async up1 (unknown)\n    at async mp1 (unknown)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-14T08:00:10.570Z"},{"error":"Error: Failed to download binary from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.107/darwin-arm64/claude: The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()\n    at mp1 (/$bunfs/root/src/entrypoints/cli.js:2332:7628)\n    at async pn9 (unknown)\n    at async cn9 (unknown)\n    at async cp1 (unknown)\n    at async Qn9 (unknown)\n    at unknown\n    at processTicksAndRejections (native:7:39)","t…

Note: Content was truncated.

extent analysis

TL;DR

The issue seems to be related to network connectivity and file access problems, and a potential workaround could be to check the internet connection and verify the existence of required files.

Guidance

  • Check the internet connection to ensure it is stable, as several errors indicate socket connection issues.
  • Verify that the files and directories mentioned in the errors exist and are accessible, such as /Users/gus/.local/share/claude/versions/2.1.105 and the files being downloaded from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/.
  • Consider passing verbose: true in the second argument to fetch() as suggested by some error messages to get more detailed information about the download failures.
  • Ensure that the current working directory is set correctly, as some errors mention file not found issues related to the current working directory /Users/gus/Faz o PIX.

Example

No specific code snippet can be provided without more context, but ensuring that file paths and network requests are correctly handled can help mitigate these issues.

Notes

The provided issue content is truncated, which might limit the ability to provide a comprehensive solution. Additionally, without more details about the application and its expected behavior, it's challenging to offer a precise fix.

Recommendation

Apply a workaround by checking and stabilizing the internet connection and verifying file accessibility, as these seem to be the primary causes of the errors encountered.

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] Claude Code ignores user instructions and takes easier approach despite max effort setting [1 comments, 2 participants]