fix(agent-claude-code): handle missing result line gracefully #576
Reference in New Issue
Block a user
Delete Branch "fix/574-silent-fail-handling"
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?
What
Handle the case where Claude Code exits without producing a result line in its stream-json output (timeout, OOM, signal kill).
Why
Previously, when
uwf-claude-codespawned Claude Code and it exited prematurely,parseClaudeCodeStreamOutput()returnednulland the adapter threw a misleading "unparseable output" error. This caused background workflow threads to get stuck silently.Changes
"incomplete"as newClaudeCodeResultSubtypevalueTest Results
✅ All 27 tests pass (including 10 new tests)
✅
bun run checkpasses (TypeScript + Biome lint + log tag validation)✅ Backwards compatibility maintained (existing tests continue to pass)
Ref
Fixes #574