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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat([models-contextual-backend-install]): add catalog install action
[._.]/ Adam Eivy1ccd234ff914
diff --git a/PLAN.md b/PLAN.mdnew file mode 100644index 0000000000..d97f645228--- /dev/null+++ b/PLAN.md@@ -0,0 +1 @@+- [x] [models-contextual-backend-install] Install a missing Ollama or LM Studio backend directly from the model catalog blocker instead of sending the user to a terminal command.diff --git a/client/src/components/settings/LocalLlmTab.jsx b/client/src/components/settings/LocalLlmTab.jsxindex 2e15e77681..e4bc831211 100644--- a/client/src/components/settings/LocalLlmTab.jsx+++ b/client/src/components/settings/LocalLlmTab.jsx@@ -1486,10 +1486,31 @@ export function LocalLlmTab() {{selectedData && !selectedData.available && !selectedData.disabled && (<div className="flex items-center gap-2 flex-wrap text-xs text-port-warning"><span>- {labelFor(selected)} isn't running — {selectedData.installed- ? (selected === 'ollama' ? 'use the controls to start it or keep it running at login.' : 'launch the app and enable the local server.')- : 'install it first (Models → LLMs prompts at setup, or run `npm run setup:llm`).'}+ {selectedData.installed+ ? `${labelFor(selected)} isn't running — ${selected === 'ollama' ? 'use the controls to start it or keep it running at login.' : 'launch the app and enable the local server.'}`+ : `${labelFor(selected)} isn't installed yet.`}</span>+ {!selectedData.installed && selectedData.canAutoInstall && (+ <button+ onClick={() => installRuntimeBackend(selected)}+ disabled={busy}+ className={`${btnClass} bg-port-accent/20 hover:bg-port-accent/30 text-port-accent`}+ >+ {actionInProgress === `runtime-install-${selected}` ? <BrailleSpinner /> : <Download size={12} />}+ Install {labelFor(selected)}+ </button>+ )}+ {!selectedData.installed && !selectedData.canAutoInstall && selectedData.downloadUrl && (+ <a+ href={selectedData.downloadUrl}+ target="_blank"+ rel="noopener noreferrer"+ className={`${btnClass} bg-port-border hover:bg-port-border/70 text-white no-underline`}+ >+ <ExternalLink size={12} />+ Download {labelFor(selected)}+ </a>+ )}{selected === 'ollama' && selectedData.installed && selectedData.canControl && (<buttononClick={() => runAction(diff --git a/client/src/components/settings/LocalLlmTab.test.jsx b/client/src/components/settings/LocalLlmTab.test.jsxindex f53c359c79..953a96b72b 100644--- a/client/src/components/settings/LocalLlmTab.test.jsx+++ b/client/src/components/settings/LocalLlmTab.test.jsx@@ -45,6 +45,7 @@ import {deleteLocalLlmModel,getLocalLlmStatus,getLocalLlmCatalog,+ installLocalLlmBackend,patchSettingsSlice,installLocalLlmModel,} from '../../services/api';@@ -96,6 +97,7 @@ beforeEach(() => {lmstudio: { installed: false, available: false, modelCount: 0, models: [] },});getLocalLlmCatalog.mockResolvedValue({ models: [] });+ installLocalLlmBackend.mockResolvedValue({ success: true });patchSettingsSlice.mockResolvedValue({});deleteLocalLlmModel.mockResolvedValue({ success: true });});@@ -126,6 +128,29 @@ describe('LocalLlmTab backend disable state', () => {});describe('LocalLlmTab runtime servers', () => {+ it('installs a missing catalog backend at the blocker without sending the user to a terminal', async () => {+ getLocalLlmStatus.mockResolvedValue({+ backend: 'ollama',+ ollama: {+ installed: false,+ available: false,+ canAutoInstall: true,+ modelCount: 0,+ models: [],+ },+ lmstudio: { installed: true, available: true, modelCount: 0, models: [] },+ });++ await renderTab();++ const blocker = screen.getByText("Ollama isn't installed yet.").closest('div');+ expect(within(blocker).queryByText(/npm run setup:llm/)).toBeNull();++ fireEvent.click(within(blocker).getByRole('button', { name: 'Install Ollama' }));++ await waitFor(() => expect(installLocalLlmBackend).toHaveBeenCalledWith('ollama'));+ });+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');