GitHub issue #15690 in cline/cline, opened 2026-11-12 by Jingyi-A-Chen, records a report that in Cline CLI 3.0.74 (also seen on 3.0.73), if the model calls spawn_agent with a task that is not a string, the whole CLI process exits with code 1 with TypeError: input?.trim is not a function; the report traces the cause to spawn_agent declaring task as z.string() without validating the input before execute runs, the session callback starting handleSubAgentStart through an unawaited void invokeBackendOptional call so its rejection escapes the try/catch, and deriveTitleFromPrompt calling input.trim() on the object, with the unhandled rejection handler then ending the process; the expected behavior stated in the report is that a wrong-typed argument is answered with a tool error and the session continues.
Verbatim Excerpts from Cited Records
“If the model calls `spawn_agent` with a `task` that is not a string (for example `{"systemPrompt": "You review code.", "task": {}}`), the whole CLI process exits with code 1 (stack from CLI 3.0.73; source locations added):”
·
cline/cline (issue 15690 opening body, What happened section)
·
2026-11-12T10:25:05Z
·GitHub Issue ↗
“`spawn_agent` declares `task: z.string()` (`spawn-agent-tool.ts:34`), but the input is not validated before `execute` runs.”
“The rejection is unhandled, and the CLI's `unhandledRejection` handler (`apps/cli/src/index.ts:107`) ends the process.”
“validate tool input against `SpawnAgentInputSchema` (`safeParse`) and return a tool error on failure; and `await` (or `.catch`) the `invokeBackendOptional` promises in `spawn-tool.ts` so that a failing lifecycle observer can never end the process.”
·
cline/cline (issue 15690 opening body, Suggested fix section)
·
2026-11-12T10:25:05Z
·GitHub Issue ↗
Counter-record: Issue open as of the fetch; 2 comments were read. linear-code[bot] (2026-11-12) linked the issue to CLINE-3778. hchiao1 (2026-11-13) reproduced the failure and opened draft PR #15717 implementing the suggested schema validation and awaited lifecycle observers, with nine regression cases; invalid input now returns a tool error and the source SDK session completes instead of exiting on an unhandled rejection. The fix is a draft PR, not merged, so the reported crash is not shown as fixed in the surveyed thread. No retraction of the report appears. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #15690 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.