We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e218bdd commit c1796b9Copy full SHA for c1796b9
src/api/providers/codex.ts
@@ -49,7 +49,11 @@ export class CodexHandler extends OpenAiNativeHandler {
49
50
process.once("exit", () => {
51
void this.disposeAllSessions()
52
- })
+process.once("exit", () => {
53
+ this.disposeAllSessions().catch(error =>
54
+ console.error("Failed to dispose Codex sessions on exit:", error)
55
+ )
56
+})
57
}
58
59
private static hydrateOpenAiAuth(options: ApiHandlerOptions): ApiHandlerOptions {
0 commit comments