@devries-cameron20 / t3code Mirror · read-only / commits / cf82199186
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, 15:30 UTC

test(server): ACP teardown tests pass on Windows hosts (#17080)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Yash Singh <saiansh2525@gmail.com>

Sheehan Munim committed Oct 11, 2026 at 01:49 UTC cf821991863d5e374f698cb45bcef4759d3a0b7f
1 file changed +6 -1
apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts
+6 -1
@@ -12316,7 +12316,11 @@ describe("AcpAdapterV2", () => {
12316 });
12317 assert.equal(taskkillCommands.length, 1);
12318 yield* Scope.close(runtimeScope, Exit.void);
12319 - assert.equal(taskkillCommands.length, 1);
12319 + // The scope finalizer picks its kill path from the host, not processGroupPlatform,
12320 + // so only a Windows host sends it through taskkill a second time.
12321 + const finalizerTaskkills = (yield* HostProcess.Platform) === "win32" ? 1 : 0;
12322 + assert.equal(taskkillCommands.length, 1 + finalizerTaskkills);
12323 + assert.deepEqual(taskkillCommands.at(-1), taskkillCommands[0]);
12324 }).pipe(Effect.provide(layerTest)),
12325 );
12326
@@ -12433,6 +12437,7 @@ describe("AcpAdapterV2", () => {
12437
12438 it.live("poisons the session when hard teardown defects and blocks replacement work", () =>
12439 Effect.gen(function* () {
12440 + if ((yield* HostProcess.Platform) !== "linux") return;
12441 const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
12442 const fileSystem = yield* FileSystem.FileSystem;
12443 const idAllocator = yield* IdAllocator.IdAllocatorV2;