Merge pull request #1245 from getagentseal/fix/parity-idle-seconds

test(menubar): ignore idleSeconds in the payload parity check
This commit is contained in:
Resham Joshi 2026-09-03 00:43:23 -07:00 • committed by GitHub
commit 3517f7c928
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,10 +68,12 @@ async function seedFixture(): Promise<void> {
process.env['CODEBURN_CACHE_DIR'] = cacheDir
}
/** Everything but the per-call wall-clock `generated` stamp. */
/** Everything but the wall-clock fields: the `generated` stamp and each live session's
* `idleSeconds`, which ticks between two builds that straddle a second boundary. */
function stableShape(payload: unknown): unknown {
const clone = structuredClone(payload) as { generated?: string }
const clone = structuredClone(payload) as { generated?: string; liveSessions?: { sessions: { idleSeconds: number }[] } }
clone.generated = ''
for (const session of clone.liveSessions?.sessions ?? []) session.idleSeconds = 0
return clone
}