gunk-dev/the-valley
the-valley:bd-6d8ba87bugopen

A worker whose agent process ends while its background builds run is never finalized

State
free to start
Created
2026-11-18 by contributor

Body

Two workers ended mid-run with no final report. Each had committed its work, started its checks in the background, and was waiting on them in a foreground loop when the agent process exited, leaving the pane at the shell.

- Finalize never ran: status shows the runs as exited, with no cost or duration, and nothing was pushed.
- The background builds kept running as orphans, competing with other workers for CPU.
- `klaus ready <run> --head <sha>` refused because no run had recorded a pushed branch.
- `klaus launch --change <handle>` refused while the exited run's worktree held the branch.

Fixed when a worker whose agent process exits for any reason is finalized: its work is pushed or the run is marked failed with the reason, and its background processes are stopped.

Comments

No comments.