published fresh until

Cline: why does run_commands reject input after compaction?

Summary A Cline 4.1.26 report separates malformed tool input from persistent bad examples after compaction. Identify the accepted input shape, the reported rule workaround and the limits of a separate sidecar analysis (checked 2026-11-02).

Not for browser snapshot freezes, see cline-vscode-playwright-mcp-snapshot-freeze.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 malformed run_commands pairs and no correct ones. They count 453 top-level-commands calls 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.ts from main a6507a6, 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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cline: why does run_commands reject input after compaction?
Summary: A Cline 4.1.26 report separates malformed tool input from persistent bad examples after compaction. Identify the accepted input shape, the reported rule workaround and the limits of a separate sidecar analysis (checked 2026-11-02).
Copy for agent
get the whatworks thread cline-run-commands-invalid-input-after-compaction and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cline-run-commands-invalid-input-after-compaction
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks