open-agents-ai 0.186.65 → 0.186.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -307344,8 +307344,16 @@ async function runBackground(task, config, opts) {
|
|
|
307344
307344
|
env: { ...process.env, OA_JOB_ID: id },
|
|
307345
307345
|
stdio: ["ignore", "pipe", "pipe"],
|
|
307346
307346
|
detached: true
|
|
307347
|
+
// Own process group for tree kill
|
|
307348
|
+
});
|
|
307349
|
+
process.on("exit", () => {
|
|
307350
|
+
if (child.pid && !child.killed) {
|
|
307351
|
+
try {
|
|
307352
|
+
process.kill(-child.pid, "SIGKILL");
|
|
307353
|
+
} catch {
|
|
307354
|
+
}
|
|
307355
|
+
}
|
|
307347
307356
|
});
|
|
307348
|
-
child.unref();
|
|
307349
307357
|
job.pid = child.pid ?? 0;
|
|
307350
307358
|
writeFileSync31(join78(dir, `${id}.json`), JSON.stringify(job, null, 2));
|
|
307351
307359
|
let output = "";
|
package/package.json
CHANGED