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 (claude): assert getStatus update detection no-ops when GitHub is unreachable

[._.]/ Adam Eivyf28e1479fa7e
diff --git a/server/services/localLlm.test.js b/server/services/localLlm.test.js
index f9baa5ae93..c0114dd395 100644
--- a/server/services/localLlm.test.js
+++ b/server/services/localLlm.test.js
@@ -473,5 +473,13 @@ describe('localLlm', () => {
expect(s.ollama.latestVersion).toBe('0.5.7');
expect(s.ollama.updateAvailable).toBe(false);
});
+
+ it('does not flag an update when GitHub is unreachable (latest unknown)', async () => {
+ mocks.ollama.getStatus.mockResolvedValueOnce({ available: true, baseUrl: 'x', version: '0.5.4', modelCount: 0, models: [] });
+ vi.stubGlobal('fetch', vi.fn(async () => { throw new Error('network down'); }));
+ const s = await svc.getStatus();
+ expect(s.ollama.latestVersion).toBeNull();
+ expect(s.ollama.updateAvailable).toBe(false);
+ });
});
});