Use a fixed timestamp for periodic session selection regression

Keep the older edited file outside the ordinary recent window without relying on wall-clock time.

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
This commit is contained in:
Brennan Benson
2026-11-13 16:25:14 -08:00
co-authored by Jinjing
parent cd42944a14
commit bd8a70b18e
@@ -157,7 +157,7 @@ it('keeps ordinary hosts on newest-session polling until their next full sweep',
const newest = transcriptPath('newest')
await writeClaudeTranscript(older, ['older original'], 'older')
await writeClaudeTranscript(newest, ['newest original'], 'newest')
const at = Date.now()
const at = Date.UTC(2099, 0, 1)
await utimes(older, new Date(at - 20000), new Date(at - 20000))
await utimes(newest, new Date(at), new Date(at))
await newIndexer({ discoveryPolicy: 'periodic', recentPerAgent: 1 }).start()