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

Compare canonical paths in the linked-worktree sentinel test

Claudef7262e84af96
diff --git a/server/services/agentSentinelSweep.test.js b/server/services/agentSentinelSweep.test.js
index 7a5d21046f..063ab058e6 100644
--- a/server/services/agentSentinelSweep.test.js
+++ b/server/services/agentSentinelSweep.test.js
@@ -94,7 +94,9 @@ describe.skipIf(SKIP_HEAVY_INTEGRATION)('sweeping a repo\'s linked worktrees', (
}
const dirs = await checkoutDirsOf([repo]);
- expect(dirs).toContain(realpathSync(tree));
+ // Git on Windows lists long, forward-slash paths while the temp dir may be an
+ // 8.3 short name; the native realpath canonicalizes both the same way.
+ 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');