fix(orchestration): promoted queued messages keep the queued_turn intent
The turn item materialized when a queued run is promoted was emitted with inputIntent "turn_start", but the deterministic replay driver (and the recorded queued_turn fixtures) expect "queued_turn" — the mismatch stalled replay before the queued run could start, leaving run 1 waiting and run 2 queued forever in all five queued_turn fixtures. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
7a5cc479f5
commit
f22182942c
2 files changed
+2
-2
No files matched your search
@@ -773,7 +773,7 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
|
||||
createdBy: queuedMessage.createdBy,
|
||||
creationSource: queuedMessage.creationSource,
|
||||
}),
|
||||
inputIntent: "turn_start",
|
||||
inputIntent: "queued_turn",
|
||||
startedAt: now,
|
||||
completedAt: now,
|
||||
updatedAt: now,
|
||||
|
||||
@@ -962,7 +962,7 @@ it.layer(TestLayer)("OrchestrationV2LayerLive lifecycle", (it) => {
|
||||
if (promotedMessageItem.type !== "user_message") {
|
||||
assert.fail("promoted queue item must be a user message");
|
||||
}
|
||||
assert.equal(promotedMessageItem.inputIntent, "turn_start");
|
||||
assert.equal(promotedMessageItem.inputIntent, "queued_turn");
|
||||
assert.isTrue(
|
||||
promotedMessageItem.startedAt !== null &&
|
||||
DateTime.toEpochMillis(promotedMessageItem.startedAt) >=
|
||||
|
||||
Reference in new issue
Block a user