Skip to content

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

test: compare sentinel-sweep worktree paths by native realpath so Windows 8.3 temp names match (#12863)

Adam Eivyd6255ff4d561
diff --git a/server/services/agentSentinelSweep.test.js b/server/services/agentSentinelSweep.test.js
index 7a5d21046f..93f8e26c2b 100644
--- a/server/services/agentSentinelSweep.test.js
+++ b/server/services/agentSentinelSweep.test.js
@@ -94,7 +94,8 @@ describe.skipIf(SKIP_HEAVY_INTEGRATION)('sweeping a repo\'s linked worktrees', (
}
const dirs = await checkoutDirsOf([repo]);
- expect(dirs).toContain(realpathSync(tree));
+ // Git prints the long, forward-slash form; Windows temp dirs arrive as 8.3 short names.
+ expect(dirs.map(d => realpathSync.native(d))).toContain(realpathSync.native(tree));
expect(await sweepStaleDoneSentinels(dirs, new Set(['agent-live']))).toBe(1);
expect(await readdir(tree)).toContain('.agent-done-agent-live');
expect(await readdir(tree)).not.toContain('.agent-done-agent-dead');