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: cover catalog backend download fallback

[._.]/ Adam Eivy79a190a32170
diff --git a/client/src/components/settings/LocalLlmTab.test.jsx b/client/src/components/settings/LocalLlmTab.test.jsx
index 953a96b72b..b239fab881 100644
--- a/client/src/components/settings/LocalLlmTab.test.jsx
+++ b/client/src/components/settings/LocalLlmTab.test.jsx
@@ -151,6 +151,28 @@ describe('LocalLlmTab runtime servers', () => {
await waitFor(() => expect(installLocalLlmBackend).toHaveBeenCalledWith('ollama'));
});
+ it('offers the vendor download when PortOS cannot auto-install the backend', async () => {
+ getLocalLlmStatus.mockResolvedValue({
+ backend: 'lmstudio',
+ ollama: { installed: true, available: true, modelCount: 0, models: [] },
+ lmstudio: {
+ installed: false,
+ available: false,
+ canAutoInstall: false,
+ downloadUrl: 'https://lmstudio.ai/download',
+ modelCount: 0,
+ models: [],
+ },
+ });
+
+ await renderTab();
+
+ const blocker = screen.getByText("LM Studio isn't installed yet.").closest('div');
+ expect(within(blocker).queryByRole('button', { name: 'Install LM Studio' })).toBeNull();
+ expect(within(blocker).getByRole('link', { name: 'Download LM Studio' }))
+ .toHaveAttribute('href', 'https://lmstudio.ai/download');
+ });
+
it('mounts one control surface covering every local runtime, not just the catalog backends', async () => {
await renderTab();
const card = screen.getByRole('heading', { name: 'Local Runtime Servers' }).closest('div.bg-port-card');