You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recognize TaskStop'd bg tasks and harden cross-session liveness
Fix A - TaskStop completion recognition: list_pending_background_task_ids
now treats a TaskStop tool_result (.toolUseResult.message "Successfully
stopped task: <id>") as a terminal completion event, because many Claude
Code builds do not also emit a task_notification system record for a
TaskStop. The id is read from .task_id, falling back to parsing it out of
the message text when that field is absent; the fallback uses
try/catch empty so a degenerate message cannot raise and wipe the whole
completed set under pipefail.
Fix B - cross-session liveness glob: is_bg_task_alive now searches
sibling session dirs under the same project slug when neither the
transcript-recorded output path nor the session-derived path exists.
This only expands where we look, so a genuinely alive task is never
wrongly pruned; a file missing everywhere still fails open as before.
Builds on #215 (extract_bg_task_output_path_from_transcript); the shared
lines drop out of the diff once #215 lands.
Tests: 50/50 (descriptive names, local style).
0 commit comments