claude-code - 💡(How to fix) Fix [Bug] Claude fails to consistently follow project rules despite acknowledging violations

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-30T09:40:19.301Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:09.327Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.261Z"},{"error":"Error: Tool Result not found\n at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.401Z"}]

Code Example

[{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-05-30T09:40:19.301Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:09.327Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.261Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.401Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Honesty without the capacity to learn or remember is extremely frustrating. This session ignored the rule in the project constitution to never commit with linting errors upwards of 5 times. It was aware enough to retrospectively notice it broke the rule, acknowledge and apologize, but it clearly had no capacity to stop doing it. From a human perspective this is incredibly annoying.

Even worse, I have a rule in core memory to run tests in the test container with the test db. Should be pretty obvious without the rule, but I've learned that the hard way. Guess what else happened this session? We ran TESTS in my WEB container. It did NOT notice this until I saw my local data changed and asked about it. Then it noticed there was a rule in the memory, apologized, and explained this was due to the rule "not being specific enough". Then, it checked the rule - turns out its already pretty specific. So, it says it will include a consequence to the rule, which is something that has no impact on its process of actually checking said rules or obeying them.

Announcing errors helps in that it surfaces issues so I am aware of them, but given that the only tools I have to improve processes are clearly broken, it just makes the user, frustrated and powerless.

Environment Info

  • Platform: darwin
  • Terminal: waveterm
  • Version: 2.1.158
  • Feedback ID: 802f8a50-b8ff-4a30-a5e4-682ad491e8e2

Errors

[{"error":"The socket connection was closed unexpectedly. For more information, pass `verbose: true` in the second argument to fetch()","timestamp":"2026-05-30T09:40:19.301Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:09.327Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.261Z"},{"error":"Error: Tool Result not found\n    at FOK (/$bunfs/root/src/entrypoints/cli.js:4044:14126)\n    at h3 (/$bunfs/root/src/entrypoints/cli.js:579:21150)\n    at Ww (/$bunfs/root/src/entrypoints/cli.js:579:39921)\n    at s9H (/$bunfs/root/src/entrypoints/cli.js:579:50731)\n    at H7H (/$bunfs/root/src/entrypoints/cli.js:579:87746)\n    at vt (/$bunfs/root/src/entrypoints/cli.js:579:86710)\n    at Nt (/$bunfs/root/src/entrypoints/cli.js:579:86530)\n    at zg (/$bunfs/root/src/entrypoints/cli.js:579:82872)\n    at j_ (/$bunfs/root/src/entrypoints/cli.js:579:6438)\n    at vM8 (/$bunfs/root/src/entrypoints/cli.js:572:5415)","timestamp":"2026-05-30T18:48:10.401Z"}]

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 fails to consistently follow project rules despite acknowledging violations