acp: add regression coverage and smoke-test docs

This commit is contained in:
Mariano Belinky
2026-03-09 21:32:55 +01:00
committed by mbelinky
parent 4aebff78bc
commit d06138ac3d
3 changed files with 86 additions and 0 deletions

View File

@@ -463,6 +463,18 @@ describe("gateway server sessions", () => {
expect(spawnedPatched.ok).toBe(true);
expect(spawnedPatched.payload?.entry.spawnedBy).toBe("agent:main:main");
const acpPatched = await rpcReq<{
ok: true;
entry: { spawnedBy?: string; spawnDepth?: number };
}>(ws, "sessions.patch", {
key: "agent:main:acp:child",
spawnedBy: "agent:main:main",
spawnDepth: 1,
});
expect(acpPatched.ok).toBe(true);
expect(acpPatched.payload?.entry.spawnedBy).toBe("agent:main:main");
expect(acpPatched.payload?.entry.spawnDepth).toBe(1);
const spawnedPatchedInvalidKey = await rpcReq(ws, "sessions.patch", {
key: "agent:main:main",
spawnedBy: "agent:main:main",