From 5bbd2bfca9b7a86f7daa6a2140216b6cf47b74f8 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Wed, 9 Sep 2026 03:05:03 -0400 Subject: [PATCH] fix(orchestration): create the unbound Run only for a null Run id Claude-Session: 1fec75fd-224b-46ab-95fe-d88e0f3d9ff9 --- src/main/runtime/orchestration/db/messages/message-insert.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/runtime/orchestration/db/messages/message-insert.ts b/src/main/runtime/orchestration/db/messages/message-insert.ts index 014333ac350..51ce7aaaa50 100644 --- a/src/main/runtime/orchestration/db/messages/message-insert.ts +++ b/src/main/runtime/orchestration/db/messages/message-insert.ts @@ -30,7 +30,7 @@ export function insertMessage(this: OrchestrationDb, msg: MessageInsert): Messag // filed under the unbound Run, never the legacy one, which the schema-skew probe reads as pre-Runs. // Created on first use so `run list` shows it only to a user who has such mail. const runId = msg.runId ?? UNBOUND_RUN_ID - if (!msg.runId) { + if (msg.runId == null) { this.db .prepare( `INSERT OR IGNORE INTO runs (id, objective, home_database, consumer_generation, legacy)