Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): implicit MCP tasks use the configured fallback #28226

Closedshivamhwp(GitHub profile, opens in a new tab)wants to merge 12 commits intomain fromrefs/pull/28226/headopened View on GitHub

Showing 2 changed files with 64 additions and 10 deletions.

x
0 of 2 viewed, 2 left
27 additions and 1 deletionapps/server/src/mcp/OrchestratorMcpService.test.tsModified
View file
@@ -3424,6 +3424,7 @@
} as const;
const override = [{ id: "reasoningEffort", value: "max" }] as const;
+ const fallback = { instanceId: peerId, model: inherited.model };
const cases = [
name: "partial override",
@@ -3473,6 +3474,18 @@
+ {
+ name: "inherited model out of usage takes the configured fallback",
+ target: {},
+ outOfUsage: true,
+ expected: fallback,
+ },
+ {
+ name: "explicit model out of usage is kept",
+ target: { model: inherited.model },
+ outOfUsage: true,
+ expected: inherited,
+ },
] as const;
for (const testCase of cases) {
const commands: Array<unknown> = [];
@@ -3510,7 +3523,10 @@