mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Upgrade packages to access latest model catalogs: - @openai/codex-sdk: 0.58.0 → 0.76.0 - @anthropic-ai/claude-agent-sdk: 0.1.37 → 0.1.74 New models available after upgrade: - Claude: Added Opus 4.5 and Haiku 4.5 to catalog - Codex: Added gpt-5.2, gpt-5.2-codex, and gpt-5.1-codex variants Updated patch file for new codex-sdk version. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
871 B
Diff
23 lines
871 B
Diff
diff --git a/node_modules/@openai/codex-sdk/dist/index.js b/node_modules/@openai/codex-sdk/dist/index.js
|
|
index c7b7f30..be7300c 100644
|
|
--- a/node_modules/@openai/codex-sdk/dist/index.js
|
|
+++ b/node_modules/@openai/codex-sdk/dist/index.js
|
|
@@ -258,7 +258,16 @@ var CodexExec = class {
|
|
rl.close();
|
|
child.removeAllListeners();
|
|
try {
|
|
- if (!child.killed) child.kill();
|
|
+ // Use SIGINT to request a graceful shutdown and fall back to SIGKILL if it hangs.
|
|
+ if (child.exitCode === null && !child.killed) {
|
|
+ const forceKillTimer = setTimeout(() => {
|
|
+ if (child.exitCode === null && !child.killed) {
|
|
+ child.kill("SIGKILL");
|
|
+ }
|
|
+ }, 3e3);
|
|
+ child.once("exit", () => clearTimeout(forceKillTimer));
|
|
+ child.kill("SIGINT");
|
|
+ }
|
|
} catch {
|
|
}
|
|
}
|