Remove assistant-complete text payload from orchestration flow

- Drop optional `text` from `ThreadMessageAssistantCompleteCommand`
- Stop passing text on assistant-complete ingestion and decider paths
- Ensure completion events no longer overwrite message content
This commit is contained in:
Julius Marminge authored and Julius Marminge committed 2026-02-26 20:43:22 -08:00
1 parent 9acce6ddaa
commit 7e4da5b157
3 files changed
+1 -3

No files matched your search

@@ -288,7 +288,6 @@ const make = Effect.gen(function* () {
threadId: input.threadId,
messageId: input.messageId,
...(input.turnId ? { turnId: input.turnId } : {}),
text: "",
createdAt: input.createdAt,
});
yield* clearAssistantMessageState(input.messageId);
+1 -1
View File
@@ -425,7 +425,7 @@ export const decideOrchestrationCommand = Effect.fn("decideOrchestrationCommand"
threadId: command.threadId,
messageId: command.messageId,
role: "assistant",
text: command.text ?? "",
text: "",
turnId: command.turnId ?? null,
streaming: false,
createdAt: command.createdAt,
-1
View File
@@ -356,7 +356,6 @@ export const ThreadMessageAssistantCompleteCommand = Schema.Struct({
threadId: ThreadId,
messageId: MessageId,
turnId: Schema.optional(TurnId),
text: Schema.optional(Schema.String),
createdAt: IsoDateTime,
});