From df97b7b49bf6dfc3817641b775d6919d9d3204d6 Mon Sep 17 00:00:00 2001 From: T3 Code Test Date: Fri, 31 Jul 2026 01:12:27 +0530 Subject: [PATCH] fix(orchestrator): preserve queued_turn intent when promoting queued runs Promoting a queued run rewrote its user_message turn item with inputIntent: "turn_start", clobbering the queued_turn intent the item was created with. Every provider's queued_turn replay fixture failed with [turn_start, turn_start] instead of [turn_start, queued_turn]. Keep the existing item's intent and only default the synthesized fallback, which is queued by definition. Co-Authored-By: Claude Fable 5 --- apps/server/src/orchestration-v2/Orchestrator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/orchestration-v2/Orchestrator.ts b/apps/server/src/orchestration-v2/Orchestrator.ts index c35b66eba12..6d31bbe220c 100644 --- a/apps/server/src/orchestration-v2/Orchestrator.ts +++ b/apps/server/src/orchestration-v2/Orchestrator.ts @@ -772,8 +772,8 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio attachments: queuedMessage.attachments, createdBy: queuedMessage.createdBy, creationSource: queuedMessage.creationSource, + inputIntent: "queued_turn", }), - inputIntent: "turn_start", startedAt: now, completedAt: now, updatedAt: now,