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

address review (codex): make nested path assertion cross-platform

[._.]/ Adam Eivy0ac8e3283231
diff --git a/server/lib/workspaceRoots.test.js b/server/lib/workspaceRoots.test.js
index ea3afb8332..8f44251c77 100644
--- a/server/lib/workspaceRoots.test.js
+++ b/server/lib/workspaceRoots.test.js
@@ -81,7 +81,10 @@ describe('outsideAllowedRootsMessage', () => {
const username = basename(homedir());
const message = outsideAllowedRootsMessage(join(homedir(), 'nested', username, 'repo'));
- expect(message).toContain('~/nested/<user>/repo');
+ const expectedNestedPath = IS_WINDOWS
+ ? String.raw`nested\<user>\repo`
+ : '~/nested/<user>/repo';
+ expect(message).toContain(expectedNestedPath);
expect(message).not.toContain(username);
});