claude-code - 💡(How to fix) Fix [Bug] Model prematurely terminates execution before completing requested task

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":"RangeError: path should be a path.relative()d string, but got ".."\n at KS1 (/$bunfs/root/src/entrypoints/cli.js:439:16668)\n at N9H (/$bunfs/root/src/entrypoints/cli.js:439:16843)\n at test (/$bunfs/root/src/entrypoints/cli.js:439:17385)\n at MX (/$bunfs/root/src/entrypoints/cli.js:8880:8617)\n at Uz (/$bunfs/root/src/entrypoints/cli.js:851:26581)\n at Fz_ (/$bunfs/root/src/entrypoints/cli.js:851:29500)\n at w25 (/$bunfs/root/src/entrypoints/cli.js:2561:3186)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2561:3775)\n at D25 (/$bunfs/root/src/entrypoints/cli.js:2561:5155)\n at O76 (/$bunfs/root/src/entrypoints/cli.js:2561:7351)","timestamp":"2026-05-16T01:42:49.874Z"}]

Code Example

[{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at KS1 (/$bunfs/root/src/entrypoints/cli.js:439:16668)\n    at N9H (/$bunfs/root/src/entrypoints/cli.js:439:16843)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:439:17385)\n    at MX (/$bunfs/root/src/entrypoints/cli.js:8880:8617)\n    at Uz_ (/$bunfs/root/src/entrypoints/cli.js:851:26581)\n    at Fz_ (/$bunfs/root/src/entrypoints/cli.js:851:29500)\n    at w25 (/$bunfs/root/src/entrypoints/cli.js:2561:3186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2561:3775)\n    at D25 (/$bunfs/root/src/entrypoints/cli.js:2561:5155)\n    at O76 (/$bunfs/root/src/entrypoints/cli.js:2561:7351)","timestamp":"2026-05-16T01:42:49.874Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description I asked something specific but the model tries to end it before actually do what I asked for.

Environment Info

  • Platform: darwin
  • Terminal: WezTerm
  • Version: 2.1.141
  • Feedback ID: 36bce292-5806-4fa3-8e80-d0c640b3a253

Errors

[{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n    at KS1 (/$bunfs/root/src/entrypoints/cli.js:439:16668)\n    at N9H (/$bunfs/root/src/entrypoints/cli.js:439:16843)\n    at _test (/$bunfs/root/src/entrypoints/cli.js:439:17385)\n    at MX (/$bunfs/root/src/entrypoints/cli.js:8880:8617)\n    at Uz_ (/$bunfs/root/src/entrypoints/cli.js:851:26581)\n    at Fz_ (/$bunfs/root/src/entrypoints/cli.js:851:29500)\n    at w25 (/$bunfs/root/src/entrypoints/cli.js:2561:3186)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2561:3775)\n    at D25 (/$bunfs/root/src/entrypoints/cli.js:2561:5155)\n    at O76 (/$bunfs/root/src/entrypoints/cli.js:2561:7351)","timestamp":"2026-05-16T01:42:49.874Z"}]

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