mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
feat: add git branch/worktree setup, message queueing, file explorer improvements, and server restart
This commit is contained in:
22
patches/@openai+codex-sdk+0.58.0.patch
Normal file
22
patches/@openai+codex-sdk+0.58.0.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/node_modules/@openai/codex-sdk/dist/index.js b/node_modules/@openai/codex-sdk/dist/index.js
|
||||
index 12a2975..99f61c1 100644
|
||||
--- a/node_modules/@openai/codex-sdk/dist/index.js
|
||||
+++ b/node_modules/@openai/codex-sdk/dist/index.js
|
||||
@@ -238,7 +238,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 {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user