Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): treat a missing Codex rollout as a recoverable resume error #6671

MergedRishet11(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/6671/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 13 additions and 0 deletions.

x
0 of 2 viewed, 2 left
12 additions and 0 deletionsapps/server/src/provider/Layers/CodexSessionRuntime.test.tsModified
View file
@@ -358,6 +358,18 @@
});
​
+ it("matches a missing rollout for a known thread id", () => {
+ NodeAssert.equal(
+ isRecoverableThreadResumeError(
+ new CodexErrors.CodexAppServerRequestError({
+ code: -32603,
+ errorMessage: "no rollout found for thread id 019fdf74-aaa9-7950-b252-7cc7a8650470",
+ }),
+ ),
+ true,
+ );
+ });
+​
it("ignores non-recoverable resume errors", () => {
NodeAssert.equal(
isRecoverableThreadResumeError(
1 addition and 0 deletionsapps/server/src/provider/Layers/CodexSessionRuntime.tsModified
View file
@@ -58,6 +58,7 @@
"no such thread",
"unknown thread",
"does not exist",
+ "no rollout found",
];
​