add persisted pi workflow extension

This commit is contained in:
jb
2026-08-25 16:07:44 -04:00
parent bfb07282d6
commit c5c3316e49
46 changed files with 20642 additions and 94 deletions
+8
View File
@@ -20,6 +20,7 @@ import {
createChildResources,
resolveStandaloneChildProjectTrust,
shutdownAndDisposeChildSession,
waitForChildOperation,
type DisposableChildSession,
} from "./child-session.ts";
@@ -105,6 +106,7 @@ test("child denylist keeps extension and workflow structured tools available", a
"subagent_check",
"subagent_list",
"workflow",
"pi_workflow",
"ask_user",
],
);
@@ -253,6 +255,12 @@ test("shutdown helper balances hooks and disposal despite errors", async () => {
assert.equal(disposals, 1);
});
test("child operations are bounded independently of teardown", async () => {
const startedAt = Date.now();
await waitForChildOperation(new Promise(() => {}), 5);
assert.ok(Date.now() - startedAt < 100);
});
test("shutdown helper bounds a stuck hook before disposal", async () => {
let disposals = 0;
const session: DisposableChildSession = {