Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: wait for the cos-runner child to exit before removing its data root
Claude2f38b012edf9
diff --git a/server/cos-runner/spawnFailure.test.js b/server/cos-runner/spawnFailure.test.jsindex 8385dc502b..d0b2cbd7d3 100644--- a/server/cos-runner/spawnFailure.test.js+++ b/server/cos-runner/spawnFailure.test.js@@ -52,9 +52,15 @@ describe('cos-runner /spawn survives a failed CLI launch (#11761)', () => {await new Promise((resolve) => socket.once('connect', resolve));}, 30_000);- afterAll(() => {+ afterAll(async () => {socket?.close();- runner?.kill('SIGKILL');+ // Windows keeps the runner's data-root files locked until the process is+ // gone, and kill() only requests that — removing first fails with EPERM.+ if (runner && runner.exitCode === null && runner.signalCode === null) {+ const gone = new Promise((resolve) => runner.once('exit', resolve));+ runner.kill('SIGKILL');+ await gone;+ }rmSync(dataRoot, { recursive: true, force: true });});