Forumics logo Forumics
Issue 01

Back to issue

All Cline known issues

CLAIM C219 Supported 2026-11-29

GitHub issue #14544 in cline/cline, opened 2026-09-26 by pipa83165 and titled "CLI hangs indefinitely when stdout is piped (non-TTY) — task completes but output never printed, process never exits", reports that running the Cline CLI (version 3.0.65) non-interactively with stdout redirected to a pipe hangs forever: the task itself completes in seconds — the session JSON shows "status": "completed", "exit_code": 0 with the full model response in the transcript — but nothing is ever printed to stdout and the process never exits. Running the exact same command under a PTY prints the full output and exits cleanly in seconds. The expected behavior is that the CLI prints the result to stdout and exits 0 whether or not stdout is a TTY. The reporter verified the hang with --thinking none, -p plan mode, and different free models, and with and without the hub daemon running; the reproduction is `timeout 60 cline -m cline-free/deepseek-v4.1-flash "say ok" | head -c 500`, which hangs until the timeout with zero output. The report states the bug breaks all scripted / CI / agent-harness usage of the CLI where stdout is captured via a pipe.

Verbatim Excerpts from Cited Records
“So the bug is in the CLI's stdout handling / process teardown when stdout is not a TTY: the non-interactive output path never prints, and something keeps the event loop alive forever.”
— pipa83165 · cline/cline (issue 14544 opening body, What I verified while debugging section) · 2026-09-26T03:13:54Z ·GitHub Issue ↗
“`--thinking none`, `-p` (plan mode), and different free models all hang identically when stdout is a pipe.”
— pipa83165 · cline/cline (issue 14544 opening body, What I verified while debugging section) · 2026-09-26T03:13:54Z ·GitHub Issue ↗
“Running the exact same command under a PTY (e.g. `script -qec "cline ..." /dev/null`) prints the full output and exits cleanly in seconds.”
— pipa83165 · cline/cline (issue 14544 opening body, What happened? section) · 2026-09-26T03:13:54Z ·GitHub Issue ↗
“Expected: the CLI prints the result to stdout and exits 0 whether or not stdout is a TTY.”
— pipa83165 · cline/cline (issue 14544 opening body, What happened? section) · 2026-09-26T03:13:54Z ·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-11-29 (last updated 2026-11-27T23:51:24Z). 2 comments read in total. linear-code[bot] (2026-09-26) links the report to Linear issue CLINE-3425; it is not a duplicate flag. semanym (2026-11-27) posts a code-path analysis from current main, arguing the only normal-completion exit is an explicit process.exit unreachable until disposeAll() settles, that disposeAll() has no timeout, that the telemetry shutdown underneath has no timeout wrapper, and that piped stdout is block-buffered so completed output is withheld until exit; semanym notes the specific pending handle could not be identified without a live authenticated reproduction. No second user reproduction and no maintainer response appear in the surveyed thread. The claim documents only the original report, not a verified current state. Falsification probe: If GitHub issue #14544 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.