GitHub issue #15867 in cline/cline, opened 2026-11-25 by audipz, records a report that after context compaction, Cline v4.1.27 sends consecutive messages with the `user` role to an OpenAI-compatible local endpoint, and the Mistral chat template rejects that message sequence, resulting in HTTP 400 and interrupting the agent session. The report was filed from macOS in VS Code, using the model mlx-community/Devstral-2-123B-Instruct-2512-4bit through a local vLLM endpoint, and says the failure was reproduced immediately after Cline generated a context summary, with the outgoing JSON request captured using vLLM DEBUG logging.
Verbatim Excerpts from Cited Records
“After context compaction, Cline sends consecutive messages with the `user` role to the OpenAI-compatible API.”
·
cline/cline (issue 15867 opening body, Description section)
·
2026-11-25T12:25:12Z
·GitHub Issue ↗
“The Mistral chat template rejects this message sequence, resulting in HTTP 400 and interrupting the agent session.”
·
cline/cline (issue 15867 opening body, Description section)
·
2026-11-25T12:25:12Z
·GitHub Issue ↗
“Chat template rejected the request: After the optional system message, conversation roles must alternate user and assistant roles except for tool calls and results. HTTP 400 Bad Request”
·
cline/cline (issue 15867 opening body, Actual behavior section, vLLM error output)
·
2026-11-25T12:25:12Z
·GitHub Issue ↗
“Context compaction should preserve a message structure compatible with the configured model.”
·
cline/cline (issue 15867 opening body, Expected behavior section)
·
2026-11-25T12:25:12Z
·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-11-26 (last updated 2026-11-25T21:32:50Z). 5 comments read in total. linear-code[bot] (2026-11-25) linked the report to CLINE-3842. jiangxingfan1-coder (2026-11-25) proposed a negative control for the consolidation regression, explicitly stating it is not a reproduction of the Cline/vLLM issue. audipz (2026-11-25) attached a local patch and reported the patched session running for more than 20 minutes with no HTTP 400 errors, then reported about 2 hours 29 minutes of monitoring with 100 HTTP 200 responses and 0 HTTP 400 errors, and later added cancellation and retry analysis with two further patches, confirming a second pattern in which interrupted tool-call sequences after task cancellation and resumption also return HTTP 400. No maintainer response or upstream fix appears in the surveyed thread (all commenters are author_association NONE). The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #15867 is deleted without archive, 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.