You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HRX llama-cli: unknown flag (-no-cnv) silently enters interactive mode and busy-loops >-prompts into output when stdin is not a TTY (fills disk) #561
On the HRX llama.cpp fork, llama-cli with an unknown flag (e.g. -no-cnv, which this fork does not define — it wants -st / --single-turn) silently drops into interactive conversation mode, and when stdin is not a TTY (piped, redirected, run under a job wrapper) it busy-loops printing > prompts to the output with no input ever arriving. In a redirected run this fills the output file unbounded — observed twice, once reaching 9.4 GB before it was caught and killed.
-no-cnv is not a recognized flag on this fork; instead of erroring, the CLI enters interactive mode, and with stdin closed/redirected it loops emitting > into out.txt until killed or the hold expires.
Impact
Unbounded output file growth (9.4 GB and 2×20 GB observed in HRX bring-up runs) → can drive a shared box below its disk floor.
Silent: the run looks "started" but produces only prompt characters.
Proposed fix (any of)
Treat -no-cnv as an alias of -st / --single-turn (it was clearly intended as "no conversation").
Refuse unknown flags with a nonzero exit and usage, instead of ignoring them and falling through to interactive mode.
Add a stdin-is-not-a-TTY guard: in (accidental) interactive mode, if isatty(STDIN) is false, exit cleanly at EOF instead of looping on empty reads.
(1)+(3) together are the most robust. Filed on the engine tracker because fork issues are disabled.
Fixed by fork 1bit-MONSTER/llama.cpp#145 (merged on 1bit/hrx-vulkan-patched): -no-cnv now implies single turn, and a non-TTY stdin ends the interactive loop. Unknown flags already fail on this base. Reaches the engine with the next llama.cpp pin bump after #565.
Activity
bong-water-water-bong commentedon Oct 25, 2026
Fixed by fork 1bit-MONSTER/llama.cpp#145 (merged on 1bit/hrx-vulkan-patched): -no-cnv now implies single turn, and a non-TTY stdin ends the interactive loop. Unknown flags already fail on this base. Reaches the engine with the next llama.cpp pin bump after #565.