mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-13 06:36:26 +03:00
Handle empty Codex worker shutdown
Treat a never-used app-server thread with no rollout file as already archived while retaining real archive failures.\n\nAI-assisted: OpenAI Codex.
This commit is contained in:
@@ -314,7 +314,12 @@ export class CodexLiveWorkerSupervisor {
|
||||
await this.client.archiveThread(this.thread.id);
|
||||
archived = true;
|
||||
} catch (error) {
|
||||
this.log(`thread archive failed: ${error.message}`);
|
||||
if (/no rollout found/i.test(String(error?.message || ''))) {
|
||||
archived = true;
|
||||
this.log('empty worker thread had no persisted rollout; treating it as archived');
|
||||
} else {
|
||||
this.log(`thread archive failed: ${error.message}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
await this.client.close().catch(() => {});
|
||||
|
||||
Reference in New Issue
Block a user