claude-code - 💡(How to fix) Fix Recurring error: "The model's tool call could not be parsed (retry also failed)" interrupts sessions

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…

During normal sessions, Claude Code intermittently stops mid-task and shows:

The model's tool call could not be parsed (retry also failed).

When this happens the in-progress action is aborted. It has occurred repeatedly across many sessions and does not appear to self-correct, so the turn is effectively lost and I have to resend the request.

Root Cause

During normal sessions, Claude Code intermittently stops mid-task and shows:

The model's tool call could not be parsed (retry also failed).

When this happens the in-progress action is aborted. It has occurred repeatedly across many sessions and does not appear to self-correct, so the turn is effectively lost and I have to resend the request.

RAW_BUFFERClick to expand / collapse

Summary

During normal sessions, Claude Code intermittently stops mid-task and shows:

The model's tool call could not be parsed (retry also failed).

When this happens the in-progress action is aborted. It has occurred repeatedly across many sessions and does not appear to self-correct, so the turn is effectively lost and I have to resend the request.

Environment

  • Claude Code version: 2.1.158
  • Model: Claude Opus 4.8 (1M context)
  • OS: Windows 11 Pro (build 10.0.26200)
  • Node.js: v25.9.0
  • Shell: PowerShell

What happens

  1. I give Claude a normal coding/file task.
  2. Claude begins working and attempts a tool call (e.g. Edit/Bash).
  3. Instead of the tool running, the session prints: "The model's tool call could not be parsed (retry also failed)."
  4. The action does not complete. The internal retry also fails, so nothing happens and the turn ends.

Frequency & impact

  • Frequency: intermittent but recurring across many unrelated sessions.
  • Impact: the current step is dropped; sometimes recoverable by retrying, sometimes the turn is wasted.

Reproduction

I have not found a deterministic repro. It seems more likely on longer turns or when a tool call contains large / special-character (non-ASCII, quotes, code) arguments, but I cannot confirm a single trigger.

Expected behavior

When the model's tool call cannot be parsed, Claude Code should either recover gracefully (re-prompt and successfully retry) or surface a clearer, actionable message and let the turn continue instead of silently dropping the action.

Additional context

If it helps debugging, point me to where the raw failed tool-call payload is logged (or how to enable verbose/debug logging) and I can attach an example next time.

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…

FAQ

Expected behavior

When the model's tool call cannot be parsed, Claude Code should either recover gracefully (re-prompt and successfully retry) or surface a clearer, actionable message and let the turn continue instead of silently dropping the action.

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 Recurring error: "The model's tool call could not be parsed (retry also failed)" interrupts sessions