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

Use native path basename in macOS upgrade test fixture

[._.]/ Adam Eivya28d3d12a0be
diff --git a/server/services/localLlm.test.js b/server/services/localLlm.test.js
index c0d007db32..92473aa73f 100644
--- a/server/services/localLlm.test.js
+++ b/server/services/localLlm.test.js
@@ -822,7 +822,7 @@ describe('localLlm', () => {
// `pathExists(APP)` is the dispatch check that routed upgradeBackend here, so
// it answers true independently of the in-memory model — which lets a test
// exercise the bundle being gone by the time the rename runs.
- pathExistsImpl.fn = async (p) => (p === APP ? true : p.endsWith('/Ollama.app') && extracted.present);
+ pathExistsImpl.fn = async (p) => (p === APP ? true : path.basename(p) === 'Ollama.app' && extracted.present);
vi.stubGlobal('fetch', vi.fn(async (url) => {
if (String(url).includes('api.github.com')) {
return {