fix(server): treat a missing Codex rollout as a recoverable resume error (#6671)
This commit is contained in:
1 parent
135dc156e3
commit
51c6daa3bd
2 files changed
+13
No files matched your search
@@ -498,6 +498,18 @@ describe("isRecoverableThreadResumeError", () => {
|
||||
);
|
||||
});
|
||||
|
||||
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(
|
||||
|
||||
@@ -58,6 +58,7 @@ const RECOVERABLE_THREAD_RESUME_ERROR_SNIPPETS = [
|
||||
"no such thread",
|
||||
"unknown thread",
|
||||
"does not exist",
|
||||
"no rollout found",
|
||||
];
|
||||
|
||||
export function hasConfiguredMcpServer(appServerArgs: ReadonlyArray<string> | undefined): boolean {
|
||||
|
||||
Reference in new issue
Block a user