dispatch: detached worker startup crash leaves a bare log, reports success #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A
coily dispatch headless/cascade worker can die on its first API call (e.g. the thinking-block API 400 seen in coilysiren/coily#150) before doing any work. The detached child exits within seconds, leaving only a single-line error log, whiledispatchprints the cheerful "spawned" message and returns zero. Silence looks identical to "still working".The seed prompt is a single plain-text user message (
claude -p <prompt>), so it cannot itself produce a "thinking blocks cannot be modified" 400 - that arises inside Claude Code's own multi-turn loop (transient upstream), not dispatch seeding.Fix
After spawning,
spawnDetachedWorkerwatches the child for a short health window (SpawnHealthWindow, default 4s). A child gone that fast is a startup crash, so surface it as a nonzero error carrying the log tail instead of "spawned".ProcessAliveis a seam so the check is testable without real children.Surfaced from coilysiren/coily#150.