The best way to control Claude Code, Codex and more from any computer or phone
fix(server): Steer on a queued message keeps the model picked for it (#23240)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Victor Vogel committed
Oct 31, 2026 at 21:27 UTC
a732caa7d2cbcc04363046dca2355e4d441b022e
2 files changed
+43
-1
apps/server/src/orchestration-v2/Orchestrator.ts
+1
-1
@@ -9440,7 +9440,7 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
9440
events,
9441
effects,
9442
projection,
9443
- modelSelection: projection.thread.modelSelection,
9443
+ modelSelection: queuedRun.modelSelection,
9444
targetRunId: command.targetRunId,
9445
messageId: queuedMessage.id,
9446
text: queuedMessage.text,
apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts
+42
@@ -1132,6 +1132,48 @@ it.effect("keeps a held commentary draft before the steer when turn end flushes
1132
),
1133
);
1134
1135
+it.effect("steers a promoted queued message with the selection it was queued with", () =>
1136
+ Effect.scoped(
1137
+ Effect.gen(function* () {
1138
+ const { started, steered, layer, startFirstTurn } = yield* nextTurnSelectionHarness(
1139
+ "promote-queued-selection",
1140
+ );
1141
+ yield* Effect.gen(function* () {
1142
+ const orchestrator = yield* Orchestrator.OrchestratorV2;
1143
+ const worker = yield* EffectWorker.OrchestrationEffectWorkerV2;
1144
+ const threadId = yield* startFirstTurn;
1145
+ yield* orchestrator.dispatch({
1146
+ type: "message.dispatch",
1147
+ commandId: CommandId.make("queued"),
1148
+ threadId,
1149
+ messageId: MessageId.make("message:queued"),
1150
+ text: "queued",
1151
+ attachments: [],
1152
+ modelSelection: composerSelection,
1153
+ dispatchMode: { type: "queue_after_active" },
1154
+ createdBy: "user",
1155
+ creationSource: "web",
1156
+ });
1157
+ const queuedRun = (yield* orchestrator.getThreadProjection(threadId)).runs.find(
1158
+ (run) => run.status === "queued",
1159
+ )!;
1160
+ yield* orchestrator.dispatch({
1161
+ type: "queued-message.promote-to-steer",
1162
+ commandId: CommandId.make("promote"),
1163
+ threadId,
1164
+ queuedRunId: queuedRun.id,
1165
+ targetRunId: started[0]!.runId,
1166
+ });
1167
+ yield* worker.drain();
1168
+
1169
+ const projection = yield* orchestrator.getThreadProjection(threadId);
1170
+ assert.deepEqual(steered, ["queued"]);
1171
+ assert.deepEqual(projection.thread.modelSelection, composerSelection);
1172
+ }).pipe(Effect.provide(layer));
1173
+ }),
1174
+ ),
1175
+);
1176
+
1177
it.effect("keeps a queued message queued when promoted into a run that Stop reached", () =>
1178
Effect.scoped(
1179
Effect.gen(function* () {