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

Merge remote-tracking branch 'origin/main' into codex/managed-visitor-broker

[._.]/ Adam Eivyd3ff36cbfea0
diff --cc server/services/backup.test.js
index 9d189a39e3,705160a8bf..e816f2a01b
--- a/server/services/backup.test.js
+++ b/server/services/backup.test.js
@@@ -110,7 -110,15 +110,11 @@@ vi.mock('./brainStorage.js', async (imp
}));
import { reloadSettings } from './settings.js';
import { invalidateAllCaches as invalidateBrainCaches } from './brainStorage.js';
- import { DEFAULT_EXCLUDES, computeEffectiveExcludes, listSnapshots, openSnapshotStream, restoreSnapshot } from './backup.js';
+ import { DEFAULT_EXCLUDES, computeEffectiveExcludes, listSnapshots, openSnapshotStream, restoreSnapshot, resolveRsyncBinary } from './backup.js';
+
+ // Resolved once: the restore path spawns whatever `resolveRsyncBinary()` names,
+ // so probe THAT rather than a hard-coded 'rsync' — an install pointed at a
+ // bundled binary via PORTOS_RSYNC is still covered.
-const hasRealRsync = (() => {
- const probe = spawnSync(resolveRsyncBinary(), ['--version'], { stdio: 'ignore' });
- return !probe.error && probe.status === 0;
-})();
// fs.access is mocked file-wide because backup.js probes the .in-progress marker
// with it. Restore the real implementation before EVERY test: vi.clearAllMocks()