Forumics logo Forumics
Issue 01

Back to issue

All Cline known issues

CLAIM C236 Supported 2026-12-03

GitHub issue #14965 in cline/cline, created 2026-10-09 by erflores-tech and titled "Desktop: `reasoning_content in the thinking mode must be passed back to the API` - Cline replays tool_use-only assistant turns with no reasoning block (opencode-go / deepseek-v4.1-flash)", reports that a long, tool-heavy Desktop chat on deepseek-v4.1-flash in thinking mode dies with an upstream invalid_request_error requiring reasoning_content to be passed back to the API, 100 percent reproducibly from the failing turn onward until the session is abandoned. The report's root cause is that Cline persists assistant thinking turns as thinking blocks, but 41 of 209 assistant turns in the affected session are tool_use-only with no thinking block; when Cline rebuilds the conversation for the next request it replays those reasoning-less assistant turns verbatim and the DeepSeek thinking-mode endpoint rejects the whole request. The session began on cline-pass, which tolerated the reasoning-less turns, and was then switched to the opencode-go route, which enforces the pass-back rule. Suggested fixes include guaranteeing reasoning_content on every replayed assistant turn to a thinking model, self-recovery on invalid_request_error, fixing reasoning capture at the source, and surfacing an actionable error.

Verbatim Excerpts from Cited Records
“**Cline persists assistant "thinking" turns as a `{"type":"thinking","thinking":"…"}` content block, but a substantial minority of assistant turns are persisted with no thinking block at all. When Cline rebuilds the conversation for the next request, it replays those reasoning-less assistant turns verbatim. A DeepSeek thinking-mode endpoint requires that the `reasoning_content` of each replayed assistant turn be passed back, so it rejects the entire request with `invalid_request_error`.**”
— erflores-tech · cline/cline (issue 14965 opening body, Root cause section) · 2026-10-09T04:38:25Z ·GitHub Issue ↗
“The run failed: Upstream request failed: [invalid_request_error] The `reasoning_content` in the thinking mode must be passed back to the API. (request_id: c73c222e-1dbd-42d0-88ca-5ff5527d4006)”
— erflores-tech · cline/cline (issue 14965 opening body, What happens section) · 2026-10-09T04:38:25Z ·GitHub Issue ↗
“This is an **upstream (model API) rejection**, not a transport/hub failure. It is unrelated to the 16 MB hub-frame issue tracked separately (`code=1006`, see Related issues below).”
— erflores-tech · cline/cline (issue 14965 opening body, What happens section) · 2026-10-09T04:38:25Z ·GitHub Issue ↗
“In the affected session, **41 of 209 assistant turns are `tool_use`-only with no `thinking` block** (the 42nd reasoning-less entry is the error message itself). These are exactly the turns the upstream is entitled to reject, because Cline hands the API an assistant message that does not carry the `reasoning_content` the endpoint requires.”
— erflores-tech · cline/cline (issue 14965 opening body, Root cause section) · 2026-10-09T04:38:25Z ·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-12-03 (last updated 2026-12-02T02:54:43Z), with no labels. 2 comments read in total. linear-code[bot] (2026-10-09) linked the internal tracker CLINE-3584. aarondglover (2026-12-02) independently corroborated the diagnosis: across 880 occurrences in his logs, every single one followed an assistant.message with empty content that issued a tool call, a tool_use-only turn with no prose, and zero followed a turn containing any text; he added two corroborating reports from other projects (github/copilot-cli#4946 and microsoft/vscode#341934) and noted a Copilot CLI-specific workaround he packaged does not apply to Cline. No maintainer fix or not-planned decision appears in the surveyed thread. The claim documents only the original report, not a verified current state. Falsification probe: If GitHub issue #14965 is closed as fixed, as a duplicate, or as not planned, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn. Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by scripts/verify_claim_verbatim.py.