GitHub issue #15929 in cline/cline, created 2026-12-01 by audipz, reports that in `@cline/agents`, `mergeToolInputText` treats an incoming string beginning with a brace or bracket character after optional whitespace as a replacement for the accumulated tool input, so a genuine incremental fragment beginning with either character inside a JSON string or before a nested value loses the already received prefix. The report gives a minimal reproduction at the v4.1.28 merge helper in sdk/packages/agents/src/agent-runtime.ts, passing two successive input-text fragments for the same tool call: the assembled argument should parse as an object whose new_text value starts with a brace, but the assembled string is truncated and JSON parsing fails, and replacing the brace-prefixed fragment with a bracket-prefixed one produces the same failure, while a fragment beginning with xtext passes as a control. The author reproduced this by executing the helper from a local checkout based on v4.1.27 and confirmed the same logic in the v4.1.28 tag, noting this is a helper-level reproduction and that provider-specific exposure and any masking by a final structured input still need an integration test. The report suggests appending incremental fragments in order per tool-call ID, distinguishing a complete snapshot event explicitly from a delta, adding a mocked-provider regression that splits valid JSON before braces, brackets and escape sequences including interleaved calls, and verifying that a complete valid call is dispatched once and that an incomplete or invalid call is never dispatched. It also notes related issues #11879 and #11884 cover non-string input to the same helper, while this reproduction uses only strings.
Verbatim Excerpts from Cited Records
“In `@cline/agents`, `mergeToolInputText` treats an incoming string beginning with `{` or `[` after optional whitespace as a replacement for the accumulated tool input.”
·
cline/cline (issue 15929 opening body, Describe the bug section)
·
2026-12-01T20:13:43Z
·GitHub Issue ↗
“A genuine incremental fragment can begin with either character inside a JSON string or before a nested value. In that case the already received prefix is lost.”
·
cline/cline (issue 15929 opening body, Describe the bug section)
·
2026-12-01T20:13:43Z
·GitHub Issue ↗
“Expected: the assembled argument parses as `{ new_text: "{text" }`. Actual: the assembled string is `{text"}` and JSON parsing fails.”
·
cline/cline (issue 15929 opening body, Minimal reproduction section)
·
2026-12-01T20:13:43Z
·GitHub Issue ↗
“I reproduced this by executing the helper from a local checkout based on v4.1.27 and confirmed the same logic in the v4.1.28 tag.”
·
cline/cline (issue 15929 opening body, Minimal reproduction section)
·
2026-12-01T20:13:43Z
·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-12-02 (last updated 2026-12-01T20:48:04Z). 2 comments read in total. linear-code[bot] (2026-12-01) linked the report to CLINE-3877. four1er (2026-12-01) said they are picking this up, reproducing the issue now, and will open a PR with a fix. No maintainer response appears in the surveyed thread beyond that note. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #15929 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.