Skip to content

The agent that grows with you

test(desktop): the source hand-off fixture echoes the Desktop's started-at stamp

Tekniumd27f02e8d380
diff --git a/apps/desktop/electron/updater/checkout-source.test.ts b/apps/desktop/electron/updater/checkout-source.test.ts
index 1c06f6b11a5..95795cc42fc 100644
--- a/apps/desktop/electron/updater/checkout-source.test.ts
+++ b/apps/desktop/electron/updater/checkout-source.test.ts
@@ -394,8 +394,10 @@ if not getattr(urllib.request, '_hermes_loopback', False):
(command: string, args: string[], options: SpawnOptions): updaterProcess.UpdaterChild => {
spawned.push({ command, args, options })
// C2: a hand-off has started only once the script takes the Desktop's
- // bridge marker in its own (live, foreign) name — do that here.
- fs.writeFileSync(markerPath(home), `${process.ppid}\n${Math.floor(Date.now() / 1000)}\n`)
+ // bridge marker in its own (live, foreign) name — do that here. Line 2
+ // echoes HERMES_UPDATE_STARTED_AT as posix.sh does; a fresh clock read
+ // misses the Desktop's stamp whenever the spawn lands in the next second.
+ fs.writeFileSync(markerPath(home), `${process.ppid}\n${options.env?.HERMES_UPDATE_STARTED_AT}\n`)
return { unref: (): void => {} }
}