fix: restart stale codex threads
This commit is contained in:
@@ -36,6 +36,10 @@ for await (const line of rl) {
|
||||
}
|
||||
if (message.method === "thread/resume") {
|
||||
observedThreadModel = Object.hasOwn(message.params ?? {}, "model");
|
||||
if (mode === "resume-no-rollout") {
|
||||
respond(message.id, null, { code: -32000, message: `no rollout found for thread id ${String(message.params?.threadId ?? "unknown")}` });
|
||||
continue;
|
||||
}
|
||||
if (mode === "reject-unexpected-model" && observedThreadModel) {
|
||||
respond(message.id, null, { code: -32000, message: "thread/resume unexpectedly included model" });
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user