The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 16:30 UTC
fix(server): treat a missing Codex rollout as a recoverable resume error (#6671)
Rishet11 committed
Aug 15, 2026 at 17:32 UTC
51c6daa3bd1d65e809b5196bf63333013427338a
2 files changed
+13
apps/server/src/provider/Layers/CodexSessionRuntime.test.ts
+12
@@ -498,6 +498,18 @@ describe("isRecoverableThreadResumeError", () => {
498
);
499
});
500
501
+ it("matches a missing rollout for a known thread id", () => {
502
+ NodeAssert.equal(
503
+ isRecoverableThreadResumeError(
504
+ new CodexErrors.CodexAppServerRequestError({
505
+ code: -32603,
506
+ errorMessage: "no rollout found for thread id 019fdf74-aaa9-7950-b252-7cc7a8650470",
507
+ }),
508
+ ),
509
+ true,
510
+ );
511
+ });
512
+
513
it("ignores non-recoverable resume errors", () => {
514
NodeAssert.equal(
515
isRecoverableThreadResumeError(
apps/server/src/provider/Layers/CodexSessionRuntime.ts
+1
@@ -58,6 +58,7 @@ const RECOVERABLE_THREAD_RESUME_ERROR_SNIPPETS = [
58
"no such thread",
59
"unknown thread",
60
"does not exist",
61
+ "no rollout found",
62
];
63
64
export function hasConfiguredMcpServer(appServerArgs: ReadonlyArray<string> | undefined): boolean {