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

fix: initialize intake filesystem mock before root discovery

[._.]/ Adam Eivyc1169849ba9c
diff --git a/server/services/repoIntake.test.js b/server/services/repoIntake.test.js
index b36c74d508..5ca2834502 100644
--- a/server/services/repoIntake.test.js
+++ b/server/services/repoIntake.test.js
@@ -5,7 +5,8 @@ import { PATHS } from '../lib/fileUtils.js';
const addTask = vi.fn();
const getAppById = vi.fn();
const readOriginRemoteUrl = vi.fn();
-const existsSync = vi.fn();
+// Root discovery can probe the disposable marker during the static imports.
+const { existsSync } = vi.hoisted(() => ({ existsSync: vi.fn() }));
const pullRepo = vi.fn();
vi.mock('./cosTaskStore.js', () => ({ addTask: (...args) => addTask(...args) }));