@henryqw/pi-subagent 28.0.0 → 28.0.1
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/direct-herdr.js +2 -1
- package/package.json +1 -1
package/dist/direct-herdr.js
CHANGED
|
@@ -555,7 +555,8 @@ export function createDirectHerdr(pi, cwd, idleMs, kill = (pid, signal) => proce
|
|
|
555
555
|
"--timeout", String(Math.max(1, Math.min(current === "idle" ? 1000 : OPERATION_MS - 1000, remaining)))];
|
|
556
556
|
const waited = await herdr.exec(args, options(signal));
|
|
557
557
|
if (waited.code !== 0 || waited.killed) {
|
|
558
|
-
|
|
558
|
+
// A complete timeout permits another read-only wait, even if exec killed the command.
|
|
559
|
+
if (!signal.aborted && hasHerdrErrorCode(waited, "timeout")) {
|
|
559
560
|
continue;
|
|
560
561
|
}
|
|
561
562
|
throw new Error(herdrCommandFailure(args, waited));
|