Files
hermes-agent/hermes_cli
liuhao1024 0e21933114 fix(kanban): only sweep a parent workspace once the parent itself is terminal
The deferred parent sweep added for #33774 reaps a parent's scratch or
worktree workspace as soon as it has no active children left, without
checking the parent's own status (#133501). Archiving or finishing the
last active child of a parent that is still running/blocked/review
deletes the parent's live workspace from under its worker; the shared
workspace guard does not catch it because _OTHER_LIVE_PATHS_SQL excludes
the task being cleaned, i.e. the parent itself.

Gate the sweep on the parent being terminal (the same status set as
_ACTIVE_CHILDREN_SQL), so a live parent keeps its dir and reaps it at
its own terminal transition. #33774 semantics are unchanged: a parent
that finished while children still needed its handoff files is still
swept when the last child drains.

(cherry picked from commit 81f6588bbc5346097ab17e3660636c8a3be7319a)
2026-10-07 11:48:04 -04:00
..
…
…
…
…
…