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

skip the key file mode assertion on Windows, which has no POSIX mode bits

[._.]/ Adam Eivyd6dbe7d634e4
diff --git a/server/services/agentKey.test.js b/server/services/agentKey.test.js
index 9e188bad1a..6413a93bae 100644
--- a/server/services/agentKey.test.js
+++ b/server/services/agentKey.test.js
@@ -82,7 +82,8 @@ describe('agent API key', () => {
await setAgentKeyEnabled(true);
const key = await readKey();
expect(key).toMatchObject({ url: 'http://127.0.0.1:5553', token: 'tok-1' });
- expect((await stat(keyFile)).mode & 0o777).toBe(0o600);
+ // Windows has no POSIX mode bits; stat reports 0o666 whatever was asked.
+ if (process.platform !== 'win32') expect((await stat(keyFile)).mode & 0o777).toBe(0o600);
expect(liveKeySessions()).toHaveLength(1);
await __testing.reconcile();