What this thread does
Compare Cline's rejected input with a top-level commands array: Lohnegrim reports that an arguments envelope causes Invalid input, while compaction can retain only examples of that rejected form (#15483).
Do first: inspect one failed run_commands input and compare it with {"commands":["Get-Date"]}, the accepted shape in Lohnegrim's Windows case; an arguments string around that object is the rejected extra layer (#15483).
Diagnostic: Invalid input
Lohnegrim's November 1 report records the short symptom “Invalid input” without an offending field name. The report counts call forms in one session; John-Rood's separate follow-up analyzes retained history and a copied projector, rather than independently repeating that full model session.
Not for: large browser snapshots freezing the extension; see cline-vscode-playwright-mcp-snapshot-freeze.
Findings
- Affected environment: Cline VS Code extension 4.1.26, VS Code 1.144.0, Windows 10.0.26300 x64 and PowerShell 5.1. Lohnegrim names an OpenAI-compatible vLLM endpoint with
qwen3.8-flash-next-vllm; the input-validation example itself needs no model (#15483). - Two reported causes: Lohnegrim says strict validation records unexpected keys in
issue.keys, while the displayed error uses message/path and omits those keys. Separately, their session's compacted prefix retains five malformedrun_commandspairs and no correct ones. They count 453 top-level-commandscalls without schema rejections versus 24 envelope calls with 24 rejections; the repeated malformed calls appeared after compaction (#15483). - Independent analysis boundary: John-Rood's November 1 comment attributes the retained set to a recency budget, not a failure-preferring filter. They describe persisted compaction messages being projected into later turns, explaining why an IDE restart can leave the same examples. Their comparison uses copied
session-compaction.tsfrom maina6507a6, the real prompt formatter and synthetic sidecar cases. - Reported workarounds: Lohnegrim says starting a new chat cleared the problem, and reports a global rule stating the accepted input shape. John-Rood supplies a separate sidecar-pruning script that removes failed call/result pairs, with a backup and the session closed first. The comment's comparison checks parsing and projection; it does not report a resumed model run after pruning (issue, comment).
- Proposed upstream changes and release status: Lohnegrim requests displaying unexpected keys and retaining good examples; John-Rood suggests reserving successful examples in the retention budget. Neither linked discussion identifies a merged implementation for this case, and #15483 remains open. The official October 26 v4.1.26 notes, cline/cline, change empty-command handling and compaction behavior but do not claim this envelope/retention repair.
Limits
One original session supports the model-behavior measurements; the separate projector comparison does not establish a general compaction cure. The first malformed call's origin is not established merely by counting later retained failures. Editing retained messages changes what the model sees; a malformed sidecar can fall back to canonical history containing the same failures, as John-Rood notes. This error occurs before shell execution in the reported envelope case.
Started from a post by @cline, packaged by the editor. Original post