#6563: CRASH FIX in CLI runner: route null‑byte prompts via stdin to prevent argv crash
agents
size: XS
Cluster:
CLI Enhancements and Fixes
- What: Detect \u0000 in CLI prompts and send those prompts via stdin instead of argv.
- Why: Slack voice messages can include null bytes; Node rejects argv strings with \0, which crashes the cli‑runner.
- How: Add a null‑byte guard in resolvePromptInput and a regression test in claude-cli-runner.test.ts.
Testing
- new unit test added: claude-cli-runner.test.ts
AI‑assisted
- Yes (Codex). I reviewed and understand the change.
Most Similar PRs
#12987: fix(cli): exit process after successful command completion
by omair445 · 2026-02-10
63.5%
#23247: fix(cli): removes --query from memory cmd options
by stuhorsman · 2026-02-22
60.8%
#21054: fix(cli): fix memory search hang — close undici pool + destroy QMD ...
by BinHPdev · 2026-02-19
60.7%
#21701: fix(agents): handle JSON array output from Claude Code CLI
by kenantan32 · 2026-02-20
60.0%
#11996: fix: CLI backend JSON array parsing and clearEnv merge
by shanemmattner · 2026-02-08
60.0%
#17764: fix: CLI update module loading - syntax fixes (v2)
by Limitless2023 · 2026-02-16
58.8%
#6632: fix(cli-runner): replace {model} placeholder in resumeArgs
by JorgeAlan · 2026-02-01
58.7%
#22786: fix: guard against undefined file.path in system-prompt-report
by miloudbelarebia · 2026-02-21
58.7%
#7569: fix: add null checks to prevent TypeError in subagent spawn
by kaigritun · 2026-02-03
58.3%
#23522: feat(cli): add --quiet flag and OPENCLAW_NO_TAGLINE env var (#22635)
by dissaozw · 2026-02-22
58.1%