Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mcp): background wait fails when none of its task IDs exist #29773

Mergedonlydole(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/29773/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 33 additions and 4 deletions (loading 5).

x
0 of 8 viewed, 8 left
4 additions and 1 deletionapps/server/src/mcp/toolkits/orchestrator/handlers.tsModified
View file
@@ -75,7 +75,10 @@
Effect.mapError(
(cause) =>
new OrchestratorMcpFailure({
- code: cause.reason === "unsupported" ? "invalid_request" : "orchestration_error",
+ code:
+ cause.reason === "unsupported" || cause.reason === "unmatched"
+ ? "invalid_request"
+ : "orchestration_error",
message: cause.message,
}),
),
20 additions and 2 deletionsapps/server/src/orchestration-v2/ThreadManagementService.test.tsModified
View file
@@ -462,7 +462,13 @@
}),
​
-it.effect.each(["live", "no-session", "unsupported-runtime"] as const)(
+it.effect.each([
+ "live",
+ "no-match",
+ "no-match-clear",
+ "no-session",
+ "unsupported-runtime",
+] as const)(
"marks background work awaited on the thread's active provider thread with state %s",
(state) =>