Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration): persist OpenCode abort state #8939

Closeddlowzzxx(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8939/headopened View on GitHub

Showing 6 changed files with 6 additions and 0 deletions (loading 5).

x
0 of 6 viewed, 6 left
6 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderCommandReactor.tsModified
View file
@@ -2,6 +2,7 @@
type ChatAttachment,
CommandId,
EventId,
+ type MessageId,
type ModelSelection,
type OrchestrationEvent,
ProviderDriverKind,
@@ -930,6 +931,7 @@
​
const buildSendTurnRequestForThread = Effect.fnUntraced(function* (input: {
readonly threadId: ThreadId;
+ readonly turnStartMessageId?: MessageId;
readonly messageText: string;
readonly attachments?: ReadonlyArray<ChatAttachment>;
readonly modelSelection?: ModelSelection;
@@ -981,6 +983,9 @@
​
return {
threadId: input.threadId,
+ ...(input.turnStartMessageId !== undefined
+ ? { turnStartMessageId: input.turnStartMessageId }
+ : {}),
...(normalizedInput ? { input: normalizedInput } : {}),
...(normalizedAttachments.length > 0 ? { attachments: normalizedAttachments } : {}),
...(modelForTurn !== undefined ? { modelSelection: modelForTurn } : {}),
@@ -1546,6 +1551,7 @@