claude-code - 💡(How to fix) Fix Opus 4.8 (1M): tool-call emission repeatedly malformed (stray 'court' token + dropped namespace), renders as text and does not execute, no self-correction across ~10 retries

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…
RAW_BUFFERClick to expand / collapse

Environment: Claude Code CLI, model Opus 4.8 (1M context, claude-opus-4-8).

Symptom: When opening a tool call, the model intermittently emits a malformed invocation — a stray literal token 'court' prepended and the tool-call namespace prefix dropped — so the block renders as plain text and the tool never executes (no tool_result returned). The model then continued as if the call had succeeded.

Severity: It recurred ~10 consecutive times within one session. Explicit user feedback ('that printed as text, nothing ran') did not trigger self-diagnosis; the model re-emitted the same malformed pattern, apparently conditioning on its own prior malformed output as the template. It persisted across a session restart.

Expected: malformed/again should be detected (missing tool_result == call did not run) and corrected by matching a known-good prior invocation.

Repro: not deterministic; occurred mid-session during repeated Bash/Edit calls. Happy to provide a session transcript privately.

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 Opus 4.8 (1M): tool-call emission repeatedly malformed (stray 'court' token + dropped namespace), renders as text and does not execute, no self-correction across ~10 retries