@devries-cameron20 / t3code Mirror · read-only / commits / 202b95403a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 16:45 UTC

test(server): the ACP process-tree test no longer collides with the runner's own pid (#17647)

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>

Yordis Prieto committed Oct 9, 2026 at 21:26 UTC 202b95403a7d6b7b01390b6a90457fa76e1be439
1 file changed +4 -1
apps/server/src/provider/acp/AcpSessionRuntime.processTree.test.ts
+4 -1
@@ -655,8 +655,11 @@ describe("terminatePosixOwnedProcessTree", () => {
655
656 it.live("rotates more than 64 live parents without scanning retained tombstones", () =>
657 Effect.gen(function* () {
658 + // The server fixture's process group is the runner's real pid, so a synthetic
659 + // parent sharing it would be skipped as the server's own group.
660 + const parentPidBase = process.pid < 500_000 ? 500_000 : 1_000;
661 const parents = Array.from({ length: 130 }, (_, index) =>
659 - identity(1_000 + index, 100, 1_000 + index, 1_000 + index),
662 + identity(parentPidBase + index, 100, parentPidBase + index, parentPidBase + index),
663 );
664 let childListReads = 0;
665 let identityCalls = 0;