Repository navigation
Commit 61d86e3
fix(server): cleanup reads the active snapshot once and rechecks the same threads
- readThreads reads only the active shell snapshot. Its second read, of
the archive, always returned no threads, because the snapshot puts
archived threads in archivedThreads.
- getThreadWorktreePaths skips archived threads, so the under-lease
recheck sees the same threads as the first check. Before this, a
worktree shared with an archived thread was kept on every sweep with
the false reason "Thread activity or shared worktree changed since
check".
- The sweep tests move into storageCleanup.test.ts and use its fixture.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent be8ffa4 commit 61d86e3
5 files changed
Lines changed: 155 additions & 470 deletions
File tree
- apps/server/src
- orchestration-v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
389 | 383 | | |
390 | 384 | | |
391 | | - | |
392 | | - | |
| 385 | + | |
| 386 | + | |
393 | 387 | | |
394 | 388 | | |
395 | 389 | | |
| |||
619 | 613 | | |
620 | 614 | | |
621 | 615 | | |
622 | | - | |
623 | | - | |
| 616 | + | |
| 617 | + | |
624 | 618 | | |
625 | 619 | | |
626 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
420 | | - | |
421 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
5656 | 5656 | | |
5657 | 5657 | | |
5658 | 5658 | | |
5659 | | - | |
| 5659 | + | |
| 5660 | + | |
| 5661 | + | |
5660 | 5662 | | |
5661 | 5663 | | |
5662 | 5664 | | |
| |||
6156 | 6158 | | |
6157 | 6159 | | |
6158 | 6160 | | |
6159 | | - | |
| 6161 | + | |
| 6162 | + | |
| 6163 | + | |
6160 | 6164 | | |
6161 | 6165 | | |
6162 | 6166 | | |
| |||
0 commit comments