From 8f6f1dc435e6a11b4aa5defc4dec0481577534ce Mon Sep 17 00:00:00 2001 From: Patrick Roza Date: Sat, 25 Jul 2026 20:35:49 +0200 Subject: [PATCH] fix(server): tolerate legacy missing snooze state --- apps/server/src/orchestration/decider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/orchestration/decider.ts b/apps/server/src/orchestration/decider.ts index f3207e967a0..0be0cf0ef6e 100644 --- a/apps/server/src/orchestration/decider.ts +++ b/apps/server/src/orchestration/decider.ts @@ -322,7 +322,9 @@ const planTurnStartEvents = Effect.fn("planTurnStartEvents")(function* ({ }, }); } - if (thread.snoozedUntil !== null) { + // Older snapshots may omit the optional snooze fields entirely. Treat both + // null and undefined as awake; only a real wake timestamp needs an event. + if (thread.snoozedUntil != null) { lifecycleResetEvents.push({ ...(yield* withEventBase({ aggregateKind: "thread",