Commit 04f46ca
fix(daemon): exclude closed sessions from stale cleanup and audit
cleanupStaleSessions was treating 'closed' worker sessions as stale,
calling closeSession on an already-closed server session and deleting
the local file. auditOrphanedTasks was also making unnecessary API
calls for closed sessions.
Exclude closed sessions from both paths — they are intentionally
retained on disk for tunnel history lookups.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 91dc036 commit 04f46ca
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments