Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): queued delegated completions keep a newer model choice #22579

Mergedf4llenz(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/22579/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 112 additions and 2 deletions.

x
0 of 2 viewed, 2 left
2 additions and 2 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -658,7 +658,8 @@
message: OrchestrationV2ConversationMessage | undefined,
): boolean {
return (
- message?.notification?.source.kind === "monitor" && !isBufferedProviderNotification(message)
+ message?.delegatedCompletion !== undefined ||
+ (message?.notification?.source.kind === "monitor" && !isBufferedProviderNotification(message))
​
@@ -667,7 +668,6 @@
run: OrchestrationV2Run,
): ModelSelection {
const message = projection.messages.find((candidate) => candidate.id === run.userMessageId);
- // App-owned monitor updates follow the agent currently handling the thread.
return followsCurrentConversation(message)
? projection.thread.modelSelection
: run.modelSelection;
110 additions and 0 deletionsapps/server/src/orchestration-v2/runtimeLayer.test.tsModified
View file
@@ -4316,6 +4316,116 @@
+ it.effect.each([
+ { ...modelSelection, model: "gpt-5.5", options: [{ id: "reasoningEffort", value: "high" }] },
+ { instanceId: alternateInstanceId, model: "gpt-5.5" },