diff --git a/packages/daemon/src/workflow-worker.ts b/packages/daemon/src/workflow-worker.ts index cee6354..69af343 100644 --- a/packages/daemon/src/workflow-worker.ts +++ b/packages/daemon/src/workflow-worker.ts @@ -120,8 +120,7 @@ async function runThread( const initialEvent: CommandEvent = { type: "thread_start", - triggerPayload: - triggerPayload != null && typeof triggerPayload === "object" ? triggerPayload : {}, + triggerPayload: triggerPayload ?? {}, }; // On resume: replay persisted events, run the next un-executed role, then continue.