Files
J 2688f18aa4 fix(daemon): bound runtime --version probe so one wedged CLI can't stall startup
A Homebrew-installed claude whose bun shim never returns makes
`claude --version` hang forever. Runtime registration probes every
configured agent sequentially on the daemon startup critical path with no
timeout, so that one wedged probe blocks the loop, no runtime ever
registers, the daemon never flips /health from "starting" to "running",
and the desktop is stuck on "starting" with every runtime offline.

Bound each probe with a 10s timeout plus a WaitDelay that force-closes the
stdout pipe (a wedged claude can fork a bun child that inherits and holds
the pipe open, so killing claude alone would not unblock cmd.Output()). A
timed-out probe now returns an error, the loop skips just the broken
runtime, and every healthy runtime still comes online.

MUL-3812

Co-authored-by: multica-agent <github@multica.ai>
2026-06-29 01:12:29 +08:00
..