Commit 5113703
fix(daemon): skip closed/completing sessions when seeding pr-monitor
On daemon restart, prMonitor.start() was seeding tracked tasks from all
on-disk worker sessions including those in 'closed' state. Previously
session files were deleted on completion, but now they are retained for
history lookup. This caused noisy startup logs as the monitor immediately
untracked already-done/cancelled tasks on the first check.
Fix: skip sessions with status 'closed' or 'completing' when seeding,
since those tasks are already terminal and need no PR monitoring.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent cdb3d7b commit 5113703
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments