Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): fall back to fresh Codex thread when resume hits unsupported list_turns #12468

Closedpmf111(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/12468/headopened View on GitHub

Showing 2 changed files with 111 additions and 0 deletions.

x
0 of 2 viewed, 2 left
83 additions and 0 deletionsapps/server/src/provider/Layers/CodexSessionRuntime.test.tsModified
View file
@@ -854,6 +854,43 @@
});
​
+ it("matches list_turns capability errors without a thread mention", () => {
+ NodeAssert.equal(
+ isRecoverableThreadResumeError(
+ new CodexErrors.CodexAppServerRequestError({
+ code: -32601,
+ errorMessage: "list_turns is not supported yet",
+ }),
+ ),
+ true,
+ );
+ });
+​
+ it("matches method-not-found resume failures by code", () => {
+ NodeAssert.equal(
+ isRecoverableThreadResumeError(
+ new CodexErrors.CodexAppServerRequestError({
+ code: -32601,
+ errorMessage: "Method not found: list_turns",
+ }),
+ ),
+ true,
+ );
+ });
+​
+ it("matches unreadable provider thread history", () => {
+ NodeAssert.equal(