Commit e6325e1
committed
fix(agents): preserve run-mode keep subagents past session sweep TTL
The sweeper applied SESSION_RUN_TTL_MS (5 minutes) to any registry entry
without archiveAtMs. Run-mode subagents spawned with cleanup:"keep" also
have archiveAtMs=undefined by design, so they were pruned five minutes
after cleanup completed — directly contradicting the keep semantic the
user requested.
Gate the absolute-TTL prune on spawnMode === "session" so run-mode
keep entries stay registered. Session-mode runs retain the existing
five-minute window.
Refs #831321 parent 833f1ce commit e6325e1
2 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
770 | 797 | | |
771 | 798 | | |
772 | 799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
867 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
| |||
0 commit comments