fix: dispose codex app-server harnesses

This commit is contained in:
Peter Steinberger
2026-04-10 23:29:40 +01:00
parent f1d3815077
commit c643e3c72d
15 changed files with 255 additions and 43 deletions

View File

@@ -8,6 +8,7 @@ import type {
} from "./src/app-server/models.js";
import { runCodexAppServerAttempt } from "./src/app-server/run-attempt.js";
import { clearCodexAppServerBinding } from "./src/app-server/session-binding.js";
import { clearSharedCodexAppServerClient } from "./src/app-server/shared-client.js";
const DEFAULT_CODEX_HARNESS_PROVIDER_IDS = new Set(["codex", "openai-codex"]);
@@ -47,5 +48,8 @@ export function createCodexAppServerAgentHarness(options?: {
await clearCodexAppServerBinding(params.sessionFile);
}
},
dispose: () => {
clearSharedCodexAppServerClient();
},
};
}