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: split Runtimes out of Models → LLMs into its own top-level tab (#7414)
[._.]/ Adam Eivyff8802856373
diff --git a/README.md b/README.mdindex 8a5b2ca2f6..3fe439a806 100644--- a/README.md+++ b/README.md@@ -450,7 +450,7 @@ Full catalog (including design plans, ADRs, and research notes): [docs/README.md- [Fleet LLM Host](./docs/features/fleet-llm-host.md) — Dedicated GPU host serving OpenAI-compatible models to a PortOS fleet- [CoS Agent Runner](./docs/features/cos-agent-runner.md) — Isolated agent process architecture- [CoS Enhancement](./docs/features/cos-enhancement.md) — Hybrid search, proactive execution, error recovery-- [MTPLX](./docs/features/mtplx.md) — Native multi-token-prediction Qwen runtime on Apple Silicon, managed as a PM2 process from Models → LLMs+- [MTPLX](./docs/features/mtplx.md) — Native multi-token-prediction Qwen runtime on Apple Silicon, managed as a PM2 process from Models → Runtimes- [DFlash 2 / DSpark](./docs/features/dflash2.md) — Speculative drafting acceleration for local llama-server- [vLLM RTX 3090](./docs/features/qwen38-rtx3090.md) — Docker compose setup for Qwen 27B on NVIDIA RTX 3090 GPUs- [SGLang Qwen](./docs/features/sglang-qwen38.md) — SGLang engine configuration for Hopper/Blackwell hardwarediff --git a/client/src/App.jsx b/client/src/App.jsxindex 44c0218e87..73fc227797 100644--- a/client/src/App.jsx+++ b/client/src/App.jsx@@ -362,6 +362,11 @@ export default function App() {<Route path="api-reference" element={<Navigate to="/api-reference/catalog" replace />} /><Route path="api-reference/:tab" element={<ApiExplorer />} /><Route path="models" element={<Navigate to="/models/llms" replace />} />+ {/* Runtimes was the LLMs page's default view until #7414 promoted it to+ its own tab. A literal segment outranks `models/:tab/:recordId`, so+ a bookmark on the old pill lands on the new page instead of LLMs+ rendering an unknown sub-view. */}+ <Route path="models/llms/runtimes" element={<Navigate to="/models/llms-runtimes" replace />} />{/* A tab's drill-down (today: the LoRA dataset workbench) renders throughModels itself, so it keeps the section header and tab bar — seeTAB_DETAIL there. */}diff --git a/client/src/App.modelRoutes.test.jsx b/client/src/App.modelRoutes.test.jsxnew file mode 100644index 0000000000..c7a20f7210--- /dev/null+++ b/client/src/App.modelRoutes.test.jsx@@ -0,0 +1,32 @@+/**+ * Models route redirects — the bookmarks a tab move leaves behind.+ *+ * `previousPaths` in `server/lib/navManifest.js` DECLARES that a page used to+ * answer to another path, and `navManifest.test.js` proves App.jsx still+ * redirects it. What that scan cannot see is where the redirect LANDS once+ * React Router has ranked it against its neighbours: `models/llms/runtimes`+ * competes with `models/:tab/:recordId`, which would render the LLMs tab with+ * an unknown sub-view instead. Only a real render settles it.+ */++import { it, expect, vi } from 'vitest';+import { render, screen } from '@testing-library/react';+import { MemoryRouter, Outlet, useLocation } from 'react-router';++vi.mock('./components/Layout', () => ({ default: () => <Outlet /> }));+vi.mock('./pages/Dashboard', () => ({ default: () => null }));+vi.mock('./hooks/useCatalogTypes.jsx', () => ({ CatalogTypesProvider: ({ children }) => children }));+vi.mock('./services/api', () => ({ getSettings: vi.fn(() => Promise.resolve({ timezone: 'UTC' })), updateSettings: vi.fn(), getSelfInstance: vi.fn(() => Promise.resolve({})), PORTOS_APP_ID: 'portos' }));+vi.mock('./pages/Models', () => ({ default: () => { const location = useLocation(); return <pre data-testid="models-location">{location.pathname}</pre>; } }));++import App from './App.jsx';++it('lands the retired Runtimes pill URL on the Runtimes tab, not on LLMs', async () => {+ render(<MemoryRouter initialEntries={['/models/llms/runtimes']}><App /></MemoryRouter>);+ expect(await screen.findByTestId('models-location')).toHaveTextContent('/models/llms-runtimes');+});++it('still serves the LLMs sub-views that stayed behind', async () => {+ render(<MemoryRouter initialEntries={['/models/llms/abuse']}><App /></MemoryRouter>);+ expect(await screen.findByTestId('models-location')).toHaveTextContent('/models/llms/abuse');+});diff --git a/client/src/components/cos/ReviewerPicker.jsx b/client/src/components/cos/ReviewerPicker.jsxindex 4ae1f67dc0..9fc7f44ac5 100644--- a/client/src/components/cos/ReviewerPicker.jsx+++ b/client/src/components/cos/ReviewerPicker.jsx@@ -18,6 +18,19 @@ import {import ProviderModelSelector from '../ProviderModelSelector';import { selectableModelsForProvider, effortLevelsForProvider, effectiveModelFor } from '../../utils/providers';import { isProviderReviewer, normalizeReviewerSlug } from '../../lib/reviewerPins';+import { getNavPageForPath } from '../../../../server/lib/navManifest.js';++// Where each local-LLM reviewer's backend is actually managed. #7414 split the+// model SERVERS (Models → Runtimes) from the weights catalog (Models → LLMs),+// and these three land on either side of it: Ollama and LM Studio are pulled+// and started from the Model Library, while MTPLX's server and its checkpoints+// are a Runtimes card. The empty-state hints below name the page by resolving+// the route, so a future move re-words them instead of stranding a breadcrumb.+const LOCAL_BACKEND_MANAGE_PATHS = {+ ollama: '/models/llms',+ lmstudio: '/models/llms',+ mtplx: '/models/llms-runtimes',+};const normalizeReviewerValue = (value) => normalizeReviewerSlug(value);@@ -543,6 +556,7 @@ export default function ReviewerPicker({// doesn't accuse a healthy backend of being empty.const renderModelCell = (token) => {if (!MODEL_SELECTABLE_REVIEWERS.includes(token) && !isProviderReviewer(token)) return renderNoPinCell(`${labelFor(token)} takes no model`);+ const backendPage = getNavPageForPath(LOCAL_BACKEND_MANAGE_PATHS[token])?.breadcrumb;const subject = labelFor(token);const pinnedValue = models.get(token);const value = pinnedValue ?? '';@@ -557,8 +571,8 @@ export default function ReviewerPicker({// probe settled — before that, an empty list is "not fetched yet", not a fact.const emptyHint = (options.length === 0 && modelOptions?.loaded)? (modelOptions?.unavailable?.[token]- ? `${subject} isn't reachable — start it from Models → LLMs to list its models. You can still type an id.`- : `No ${subject} models listed — add one in Models → LLMs, or type an id.`)+ ? `${subject} isn't reachable${backendPage ? ` — start it from ${backendPage}` : ''} to list its models. You can still type an id.`+ : `No ${subject} models listed${backendPage ? ` — add one in ${backendPage}` : ''}, or type an id.`): null;// A closed select over nothing would be a dead control, so a reviewer with no// resolved options falls back to free text whichever kind it is: better adiff --git a/client/src/components/providers/ProviderReadiness.jsx b/client/src/components/providers/ProviderReadiness.jsxindex 15db1f3e96..21c22e9728 100644--- a/client/src/components/providers/ProviderReadiness.jsx+++ b/client/src/components/providers/ProviderReadiness.jsx@@ -39,6 +39,7 @@ import { Link } from 'react-router';import { CheckCircle2, Download, HelpCircle, PauseCircle, RefreshCw, Wand2, Wrench, XCircle } from 'lucide-react';import Banner from '../ui/Banner';import Pill from '../ui/Pill';+import { getNavPageForPath } from '../../../../server/lib/navManifest.js';const ICONS = {@@ -52,6 +53,18 @@ const ICONS = {const ACTION_CLASS = 'inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-port-accent/20 text-port-accent hover:bg-port-accent/30 transition-colors font-medium';+// The link's LABEL comes from the route it points at, never a literal. Every+// runtime used to be managed on one page, so "Open the LLMs page" was correct+// for all of them; since #7414 llama.cpp, Slotstream and MTPLX are managed on+// Models → Runtimes while Ollama and LM Studio stay on Models → LLMs, and a+// fixed label would name the wrong sibling on three of five cards. Falls back+// to the neutral wording for a route the manifest does not know — the link+// still works, it just cannot be named.+const manageLinkLabel = (manageUrl) => {+ const page = getNavPageForPath(manageUrl);+ return page ? `Open the ${page.label} page` : 'Open the management page';+};+/*** Render `text` with `backtick`-quoted spans as inline code. The server writes* check details in that shape so model ids and binary names read as literals@@ -98,7 +111,7 @@ export default function ProviderReadiness({ readiness, onAutoSetup, onUseServedM>{standbyDetail && <p className="mt-1 text-gray-400"><CodeText text={standbyDetail} /></p>}{manageUrl && (- <Link to={manageUrl} className={`${ACTION_CLASS} mt-2`}>Open the LLMs page</Link>+ <Link to={manageUrl} className={`${ACTION_CLASS} mt-2`}>{manageLinkLabel(manageUrl)}</Link>)}</Banner>);@@ -185,7 +198,7 @@ export default function ProviderReadiness({ readiness, onAutoSetup, onUseServedM</button>)}{manageUrl && (- <Link to={manageUrl} className={ACTION_CLASS}>Open the LLMs page</Link>+ <Link to={manageUrl} className={ACTION_CLASS}>{manageLinkLabel(manageUrl)}</Link>)}</div></Banner>diff --git a/client/src/components/providers/ProviderReadiness.test.jsx b/client/src/components/providers/ProviderReadiness.test.jsxindex 7cef9f80c4..f9571977ef 100644--- a/client/src/components/providers/ProviderReadiness.test.jsx+++ b/client/src/components/providers/ProviderReadiness.test.jsx@@ -76,7 +76,7 @@ describe('ProviderReadiness', () => {expect(container.querySelector('[class*="port-warning"]')).toBeNull();});- it('links to the Models → LLMs page as an in-app action — never to vendor setup docs', () => {+ it('links to the manage page as an in-app action — never to vendor setup docs', () => {renderWithRouter(<ProviderReadiness readiness={readiness()} />);expect(screen.getByText('Open the LLMs page').closest('a').getAttribute('href')).toBe('/models/llms');expect(screen.queryByText(/setup docs/i)).toBeNull();@@ -84,11 +84,20 @@ describe('ProviderReadiness', () => {});it('omits the manage link for a runtime PortOS does not install, and still never points at docs', () => {- renderWithRouter(<ProviderReadiness readiness={readiness({ label: 'MTPLX', manageUrl: null })} />);- expect(screen.queryByText('Open the LLMs page')).toBeNull();+ renderWithRouter(<ProviderReadiness readiness={readiness({ label: 'vLLM', manageUrl: null })} />);+ expect(screen.queryByText(/^Open the .* page$/)).toBeNull();expect(screen.queryByText(/setup docs/i)).toBeNull();});+ // The label is derived from the route, not hardcoded: #7414 split the runtimes+ // off LLMs, so a fixed "Open the LLMs page" now names the wrong sibling for+ // llama.cpp, Slotstream and MTPLX while still linking to the right one.+ it('names the link after the page its route actually resolves to', () => {+ renderWithRouter(<ProviderReadiness readiness={readiness({ label: 'llama.cpp', manageUrl: '/models/llms-runtimes' })} />);+ expect(screen.getByText('Open the Runtimes page').closest('a').getAttribute('href')).toBe('/models/llms-runtimes');+ expect(screen.queryByText('Open the LLMs page')).toBeNull();+ });+it('offers the one-click setup instead of leaving a docs link as the only way forward', () => {const onAutoSetup = vi.fn();const setup = { runtime: 'mtplx', label: 'MTPLX', action: 'install-start', actionLabel: 'Install & start MTPLX', blockedReason: null };@@ -274,7 +283,7 @@ describe('ProviderReadiness', () => {<ProviderReadinessreadiness={readiness({checks: [- { id: 'model', label: 'Model `dflash` available', ok: false, detail: 'no model loaded', fixHint: 'Start a preset from Models → LLMs.', servedModels: [] },+ { id: 'model', label: 'Model `dflash` available', ok: false, detail: 'no model loaded', fixHint: 'Start a preset from Models → Runtimes.', servedModels: [] },],})}onUseServedModel={vi.fn()}diff --git a/client/src/components/providers/ProviderRuntimeStatus.jsx b/client/src/components/providers/ProviderRuntimeStatus.jsxindex 7436042d12..830206c240 100644--- a/client/src/components/providers/ProviderRuntimeStatus.jsx+++ b/client/src/components/providers/ProviderRuntimeStatus.jsx@@ -15,14 +15,17 @@* command PortOS has no installer for (and a card drawn before the fetch* resolves) shows no install UI at all.*- * `manageUrl` means "PortOS installs this from another screen" — the Local LLM- * tab owns Ollama/LM Studio, service start-up included — so that case links- * there rather than duplicating the flow.+ * `manageUrl` means "PortOS installs this from another screen" — Models → LLMs+ * owns the Ollama/LM Studio catalog, Models → Runtimes owns the model servers+ * and their lifecycle — so that case links there rather than duplicating the+ * flow. The route decides the wording (`getNavPageForPath`); nothing here+ * hardcodes a page name (#7414).*/import { Link } from 'react-router';import { CheckCircle2, Download, ExternalLink } from 'lucide-react';import Pill from '../ui/Pill';+import { getNavPageForPath } from '../../../../server/lib/navManifest.js';const ACTION_CLASS = 'inline-flex items-center gap-1 px-2 py-1 rounded bg-port-accent/20 text-port-accent hover:bg-port-accent/30 transition-colors';@@ -45,7 +48,8 @@ export default function ProviderRuntimeStatus({ runtime, onInstall, optional = f{/* A card can say WHICH version is here, but not whether it is current orhow to move it — that needs the registry read and the lifecycleactions the Harnesses page owns. Local-app runtimes keep their own- `manageUrl` (Models → LLMs). */}+ `manageUrl` — Models → LLMs for the catalog apps, Models → Runtimes+ for the servers. */}{!manageUrl && (<Link to="/models/harnesses" className="text-[11px] text-gray-500 hover:text-port-accent">Manage harness@@ -69,7 +73,7 @@ export default function ProviderRuntimeStatus({ runtime, onInstall, optional = fInstall {label}</button>) : manageUrl ? (- <Link to={manageUrl} className={ACTION_CLASS} title={`Install ${label} from Models → LLMs`}>+ <Link to={manageUrl} className={ACTION_CLASS} title={`Install ${label} from ${getNavPageForPath(manageUrl)?.breadcrumb || 'its management page'}`}><Download size={12} />Install {label}</Link>diff --git a/client/src/components/settings/LocalLlmRuntimesView.jsx b/client/src/components/settings/LocalLlmRuntimesView.jsxindex 95329cf52c..d663e0b5ac 100644--- a/client/src/components/settings/LocalLlmRuntimesView.jsx+++ b/client/src/components/settings/LocalLlmRuntimesView.jsx@@ -26,6 +26,9 @@ import { LOCAL_LLM_BACKENDS as BACKENDS, localLlmBackendLabel as labelFor } from// is already on disk, and how to fetch it. A client-side copy would inevitably// list a path the Download button had no source for.const DEFAULT_SPEC_PRESET_ID = 'qwen3.8-27b-dspark';+// Exported so a test can assert the panel's `aria-labelledby` resolves to a real+// element rather than re-typing the literal on both sides of the assertion.+export const RUNTIMES_HEADING_ID = 'llm-runtimes-heading';const downloadKey = (presetId, role) => `${presetId}:${role}`;// Each entry carries its own `role`, so the rows come straight off the preset// rather than from a second copy of the role list.@@ -646,7 +649,14 @@ export default function LocalLlmRuntimesView() {};return (- <section id="llm-management-panel-runtimes" role="tabpanel" aria-labelledby="tab-runtimes" className="space-y-4">+ <section id="llm-runtimes-panel" role="tabpanel" aria-labelledby={RUNTIMES_HEADING_ID} className="space-y-4">+ {/* The panel names itself. It used to borrow `tab-runtimes` from the LLMs+ pill bar, but #7414 made Runtimes a section tab, and `RouteTabsHeader`+ passes no `controlsIdPrefix` — so that id stopped existing and the+ labelledby dangled, leaving the panel unnamed. A heading of its own+ survives whatever tab bar happens to be above it. Visually hidden+ because the section header already shows "Models → Runtimes". */}+ <h2 id={RUNTIMES_HEADING_ID} className="sr-only">Runtimes</h2>{/* One start/stop/install surface for every local server PortOS can run */}<RuntimeServersCardstatus={status}diff --git a/client/src/components/settings/LocalLlmRuntimesView.test.jsx b/client/src/components/settings/LocalLlmRuntimesView.test.jsxindex 4b2521192c..248c72383b 100644--- a/client/src/components/settings/LocalLlmRuntimesView.test.jsx+++ b/client/src/components/settings/LocalLlmRuntimesView.test.jsx@@ -66,7 +66,7 @@ import {} from '../../services/api';import socket from '../../services/socket';import { clickStartDownload } from '../../test/downloadPreflightConfirm.js';-import LocalLlmRuntimesView from './LocalLlmRuntimesView.jsx';+import LocalLlmRuntimesView, { RUNTIMES_HEADING_ID } from './LocalLlmRuntimesView.jsx';import {appleGpuBudgetGib,hardwareLlmRecommendation,@@ -84,7 +84,7 @@ const renderRuntimes = async () => {<LocalLlmRuntimesView /></MemoryRouter>,);- await waitFor(() => expect(screen.getByRole('tabpanel')).toHaveAttribute('id', 'llm-management-panel-runtimes'));+ await waitFor(() => expect(screen.getByRole('tabpanel')).toHaveAttribute('id', 'llm-runtimes-panel'));await waitFor(() => expect(screen.getByTitle(/PortOS routes local-LLM runs here by default/)).toBeInTheDocument());// The MTPLX checkpoint panel only mounts once the MTPLX status resolves, and// it then fetches its default listing — two chained awaits, so flush twice so@@ -131,7 +131,24 @@ beforeEach(() => {});describe('LocalLlmRuntimesView information architecture', () => {- it('defaults the legacy LLM URL to runtime controls without loading the model catalog', async () => {+ // The panel used to borrow `tab-runtimes` from the LLMs pill bar. Once+ // Runtimes became a section tab (#7414) that id stopped being rendered at all+ // — `RouteTabsHeader` passes no `controlsIdPrefix` — so the labelledby+ // pointed at nothing and screen readers announced an unnamed region. Assert+ // the id RESOLVES rather than that it equals a literal: a dangling reference+ // is exactly the failure a string comparison cannot see.+ it('names its own tab panel with a heading that exists', async () => {+ await renderRuntimes();++ const panel = screen.getByRole('tabpanel');+ expect(panel).toHaveAttribute('aria-labelledby', RUNTIMES_HEADING_ID);+ const label = document.getElementById(panel.getAttribute('aria-labelledby'));+ expect(label).not.toBeNull();+ expect(label.tagName).toBe('H2');+ expect(label).toHaveTextContent('Runtimes');+ });++ it('shows runtime controls without loading the model catalog', async () => {await renderRuntimes();expect(screen.getByRole('heading', { name: 'Local Runtime Servers' })).toBeInTheDocument();diff --git a/client/src/components/settings/LocalLlmTab.jsx b/client/src/components/settings/LocalLlmTab.jsxindex 36b69ffec7..b73ccda097 100644--- a/client/src/components/settings/LocalLlmTab.jsx+++ b/client/src/components/settings/LocalLlmTab.jsx@@ -1,19 +1,19 @@import { useNavigate } from 'react-router';-import { Download, Server, ShieldCheck } from 'lucide-react';+import { Download, ShieldCheck } from 'lucide-react';import TabPills from '../ui/TabPills.jsx';import ModelAbuseGuardPanel from '../models/ModelAbuseGuardPanel.jsx';-import LocalLlmRuntimesView from './LocalLlmRuntimesView.jsx';import LocalLlmLibraryView from './LocalLlmLibraryView.jsx';export const LLM_VIEWS = [- { id: 'runtimes', label: 'Runtimes', icon: Server },{ id: 'library', label: 'Model Library', icon: Download },{ id: 'abuse', label: 'Abuse Guard', icon: ShieldCheck },];-// Palettable LLM drill-downs. Runtimes and Model Library stay focused views of+// Palettable LLM drill-downs. Model Library stays a focused view of// `/models/llms` (the Models → LLMs landing). Abuse Guard is a managed// classifier lifecycle of its own, so ⌘K and voice need a dedicated path.+// Runtimes is deliberately absent: it is a SIBLING TAB now (#7414,+// `/models/llms-runtimes`), covered by `getSectionNavTabs('Models')`.// Scraped by server/lib/navManifest.test.js.export const LLM_NAV_SUBROUTES = [{ id: 'abuse' },@@ -26,7 +26,7 @@ export const LLM_NAV_SUBROUTES = [// subscribes to) exactly what it renders, leaving one subscriber per event.export function LocalLlmTab({ view }) {const navigate = useNavigate();- const activeView = LLM_VIEWS.some(({ id }) => id === view) ? view : 'runtimes';+ const activeView = LLM_VIEWS.some(({ id }) => id === view) ? view : 'library';return (<div className="space-y-4">@@ -42,14 +42,11 @@ export function LocalLlmTab({ view }) {controlsIdPrefix="llm-management-panel"/><p className="text-xs text-gray-500">- {activeView === 'runtimes'- ? 'Install, start, stop, and configure the local servers that run language models.'- : activeView === 'abuse'- ? 'Install and verify each stage of the pinned Prompt Guard classifier used to screen external content.'- : 'Find, install, compare, and remove the model weights available to Ollama and LM Studio.'}+ {activeView === 'abuse'+ ? 'Install and verify each stage of the pinned Prompt Guard classifier used to screen external content.'+ : 'Find, install, compare, and remove the model weights available to Ollama and LM Studio.'}</p></div>- {activeView === 'runtimes' && <LocalLlmRuntimesView />}{activeView === 'abuse' && <ModelAbuseGuardPanel />}{activeView === 'library' && <LocalLlmLibraryView />}</div>diff --git a/client/src/components/settings/LocalLlmTab.test.jsx b/client/src/components/settings/LocalLlmTab.test.jsxindex d87c0e4af0..e6ae2857b1 100644--- a/client/src/components/settings/LocalLlmTab.test.jsx+++ b/client/src/components/settings/LocalLlmTab.test.jsx@@ -4,7 +4,9 @@ import { MemoryRouter, useLocation } from 'react-router';// The tab is a dispatcher: the assertion that matters is WHICH view mounts, so// the views themselves are stubbed. Their own behaviour is covered in-// LocalLlmRuntimesView.test.jsx / LocalLlmLibraryView.test.jsx.+// LocalLlmLibraryView.test.jsx (and, for the departed runtimes view, in+// LocalLlmRuntimesView.test.jsx — it is a sibling Models tab since #7414, so+// this dispatcher must no longer be able to mount it at all).vi.mock('./LocalLlmRuntimesView.jsx', () => ({default: () => <div data-testid="runtimes-view">runtimes</div>,}));@@ -35,14 +37,15 @@ beforeEach(() => {describe('LocalLlmTab view dispatch', () => {// The `view` prop comes straight off the URL, so anything that is not a known- // view id — a legacy `/models/llms` with no segment, a typo, a stale bookmark —- // has to land on runtimes rather than rendering an empty tab body.+ // view id — a bare `/models/llms`, a typo, a stale bookmark, or `runtimes`+ // from before the split — has to land on Model Library rather than rendering+ // an empty tab body.it.each([- [undefined, 'runtimes-view'],- ['runtimes', 'runtimes-view'],+ [undefined, 'library-view'],['library', 'library-view'],['abuse', 'abuse-view'],- ['not-a-view', 'runtimes-view'],+ ['not-a-view', 'library-view'],+ ['runtimes', 'library-view'],])('renders the %s panel', (view, testId) => {renderTab(view);@@ -52,6 +55,16 @@ describe('LocalLlmTab view dispatch', () => {}});+ // The pill bar is what a user reaches these views by, so a Runtimes pill left+ // behind would navigate to `/models/llms/runtimes` — a path that now only+ // redirects away — instead of the tab that owns the page.+ it('no longer advertises Runtimes as one of its pills', () => {+ renderTab();++ expect(screen.queryByRole('tab', { name: 'Runtimes' })).not.toBeInTheDocument();+ expect(screen.getAllByRole('tab').map((t) => t.textContent)).toEqual(['Model Library', 'Abuse Guard']);+ });+it('navigates between the focused panels with a shareable URL', () => {renderTab();diff --git a/client/src/components/settings/LocalPersistentMindSetupCard.jsx b/client/src/components/settings/LocalPersistentMindSetupCard.jsxindex dbe29f36c1..c3d388eced 100644--- a/client/src/components/settings/LocalPersistentMindSetupCard.jsx+++ b/client/src/components/settings/LocalPersistentMindSetupCard.jsx@@ -263,7 +263,7 @@ export default function LocalPersistentMindSetupCard({: <span className="text-gray-500">Complete install / start / pull, then enable the provider.</span>}<Link to="/ai" className="text-port-accent hover:underline">AI Providers</Link><Link to="/cos/mind" className="text-port-accent hover:underline">Persistent Mind</Link>- <Link to="/models/llms" className="text-port-accent hover:underline">Models → LLMs</Link>+ <Link to="/models/llms" className="text-port-accent hover:underline">Models → LLMs → Model Library</Link></div></section>);diff --git a/client/src/lib/navPresentation.js b/client/src/lib/navPresentation.jsindex c7d8bc8e3d..96e96ab45d 100644--- a/client/src/lib/navPresentation.js+++ b/client/src/lib/navPresentation.js@@ -57,6 +57,7 @@ import {Link2,ListMusic,Database,+ Server,Shield,ShieldCheck,KeyRound,@@ -227,6 +228,7 @@ export const NAV_PRESENTATION = {'/models/embeddings': { icon: Braces },'/models/harnesses': { icon: Blocks },'/models/llms': { icon: Cpu },+ '/models/llms-runtimes': { icon: Server },'/models/loras': { icon: Sparkles },'/models/media': { icon: HardDrive },'/models/comparison': { icon: GitCompareArrows },diff --git a/client/src/pages/AIProviders.jsx b/client/src/pages/AIProviders.jsxindex fa2b9bb929..1b5ef5556e 100644--- a/client/src/pages/AIProviders.jsx+++ b/client/src/pages/AIProviders.jsx@@ -319,7 +319,7 @@ export default function AIProviders() {// Local-daemon readiness (is llama-server / Ollama actually up and serving the// model this provider names?). Off the critical path like the runtime probes,// and re-polled on the same cadence as the status map so starting a daemon- // from the Models → LLMs page clears the card's checklist on its own.+ // from the Models → Runtimes page clears the card's checklist on its own.const loadReadiness = useCallback(async () => {const data = await api.getProviderReadiness({ silent: true }).catch(() => null);setReadiness(data?.readiness && typeof data.readiness === 'object' ? data.readiness : {});diff --git a/client/src/pages/AIProviders.test.jsx b/client/src/pages/AIProviders.test.jsxindex c2abd300f4..e31c834369 100644--- a/client/src/pages/AIProviders.test.jsx+++ b/client/src/pages/AIProviders.test.jsx@@ -442,7 +442,7 @@ describe('local-daemon readiness on the provider card', () => {docsUrl: 'https://example.com/docs',ready: false,checks: [- { id: 'runtime', label: 'llama.cpp installed', ok: false, detail: 'not found', fixHint: 'Install llama.cpp from Models → LLMs.' },+ { id: 'runtime', label: 'llama.cpp installed', ok: false, detail: 'not found', fixHint: 'Install llama.cpp from Models → Runtimes.' },{ id: 'server', label: 'llama.cpp server responding', ok: false, detail: 'nothing answered', fixHint: 'Install llama.cpp first, then start it.' },],},diff --git a/client/src/pages/Models.jsx b/client/src/pages/Models.jsxindex 54009f5173..30f77a2750 100644--- a/client/src/pages/Models.jsx+++ b/client/src/pages/Models.jsx@@ -11,6 +11,7 @@ import HarnessesTab from '../components/models/HarnessesTab';import EmbeddingsTab from '../components/settings/EmbeddingsTab';import LocalModelAssessments from '../components/settings/LocalModelAssessments.jsx';import { LocalLlmTab } from '../components/settings/LocalLlmTab';+import LocalLlmRuntimesView from '../components/settings/LocalLlmRuntimesView.jsx';import { lazyWithReload } from '../utils/lazyWithReload';// The three panels moved in from the Media Gen tabs were each their own route@@ -32,7 +33,8 @@ const MediaModels = lazyWithReload(() => import('./MediaModels'));* - **Code Reviewers** — the review-loop chain and its model/effort pins.* - **Embeddings** — the embedding model backing pgvector search.* - **Harnesses** — the coding-agent CLIs/TUIs, their versions and model lists.- * - **LLMs** — focused runtime, model-library, and abuse-guard sub-routes.+ * - **LLMs** — the model-library and abuse-guard sub-routes (the weights).+ * - **Runtimes** — the local model servers, their lifecycle and downloads.* - **LoRAs** — installed image/video adapters.* - **Media** — image/video checkpoints and the Hugging Face cache.* - **Performance** — measured assessments and launch-tuning comparison.@@ -57,6 +59,7 @@ const TAB_CONTENT = {embeddings: EmbeddingsTab,harnesses: HarnessesTab,llms: LocalLlmTab,+ 'llms-runtimes': LocalLlmRuntimesView,loras: Loras,media: MediaModels,performance: LocalModelAssessments,@@ -92,7 +95,7 @@ export default function Models() {// A record id in the URL selects the tab's drill-down, when it has one. Tabs// without a detail component receive it as a focused sub-view id (LLMs uses- // `runtimes`, `library`, and `abuse`); tabs that do not recognize it render their index.+ // `library` and `abuse`); tabs that do not recognize it render their index.const DetailContent = recordId && Object.hasOwn(TAB_DETAIL, activeTab) ? TAB_DETAIL[activeTab] : null;const TabContent = TAB_CONTENT[activeTab];diff --git a/client/src/pages/Models.test.jsx b/client/src/pages/Models.test.jsxindex b54c036453..988d9767a0 100644--- a/client/src/pages/Models.test.jsx+++ b/client/src/pages/Models.test.jsx@@ -14,8 +14,9 @@ import { TABS } from '../components/models/ModelsTabsHeader';vi.mock('../components/settings/LocalModelAssessments.jsx', () => ({ default: () => <div>assessments panel</div> }));vi.mock('../components/settings/LocalLlmTab', () => ({- LocalLlmTab: ({ view }) => <div data-testid="llms-view" data-view={view || 'runtimes'}>llms panel</div>,+ LocalLlmTab: ({ view }) => <div data-testid="llms-view" data-view={view || 'library'}>llms panel</div>,}));+vi.mock('../components/settings/LocalLlmRuntimesView.jsx', () => ({ default: () => <div>runtimes panel</div> }));vi.mock('../components/settings/EmbeddingsTab', () => ({ default: () => <div>embeddings panel</div> }));vi.mock('../components/models/Image3dRuntimes', () => ({ default: () => <div>3d runtimes panel</div> }));vi.mock('../components/models/ModelStatusTab', () => ({ default: () => <div>status panel</div> }));@@ -40,6 +41,7 @@ const PANEL_MARKER = {embeddings: 'embeddings panel',harnesses: 'harnesses panel',llms: 'llms panel',+ 'llms-runtimes': 'runtimes panel',loras: 'loras panel',media: 'media models panel',performance: 'assessments panel',@@ -139,6 +141,21 @@ describe('Models', () => {});describe('Models — tab drill-downs', () => {+ // #7414 moved Runtimes out of the pill bar. The bare LLMs route now lands on+ // Model Library — the runtimes default would otherwise render a view the tab+ // no longer serves — and Runtimes has its own tab, not a sub-route.+ it('defaults the bare LLMs route to Model Library, not the departed runtimes view', async () => {+ renderAt('/models/llms');+ expect(await screen.findByTestId('llms-view')).toHaveAttribute('data-view', 'library');+ });++ it('serves Runtimes as its own tab rather than an LLMs sub-view', async () => {+ renderAt('/models/llms-runtimes');+ expect(await screen.findByText('runtimes panel')).toBeInTheDocument();+ expect(screen.getByRole('tab', { name: 'Runtimes' })).toHaveAttribute('aria-selected', 'true');+ expect(screen.queryByTestId('llms-view')).not.toBeInTheDocument();+ });+it.each(['library', 'abuse'])('passes the LLM %s sub-route through to the focused LLM view', async (view) => {renderAt(`/models/llms/${view}`);expect(await screen.findByTestId('llms-view')).toHaveAttribute('data-view', view);diff --git a/client/src/utils/providerEndpoints.js b/client/src/utils/providerEndpoints.jsindex 72c2182f49..3c8633de61 100644--- a/client/src/utils/providerEndpoints.js+++ b/client/src/utils/providerEndpoints.js@@ -81,7 +81,7 @@ export { isPrivateNetworkEndpoint };* Client mirror of `isLocalInstanceEndpoint` in* server/lib/localEndpoint.js, and the guard for anything that explains* a provider by inspecting the machine PortOS runs on — "is `lms` installed- * here?", "start it from Models → LLMs". A provider named for LM Studio+ * here?", "start it from Models → Runtimes". A provider named for LM Studio* but pointed at another box on the tailnet matches* {@link localBackendForProvider} by NAME, so without this it collected this* machine's install state and offered to start a server it does not own.diff --git a/docs/PORTS.md b/docs/PORTS.mdindex 0edc055468..d6a4845fff 100644--- a/docs/PORTS.md+++ b/docs/PORTS.md@@ -36,9 +36,9 @@ Common port labels:| 5561 | portos-db (Docker container) | - | Infrastructure dependency: PostgreSQL Docker container provisioned by `scripts/setup-db.js` / Docker Compose (not a PM2 process in `server/services/apps.js`; native mode uses system pg on 5432). || 5562 | portos-whisper | whisper-server | Loopback whisper.cpp speech-to-text server. || 5563 | portos-server | eidoverse-host | Optional legacy HTTPS/WebSocket bridge for Eidoverse Worlds (on demand → loopback `:8940`). Prefer the same-origin path on `:5555` — `/eidoverse-host` plus root allowlist proxies — so a single-port tailcat forward (`:15555` → `:5555`) can embed the iframe. |-| 5564 | portos-slotstream | - | Loopback SSD-streaming MoE runtime. Optional PM2 process, started/stopped from Models → LLMs. Never 11434 — that port is a PortOS-managed Ollama. |-| 5568 | portos-llama-server | - | Loopback llama.cpp speculative-decoding server. Optional PM2 process, started/stopped from Models → LLMs. |-| 8000 | portos-mtplx | - | Loopback MTPLX OpenAI-compatible API (upstream's own default, kept so the shipped provider presets match). Optional PM2 process, started/stopped from Models → LLMs. See [features/mtplx.md](./features/mtplx.md). |+| 5564 | portos-slotstream | - | Loopback SSD-streaming MoE runtime. Optional PM2 process, started/stopped from Models → Runtimes. Never 11434 — that port is a PortOS-managed Ollama. |+| 5568 | portos-llama-server | - | Loopback llama.cpp speculative-decoding server. Optional PM2 process, started/stopped from Models → Runtimes. |+| 8000 | portos-mtplx | - | Loopback MTPLX OpenAI-compatible API (upstream's own default, kept so the shipped provider presets match). Optional PM2 process, started/stopped from Models → Runtimes. See [features/mtplx.md](./features/mtplx.md). || 18022 | PortOS model host | - | Opt-in bearer-authenticated inference queue for dedicated hosts; one active generation. See [fleet host](./features/fleet-llm-host.md). || 18020 | vLLM (Docker) | - | Loopback vLLM Qwen3.8-27B / DFlash 2 container on an RTX 3090 host. Started explicitly from host setup or by the operator. Dedicated hosting opts into Docker restart persistence. See [features/qwen38-rtx3090.md](./features/qwen38-rtx3090.md). || 18021 | SGLang (Docker) | - | Loopback SGLang Qwen3.8-27B container on a Hopper/Blackwell host. Operator-started (`docker compose up -d`) — PortOS never brings it up on boot. See [features/sglang-qwen38.md](./features/sglang-qwen38.md). |diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdindex d66e96b21b..298cec2867 100644--- a/docs/TROUBLESHOOTING.md+++ b/docs/TROUBLESHOOTING.md@@ -166,7 +166,7 @@ Two caveats:`ollama serve` runs from its own unit file, so when a window is configuredPortOS starts (or restarts) Ollama itself.-The Models → LLMs page shows the window loaded models are actually running+The Models → Runtimes page shows the window loaded models are actually runningat, and flags it when it's below what an agent harness needs.## Chief of Staff Issuesdiff --git a/docs/features/dflash2.md b/docs/features/dflash2.mdindex 41c4047c3c..745e560977 100644--- a/docs/features/dflash2.md+++ b/docs/features/dflash2.md@@ -21,7 +21,7 @@ PortOS integrates both through the **OpenCode llama TUI** provider preset and th2. **Model Refresh**:- Support for dynamic model discovery via the **Refresh Models** button on AI Providers, querying the local `llama-server` `/v1/models` endpoint.3. **Local LLMs & AI Providers Guidance**:- - UI instructions, command templates, and copyable run lines surfaced in **Models → LLMs** and **AI Providers**.+ - UI instructions, command templates, and copyable run lines surfaced in **Models → Runtimes** and **AI Providers**.---@@ -29,7 +29,7 @@ PortOS integrates both through the **OpenCode llama TUI** provider preset and th### 1. Download Base & Draft Models-**From the UI (recommended).** **Models → LLMs → Speculative Decoding**+**From the UI (recommended).** **Models → Runtimes → Speculative Decoding**lists each preset's two GGUFs with their on-disk state and a **Download** buttonper file — PortOS fetches the weights from Hugging Face straight into the paththe launcher passes `llama.cpp`, so a missing file is visible (and fixable)@@ -168,7 +168,7 @@ can't fight your choice:Vocabulary reference: llama.cpp `docs/speculative.md`.### 3. Use in PortOS-1. Navigate to **AI Providers** (`/ai`) or **Models → LLMs**.+1. Navigate to **AI Providers** (`/ai`) or **Models → Runtimes**.2. Verify **OpenCode llama TUI** is enabled.3. Click **Refresh Models** to pull the live aliases from `llama-server`, or use the default `dflash` model.4. Select **OpenCode llama TUI** in the CoS task creator or terminal runner to execute coding and agent tasks with speculative acceleration.@@ -213,7 +213,7 @@ every 20s:asking for `dspark` fails here rather than inside a dead agent run.Until all three pass, the card says what is missing and links to-**Models → LLMs**. The same failure previously surfaced only as+**Models → Runtimes**. The same failure previously surfaced only as`Cannot connect to API: Unable to connect` inside the agent transcript.### "llama.cpp is serving `dflash`" — the model check is a NAME checkdiff --git a/docs/features/grok-box-local-mind.md b/docs/features/grok-box-local-mind.mdindex 88add9f5e4..a6e3eb6021 100644--- a/docs/features/grok-box-local-mind.md+++ b/docs/features/grok-box-local-mind.md@@ -22,7 +22,7 @@ Keep the mind free and local. Do **not** point coding agents at a CPU-bound 27B/PortOS surfaces a **Free local Persistent Mind** card when the host fits this path (CPU-only / no usable NVIDIA GPU, or low RAM / modest Apple Silicon without a curated 48 GB+ coding preset):- **AI Providers** (`/ai`)-- **Models → LLMs → Runtimes** (`/models/llms`)+- **Models → Runtimes** (`/models/llms-runtimes`)- **Chief of Staff → Persistent Mind → Settings** (AI profile drawer)The card:diff --git a/docs/features/mtplx.md b/docs/features/mtplx.mdindex b9b376ecc0..71ed161da6 100644--- a/docs/features/mtplx.md+++ b/docs/features/mtplx.md@@ -27,7 +27,7 @@ valid CoS coding-agent runner.## Where it is managed-**Models → LLMs** is the home for MTPLX's lifecycle, alongside every other local+**Models → Runtimes** is the home for MTPLX's lifecycle, alongside every other localserver PortOS can run:- **Local Runtime Servers** — one table covering Ollama, LM Studio, llama.cpp@@ -53,7 +53,7 @@ from the checklist is the same managed process the LLMs page can stop and log.Two surfaces set MTPLX up, and they drive the same PM2 process — use whicheveryou are already on.-**From Models → LLMs** (full control over the checkpoint and the port):+**From Models → Runtimes** (full control over the checkpoint and the port):1. Install MTPLX from **Local Runtime Servers**. PortOS installs the packagefrom upstream's Homebrew tap (`brew install youssofal/mtplx/mtplx`), falling@@ -109,7 +109,7 @@ you are already on.verified checkpoint, a multi-gigabyte download) and then starts the server,with the download's progress streaming into the same modal. To use adifferent MTP checkpoint instead, search for and download it on the MTPLX- card in Models → LLMs, then **Save configuration** there.+ card in Models → Runtimes, then **Save configuration** there.Then, either way:@@ -142,7 +142,7 @@ not offer to stop a process it did not start.appears only when the cache listing proves there is nothing servable — anempty cache, or one holding only a half-finished pull — and runs `mtplx pull`with no repo id, so it can only ever fetch MTPLX's own default verified- checkpoint; nothing on that page picks what is downloaded. The Models → LLMs+ checkpoint; nothing on that page picks what is downloaded. The Models → Runtimescard's checkpoint panel is the full-control counterpart: search, download anamed repo id, remove one. Neither is ever reached implicitly by an Install ora Start.@@ -172,7 +172,7 @@ only from an assessment you start.## Tuning the launch line-**Models → LLMs → measured assessments** can relaunch `mtplx serve` with+**Models → Runtimes → measured assessments** can relaunch `mtplx serve` withdifferent flags between runs, so "how fast is this checkpoint here?" can beanswered per configuration rather than once. The knobs PortOS offers are the onesit can actually put on the launch line:@@ -245,7 +245,7 @@ left alone, it just isn't in the list a reboot replays.prints. PortOS deliberately never runs this: it writes a launchd/systemd unitand is blocked in PortOS's PM2 command guard.2. With the servers you want running, click **Save PM2 list for reboot** on- Models → LLMs (a `pm2 save`, minus `portos-mtplx`). Each runtime the dump+ Models → Runtimes (a `pm2 save`, minus `portos-mtplx`). Each runtime the dumpholds then shows a **starts at boot** pill — MTPLX never will.Ollama and LM Studio are not PM2 processes — they manage their owndiff --git a/docs/features/product-surfaces.md b/docs/features/product-surfaces.mdindex 2c4ac99fad..eab7028dc4 100644--- a/docs/features/product-surfaces.md+++ b/docs/features/product-surfaces.md@@ -195,8 +195,9 @@ Local AI model acceleration, multi-machine peer federation, storage classificati| Surface / Area | Route(s) | Key Capabilities & Workflows | Related Guides ||---|---|---|---|-| **Local LLM Runtimes** | `/models/llms` | Management of local model servers: Ollama, LM Studio, vLLM, SGLang, llama.cpp / llama-server, MTPLX, and Slotstream (SSD-streaming MoE for checkpoints larger than RAM). | [Claude on Ollama](./claude-ollama.md), [MTPLX](./mtplx.md), [Slotstream](./slotstream.md) |-| **Speculative Decoding** | `/models/llms` | Accelerated token generation using DSpark, DFlash 2, and MTPLX speculative drafting pairs. | [DFlash2 & DSpark](./dflash2.md), [MTPLX](./mtplx.md), [RTX 3090 vLLM](./qwen38-rtx3090.md), [SGLang Qwen](./sglang-qwen38.md) |+| **Local LLM Runtimes** | `/models/llms-runtimes` | Management of local model servers: Ollama, LM Studio, llama.cpp / llama-server, MTPLX, and Slotstream (SSD-streaming MoE for checkpoints larger than RAM). vLLM and SGLang have no rows here — their setup and start controls live in the AI Providers readiness checklist. | [Claude on Ollama](./claude-ollama.md), [MTPLX](./mtplx.md), [Slotstream](./slotstream.md) |+| **Model Library** | `/models/llms` | The Ollama / LM Studio weights catalog — find, install, compare, and remove models — plus the Abuse Guard classifier at `/models/llms/abuse`. | [Claude on Ollama](./claude-ollama.md) |+| **Speculative Decoding** | `/models/llms-runtimes` | Accelerated token generation using DSpark, DFlash 2, and MTPLX speculative drafting pairs. | [DFlash2 & DSpark](./dflash2.md), [MTPLX](./mtplx.md), [RTX 3090 vLLM](./qwen38-rtx3090.md), [SGLang Qwen](./sglang-qwen38.md) || **Embeddings Management** | `/models/embeddings` | Local text embedding models (Nomic, Ollama) and pgvector semantic index configuration. | [STORAGE.md](../STORAGE.md) || **LoRAs & Model Training** | `/models/loras`, `/models/training` | LoRA adapter discovery, Civitai downloads, image captioning, and local FLUX LoRA training dataset management. | — || **Media Models Storage** | `/models/media` | Hugging Face cache management and storage inspection for image/video diffusion models. | — |diff --git a/docs/features/slotstream.md b/docs/features/slotstream.mdindex e13ea5326b..536d129a4e 100644--- a/docs/features/slotstream.md+++ b/docs/features/slotstream.md@@ -25,7 +25,7 @@ Silicon."** and offers no install button.## Where it is managed-**Models → LLMs** is the home for Slotstream's lifecycle, in the same **Local+**Models → Runtimes** is the home for Slotstream's lifecycle, in the same **LocalRuntime Servers** table as Ollama, LM Studio, llama.cpp and MTPLX(`client/src/components/settings/RuntimeServersCard.jsx`):diff --git a/docs/research/2026-08-22-local-llm-performance-audit.md b/docs/research/2026-08-22-local-llm-performance-audit.mdindex 116d848f50..8727de62f4 100644--- a/docs/research/2026-08-22-local-llm-performance-audit.md+++ b/docs/research/2026-08-22-local-llm-performance-audit.md@@ -3,7 +3,7 @@Date: 2026-08-22This is the point-in-time record of the local-model evaluation that drives the-recommendations in **Models → LLMs**, **Models → Performance**, and **AI+recommendations in **Models → Runtimes**, **Models → Performance**, and **AIProviders**. It is intentionally scoped to model behavior and runtime choices;it contains no machine identity, private network names, credentials, or usercontent.diff --git a/server/lib/localPersistentMindRecommendation.js b/server/lib/localPersistentMindRecommendation.jsindex 435924b16f..07769605aa 100644--- a/server/lib/localPersistentMindRecommendation.js+++ b/server/lib/localPersistentMindRecommendation.js@@ -175,7 +175,7 @@ export function localPersistentMindRecommendation(capabilities) {codingHarnesses: 'Cursor Agent / OpenCode Zen (cloud CLIs) for coding tasks',topology: 'Local Ollama Persistent Mind + cloud coding CLIs',note: 'Default for Grok Bot boxes and other CPU-only / no-GPU installs: a free local Persistent Mind on Ollama, with Cursor / OpenCode Zen reserved for coding.',- alternatives: 'Do not enable vLLM or Qwen3.8-27B presets on this host. When you later add a GPU workstation, use Models → LLMs → Recommended coding-agent setup instead.',+ alternatives: 'Do not enable vLLM or Qwen3.8-27B presets on this host. When you later add a GPU workstation, use Models → Runtimes → Recommended coding-agent setup instead.',warnings: Object.freeze(warnings),suppressHeavyLocalPresets: shouldSuppressHeavyLocalPresets(capabilities),cpuOnly,diff --git a/server/lib/localProviderRuntime.js b/server/lib/localProviderRuntime.jsindex 5526eb6c34..743b9f8362 100644--- a/server/lib/localProviderRuntime.js+++ b/server/lib/localProviderRuntime.js@@ -52,9 +52,15 @@ export { localBackendForProvider, localRuntimeKind, modelPinIsOffered } from './* provider stores no config of its own, so a second copy here would eventually* probe a port nothing is on and call a working setup broken.*- * `manageUrl` is the client route that installs/starts it — the Models → LLMs- * page owns every one of these flows, so an unmet requirement links there- * rather than duplicating the install UI on the Providers page.+ * `manageUrl` is the client route that installs/starts it, so an unmet+ * requirement links there rather than duplicating the install UI on the+ * Providers page. It is NOT one page: since #7414, server lifecycle lives on+ * Models → Runtimes and the weights catalog on Models → LLMs, and a runtime+ * points at whichever of the two actually manages it. Readiness copy names the+ * page by resolving this route through `navManifest.getNavPageForPath` rather+ * than repeating a breadcrumb, so a future move re-words every hint at once.+ * `null` means PortOS has no page for it — the readiness card's own setup+ * controls (or the vendor docs) are the whole story.*/export const LOCAL_RUNTIMES = Object.freeze({llama: Object.freeze({@@ -64,7 +70,7 @@ export const LOCAL_RUNTIMES = Object.freeze({// `llamaServerManager` resolves and starts.command: 'llama-server',defaultBaseUrl: opencodeLocalBaseUrl('llama'),- manageUrl: '/models/llms',+ manageUrl: '/models/llms-runtimes',docsUrl: 'https://github.com/ggml-org/llama.cpp',// Named so an unmet check can say what the user still has to fetch. GGUF// weights are a separate download from the binary — the single most common@@ -89,7 +95,7 @@ export const LOCAL_RUNTIMES = Object.freeze({// standby without turning every enabled llama-backed provider into a setup// failure on the capability map.standbyWhenStopped: true,- standbyDetail: 'No model server is running, which is a valid idle state. Choose a GGUF preset in Models → LLMs when you want to start one; with idle release configured, llama.cpp unloads it in place and reloads it on the next request.',+ standbyDetail: 'No model server is running, which is a valid idle state. Choose a GGUF preset in Models → Runtimes when you want to start one; with idle release configured, llama.cpp unloads it in place and reloads it on the next request.',}),ollama: Object.freeze({id: 'ollama',@@ -126,8 +132,9 @@ export const LOCAL_RUNTIMES = Object.freeze({// answer about it.command: 'docker',defaultBaseUrl: opencodeLocalBaseUrl('vllm'),- // No Models → LLMs entry — the weights and the compose project are an- // operator-owned ~20 GB prepare step, not something PortOS downloads.+ // No Models page at all — the weights and the compose project are an+ // operator-owned ~20 GB prepare step, not something PortOS downloads, so+ // the readiness checklist is the whole surface.manageUrl: null,docsUrl: 'https://github.com/atomantic/PortOS/blob/main/docs/features/qwen38-rtx3090.md',modelsHint: 'Clone syv-ai/qwen38-27b-rtx3090 and run its prepare step once — or let the checklist do it, which is the only path that spends the ~30 GB.',@@ -152,7 +159,7 @@ export const LOCAL_RUNTIMES = Object.freeze({// because SGLang publishes no compose project to inherit one from.command: 'docker',defaultBaseUrl: opencodeLocalBaseUrl('sglang'),- // No Models → LLMs entry — the weights are an operator-owned ~20 GB+ // No Models page at all — the weights are an operator-owned ~20 GB// download, not something PortOS fetches.manageUrl: null,docsUrl: 'https://github.com/atomantic/PortOS/blob/main/docs/features/sglang-qwen38.md',@@ -167,23 +174,25 @@ export const LOCAL_RUNTIMES = Object.freeze({command: 'slotstream',// Dedicated loopback port — never 11434, which is a PortOS-managed Ollama.defaultBaseUrl: `http://127.0.0.1:${PORTS.SLOTSTREAM}/v1`,- manageUrl: '/models/llms',+ manageUrl: '/models/llms-runtimes',docsUrl: 'https://github.com/atomantic/PortOS/blob/main/docs/features/slotstream.md',- modelsHint: 'A start never fetches weights — add a checkpoint on Models → LLMs, then start Slotstream there.',+ modelsHint: 'A start never fetches weights — add a checkpoint on Models → Runtimes, then start Slotstream there.',servesOneModel: true,standbyWhenStopped: true,- standbyDetail: 'No streaming runtime is running, which is a valid idle state. Start it from Models → LLMs when you want a model larger than this machine\'s RAM; with idle release configured, PortOS stops it and starts it again on the next request.',+ standbyDetail: 'No streaming runtime is running, which is a valid idle state. Start it from Models → Runtimes when you want a model larger than this machine\'s RAM; with idle release configured, PortOS stops it and starts it again on the next request.',}),mtplx: Object.freeze({id: 'mtplx',label: 'MTPLX',command: 'mtplx',defaultBaseUrl: opencodeLocalBaseUrl('mtplx'),- // No Models → LLMs entry — MTPLX has no model catalog inside PortOS. The- // one-click setup on the readiness checklist- // (`services/localRuntimeSetup.js`) is what installs it, downloads its- // default checkpoint when the cache is empty, and starts it.- manageUrl: null,+ // MTPLX has no model CATALOG inside PortOS — it never had a Models → LLMs+ // entry for that reason — but Models → Runtimes does own its server:+ // install, checkpoint download, start and stop all live on that page, so+ // that is where a readiness card should send someone (#7414). The one-click+ // setup on the checklist itself (`services/localRuntimeSetup.js`) remains+ // the shortest path and still runs in place.+ manageUrl: '/models/llms-runtimes',docsUrl: 'https://github.com/atomantic/PortOS/blob/main/docs/features/mtplx.md',modelsHint: 'Point the server at the Qwen MTP checkpoint you want, or let the checklist fetch MTPLX\'s default one when nothing is cached.',// One process, one checkpoint — MTPLX names it after the checkpoint itdiff --git a/server/lib/localProviderRuntime.test.js b/server/lib/localProviderRuntime.test.jsindex 49bede578d..a8c8206a89 100644--- a/server/lib/localProviderRuntime.test.js+++ b/server/lib/localProviderRuntime.test.js@@ -64,7 +64,9 @@ describe('localRuntimeForProvider', () => {expect(runtime.label).toBe('llama.cpp');expect(runtime.command).toBe('llama-server');expect(runtime.endpoint).toBe('http://127.0.0.1:8090/v1');- expect(runtime.manageUrl).toBe('/models/llms');+ // Models → Runtimes (#7414), not the LLMs catalog: llama-server's+ // lifecycle is what an unmet check sends the user to.+ expect(runtime.manageUrl).toBe('/models/llms-runtimes');});it('falls back to the provider endpoint when the stored OpenCode config is unparseable', () => {diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex e0774fd850..8ee19418fd 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -317,6 +317,13 @@ const RAW_NAV_COMMANDS = [{ id: 'nav.settings.embeddings', path: '/models/embeddings', label: 'Embeddings', section: 'Models', tabId: 'embeddings', previousPaths: ['/settings/embeddings'], aliases: ['settings-embeddings', 'embeddings', 'embedding'], keywords: ['vector', 'pgvector', 'semantic search', 'nomic', 'ollama', 'lm studio'] },{ id: 'nav.settings.local-llm', path: '/models/llms', label: 'LLMs', section: 'Models', tabId: 'llms', previousPaths: ['/settings/local-llm'], aliases: ['local-llm', 'local-llms', 'llms', 'models-llms', 'ollama', 'lm-studio', 'lmstudio'], keywords: ['ollama', 'lm studio', 'local model', 'local llm', 'gguf', 'pull model', 'install model', 'migrate', 'switch backend', 'llama.cpp'] },{ id: 'nav.models.llms.abuse', path: '/models/llms/abuse', label: 'Abuse Guard', section: 'Models', aliases: ['abuse-guard', 'model-abuse', 'model-abuse-guard', 'prompt-guard', 'prompt guard'], keywords: ['classifier', 'prompt injection', 'security scan', 'llama prompt guard', 'install guard'] },+ // Split out of the LLMs page (#7414): managing the SERVERS that run models is+ // a different job from browsing the weights they serve, and it was the LLMs+ // default view, not a drill-down — so it gets a sibling tab rather than a+ // pill. Declared AFTER `nav.settings.local-llm` on purpose: alias collisions+ // resolve first-declared-wins, so "ollama"/"llms" keep landing on the+ // catalog page even though this page starts those servers too.+ { id: 'nav.models.llms-runtimes', path: '/models/llms-runtimes', label: 'Runtimes', section: 'Models', tabId: 'llms-runtimes', previousPaths: ['/models/llms/runtimes'], aliases: ['runtimes', 'llm-runtimes', 'local-runtimes', 'model-runtimes', 'llama-server', 'llama-cpp', 'slotstream', 'mtplx'], keywords: ['llama.cpp', 'llama-server', 'mtplx', 'slotstream', 'start server', 'stop server', 'local server', 'model server', 'speculative decoding', 'draft model', 'checkpoint', 'idle release'] },{ id: 'nav.media.loras', path: '/models/loras', label: 'LoRAs', section: 'Models', tabId: 'loras', previousPaths: ['/media/loras'], aliases: ['loras', 'lora', 'lora-manager', 'civitai'], keywords: ['lora', 'civitai', 'fine-tune', 'style adapter', 'realstagram', 'photoreal', 'flux lora'] },{ id: 'nav.media.training', path: '/models/training', label: 'Training', section: 'Models', tabId: 'training', previousPaths: ['/media/training', '/media/training/:datasetId'], aliases: ['training', 'lora-training', 'train-lora', 'datasets', 'character-lora'], keywords: ['fine-tune', 'dataset', 'caption', 'dreambooth', 'character consistency', 'train', 'flux lora'] },{ id: 'nav.media.models', path: '/models/media', label: 'Media', section: 'Models', tabId: 'media', previousPaths: ['/media/models', '/media-models'], aliases: ['media-models', 'image-models', 'video-models', 'huggingface'], keywords: ['hf cache', 'model storage', 'disk', 'add model', 'install model', 'custom model'] },@@ -433,6 +440,30 @@ export const getNavSectionForPath = (pathname) => {.sort((a, b) => normalizedNavPath(b.path).length - normalizedNavPath(a.path).length)[0]?.section || null;};+// The page a route belongs to, as a user reads it in the UI: `label` is the tab+// name ("Runtimes"), `breadcrumb` is how the sidebar path to it is spoken and+// written ("Models → Runtimes").+//+// Readiness copy derives its wording from here rather than hardcoding a+// breadcrumb beside each link, because the two drifted apart the moment a page+// moved: every local runtime's "start it from Models → LLMs" hint kept naming+// the LLMs page after its runtime controls became a sibling tab (#7414). A hint+// that links to `manageUrl` now NAMES whatever page that route resolves to, so+// the next move re-words all of them.+//+// Longest-match, so a drill-down (`/models/llms/abuse`) reports its own page+// rather than its parent's. Returns `null` for a path no command declares —+// callers fall back to route-free wording rather than inventing a page name.+export const getNavPageForPath = (pathname) => {+ const normalizedPath = normalizedNavPath(pathname);+ if (normalizedPath === '/') return null;+ const command = NAV_COMMANDS+ .filter((c) => pathContainsNavRoute(normalizedPath, normalizedNavPath(c.path)))+ .sort((a, b) => normalizedNavPath(b.path).length - normalizedNavPath(a.path).length)[0];+ if (!command) return null;+ return { label: command.label, section: command.section, breadcrumb: `${command.section} → ${command.label}` };+};+// Every feature id this manifest gates on, for the registry-drift guard.export const NAV_FEATURE_IDS = [...new Set(NAV_COMMANDS.map((c) => c.feature).filter(Boolean))].sort();diff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.jsindex 938eebe45e..eeb40fb338 100644--- a/server/lib/navManifest.test.js+++ b/server/lib/navManifest.test.js@@ -7,6 +7,7 @@ import {NAV_FEATURE_IDS,SECTION_FEATURE,getNavAliasMap,+ getNavPageForPath,getNavSectionForPath,getSectionNavTabs,resolveNavCommand,@@ -168,6 +169,7 @@ describe('nav contract — generated section child navigation', () => {['/ai/fleet', 'Models'],['/devtools/usage', 'Models'],['/models/llms/abuse', 'Models'],+ ['/models/llms-runtimes', 'Models'],['/settings/general', 'Settings'],['/prompts', 'Settings'],])('resolves %s to the %s section', (pathname, section) => {@@ -178,6 +180,48 @@ describe('nav contract — generated section child navigation', () => {// Feature gating hides a page from the ⌘K palette and the sidebar. A typo in a// `feature` tag would silently gate on a flag nothing can ever turn on, hiding// the page on every install with no other symptom.+// Runtimes (#7414) was the LLMs page's default VIEW before it became a sibling+// tab. Every way a user reaches it — the tab bar, ⌘K, voice, and the bookmark+// they still hold on the old pill — has to keep landing on the same page.+describe('nav contract — Models → Runtimes', () => {+ it('is a Models section tab at its canonical path', () => {+ expect(getSectionNavTabs('Models')).toContainEqual({ id: 'llms-runtimes', label: 'Runtimes', to: '/models/llms-runtimes' });+ });++ it.each(['runtimes', 'llm runtimes', 'local runtimes', 'llama server'])(+ 'resolves the spoken name %j to the Runtimes page',+ (spoken) => {+ expect(resolveNavCommand(spoken)?.path).toBe('/models/llms-runtimes');+ },+ );++ // Splitting the page must not steal the catalog's own names: both surfaces+ // start Ollama, so "ollama" staying on LLMs is a decision, not an accident.+ it.each(['llms', 'ollama', 'lm studio'])('leaves %j on the LLMs catalog page', (spoken) => {+ expect(resolveNavCommand(spoken)?.path).toBe('/models/llms');+ });+});++// Readiness copy names the page it links to instead of repeating a breadcrumb,+// so a page move re-words every hint. A helper that silently returned null (or+// the parent's name) would put the neutral fallback wording on every card.+describe('getNavPageForPath', () => {+ it.each([+ ['/models/llms', 'Models → LLMs', 'LLMs'],+ ['/models/llms-runtimes', 'Models → Runtimes', 'Runtimes'],+ // Longest-match: a drill-down names itself, not the tab that hosts it.+ ['/models/llms/abuse', 'Models → Abuse Guard', 'Abuse Guard'],+ ])('names %s as %s', (pathname, breadcrumb, label) => {+ expect(getNavPageForPath(pathname)).toMatchObject({ breadcrumb, label, section: 'Models' });+ });++ it('returns null for a path no command declares, so callers can drop the clause', () => {+ expect(getNavPageForPath('/not-a-nav-path')).toBeNull();+ expect(getNavPageForPath(null)).toBeNull();+ expect(getNavPageForPath('/')).toBeNull();+ });+});+describe('nav contract — instance-feature gating', () => {it('every gated entry names a registered instance feature', () => {const unknown = NAV_FEATURE_IDS.filter((id) => !INSTANCE_FEATURE_IDS.includes(id));@@ -694,6 +738,7 @@ describe('nav coverage — every navigable App.jsx route has a manifest entry',const declared = new Set(NAV_COMMANDS.flatMap((c) => c.previousPaths || []));const missing = ['/settings/local-llm', // #4736 — Local LLM management left Settings+ '/models/llms/runtimes', // #7414 — Runtimes left the LLMs pill bar for its own tab'/media/models', // #4728 — the rest of model management left Create/Settings/Dev Tools'/media/loras','/media/training',diff --git a/server/services/fleetLlmHost.js b/server/services/fleetLlmHost.jsindex 8b9d9dfaae..57fb4d216f 100644--- a/server/services/fleetLlmHost.js+++ b/server/services/fleetLlmHost.js@@ -29,7 +29,7 @@ export function recommendFleetLlmHost(specs) {runtime: 'vllm', supported: true, title: 'Qwen3.8-27B · vLLM + DFlash 2',reason: 'Validated RTX 3090 recipe with structured tool calls and prefix caching. Recorded warm decode: 105 tokens/sec; actual speed depends on context and workload.',};- if (specs.appleSilicon) return { runtime: 'mtplx', supported: false, title: 'MTPLX on Apple Silicon', reason: 'Use the managed MTPLX setup on Models → LLMs. Automated dedicated hosting currently supports the validated RTX 3090 recipe.' };+ if (specs.appleSilicon) return { runtime: 'mtplx', supported: false, title: 'MTPLX on Apple Silicon', reason: 'Use the managed MTPLX setup on Models → Runtimes. Automated dedicated hosting currently supports the validated RTX 3090 recipe.' };return { runtime: null, supported: false, title: specs.cuda?.status === 'unknown' ? 'Hardware detection needs attention' : 'Connect to a model host', reason: 'No validated automatic Qwen3.8-27B host recipe matches this machine. Connect to an existing host, or compare installed models on Models → Performance.' };}@@ -185,7 +185,7 @@ async function configure({ emit, isCancelled }) {const probe = await probeOpenAiModels(`${upstream}/v1`, { apiKey, timeoutMs: 3000 });if (!probe.reachable) {const gpu = await getCudaUtilization({ refresh: true });- if (gpu.gpus?.some((item) => item.memoryUsedMib > 3000)) throw new Error('Another application is holding GPU memory. Unload its model on Models → LLMs, then retry.');+ if (gpu.gpus?.some((item) => item.memoryUsedMib > 3000)) throw new Error('Another application is holding GPU memory. Unload its model on Models → Runtimes, then retry.');}let contents = await readFile(join(project.dir, '.env'), 'utf8');for (const [key, value] of [['SPEC', 'dflash2'], ['PREFIX_CACHE', '1'], ['MAX_SEQS', '1']]) contents = upsertEnvLine(contents, key, value);diff --git a/server/services/llamaServerManager.js b/server/services/llamaServerManager.jsindex f00186fc40..04c3906cd9 100644--- a/server/services/llamaServerManager.js+++ b/server/services/llamaServerManager.js@@ -1099,7 +1099,7 @@ export async function relaunchLlamaServerWithAlias(alias) {if (!managed || !config?.model) {return {applied: false,- reason: `llama-server is not running under PortOS, so its launch line is not PortOS's to change. Start it from Models → LLMs, or add \`--alias ${wanted}\` to your own launch line.`,+ reason: `llama-server is not running under PortOS, so its launch line is not PortOS's to change. Start it from Models → Runtimes, or add \`--alias ${wanted}\` to your own launch line.`,config: null,};}diff --git a/server/services/localPersistentMindSetup.js b/server/services/localPersistentMindSetup.jsindex ecd33c0db8..d81753a9df 100644--- a/server/services/localPersistentMindSetup.js+++ b/server/services/localPersistentMindSetup.js@@ -70,7 +70,7 @@ export async function describeLocalPersistentMindSetup(deps = {}) {steps.push(step('recommendation','skipped',- 'This host has a curated GPU coding-agent path (or otherwise does not use the free local Persistent Mind default). Use Models → LLMs → Recommended coding-agent setup when applicable.',+ 'This host has a curated GPU coding-agent path (or otherwise does not use the free local Persistent Mind default). Use Models → Runtimes → Recommended coding-agent setup when applicable.',));return {applicable: false,diff --git a/server/services/localRuntimeSetup.js b/server/services/localRuntimeSetup.jsindex 8106674766..6317a1ff1c 100644--- a/server/services/localRuntimeSetup.js+++ b/server/services/localRuntimeSetup.js@@ -3,7 +3,7 @@** `providerReadiness.js` answers WHAT is missing (the daemon isn't installed,* isn't running, isn't serving the right model). Until this module existed, the- * answer to "so fix it" was a link — to the Models → LLMs page for the two+ * answer to "so fix it" was a link — to the Models → Runtimes page for the two* backends PortOS manages, and to the vendor's README for MTPLX, which is a* dead end inside PortOS: the user leaves the app, reads a setup doc, runs two* commands in a terminal, comes back and reloads. This module makes the@@ -22,7 +22,7 @@* - **Weights are never downloaded behind a start.** llama.cpp cannot be* started without a GGUF path the user chooses, and no runtime's *model** check is auto-fixed by a start — a multi-gigabyte download is a decision,- * and the Models → LLMs page already owns that flow with a picker. `start`+ * and the Models → Runtimes page already owns that flow with a picker. `start`* runs MTPLX on a checkpoint ALREADY in its cache (`lib/mtplxModels.js`).* A cache that is empty (or holds only a half-finished pull) is a SEPARATE* action the user clicks by name — `pull-start`, "Download the default@@ -36,7 +36,7 @@* helper stays an explicit operator action outside PortOS, exactly as* `docs/features/mtplx.md` promised before this button existed. Both of* those steps are delegated to `mtplxServerManager.js`, so a server started- * here is the same PM2 process (`portos-mtplx`) the Models → LLMs page can+ * here is the same PM2 process (`portos-mtplx`) the Models → Runtimes page can* stop, log, and persist across a reboot — the two surfaces cannot drift* onto different install commands or a daemon only one of them can see.* - **Neither CUDA container is ever provisioned by a Start.** Both start rows@@ -112,11 +112,11 @@ const CONFIRM_TIMEOUT_MS = 5_000;* it names the button that does, plus the in-app card that searches for and* downloads a checkpoint other than MTPLX's own default.*/-const MTPLX_NO_MODEL_ERROR = 'no model weights are cached, so its server exits before it binds a port. Close this window — the checklist now offers “Download the default model & start MTPLX”, which fetches MTPLX\'s own verified checkpoint (a multi-gigabyte download) and then starts the server. To use a different MTP checkpoint instead, search for one on the MTPLX card in Models → LLMs, download it there, then click Start MTPLX again.';+const MTPLX_NO_MODEL_ERROR = 'no model weights are cached, so its server exits before it binds a port. Close this window — the checklist now offers “Download the default model & start MTPLX”, which fetches MTPLX\'s own verified checkpoint (a multi-gigabyte download) and then starts the server. To use a different MTP checkpoint instead, search for one on the MTPLX card in Models → Runtimes, download it there, then click Start MTPLX again.';/** The same dead end, reached from a cache holding only interrupted pulls. */const mtplxPartialCacheError = (count) =>- `its cache holds ${count} model${count === 1 ? '' : 's'}, but none passed its own file check — an interrupted download leaves a partial pack behind. Use “Download the default model & start MTPLX” on the checklist to re-fetch it, or pick another checkpoint on the MTPLX card in Models → LLMs.`;+ `its cache holds ${count} model${count === 1 ? '' : 's'}, but none passed its own file check — an interrupted download leaves a partial pack behind. Use “Download the default model & start MTPLX” on the checklist to re-fetch it, or pick another checkpoint on the MTPLX card in Models → Runtimes.`;/*** MTPLX's cache state, read WITHOUT invoking `mtplx`'s Homebrew wrapper before@@ -235,7 +235,7 @@ const rowProvisionAction = (row) => row?.provision?.action || null;async function pullMtplxDefaultCheckpoint({ emit, isCancelled }) {const binary = findCommandOnPath('mtplx');if (!binary) return { success: false, error: '`mtplx` was not found on PortOS\'s PATH. Restart PortOS so it picks up the new bin directory, then try again.' };- // Same disk-space guard the Models → LLMs MTPLX card runs before its own+ // Same disk-space guard the Models → Runtimes MTPLX card runs before its own// pull — this readiness-checklist button reaches the same `mtplx pull`// with no repo id, so it shares previewMtplxPull's cache path and its// (unknown-size, so effectively best-effort) preflight. A refusal throws;@@ -270,7 +270,7 @@ const SETUP_ROWS = Object.freeze({platforms: ['darwin'],unsupportedReason: MTPLX_UNSUPPORTED_REASON,async install({ emit }) {- // Same install `mtplxServerManager` runs from the Models → LLMs card:+ // Same install `mtplxServerManager` runs from the Models → Runtimes card:// upstream's Homebrew tap, with pip as the documented fallback for a host// without Homebrew. Neither runs the optional privileged fan-control helper.const result = await installMtplx({ onProgress: (p) => { if (p?.message) emit(p.message); } })@@ -299,7 +299,7 @@ const SETUP_ROWS = Object.freeze({// cache first and name what is actually there. Read HERE rather than// leaving it to the manager because the refusals differ by surface: this// checklist can offer the `pull-start` download button, and the messages- // above say so; the Models → LLMs launcher has no such button and names+ // above say so; the Models → Runtimes launcher has no such button and names// `mtplx pull` instead.const cache = await readMtplxCacheState();if (cache.state === 'unknown') {@@ -473,12 +473,12 @@ const SETUP_ROWS = Object.freeze({const result = await installLlamaServer({ onProgress: (p) => { if (p?.message) emit(p.message); } }).catch((err) => ({ success: false, error: err.message }));return result.success- ? { success: true, note: 'Choose a GGUF model on Models → LLMs to start llama-server — PortOS does not pick weights for you.' }+ ? { success: true, note: 'Choose a GGUF model on Models → Runtimes to start llama-server — PortOS does not pick weights for you.' }: result;},// llama-server takes a required model path, and the weights are a separate// multi-gigabyte download. Starting it unattended would mean guessing which- // checkpoint the user meant, so the Models → LLMs page keeps that step.+ // checkpoint the user meant, so the Models → Runtimes page keeps that step.start: null,}),});@@ -653,7 +653,7 @@ export async function runLocalRuntimeSetup(kind, { endpoint, emit = () => {}, is}if (!row.start) {- return { success: true, message: `${runtime.label} is installed. Pick a model on Models → LLMs to start it.` };+ return { success: true, message: `${runtime.label} is installed. Pick a model on Models → Runtimes to start it.` };}if (isCancelled()) return { success: false, error: 'Cancelled after the install — nothing was started.' };diff --git a/server/services/localRuntimeSetup.test.js b/server/services/localRuntimeSetup.test.jsindex d543128bed..75f1822f89 100644--- a/server/services/localRuntimeSetup.test.js+++ b/server/services/localRuntimeSetup.test.js@@ -284,7 +284,7 @@ describe('runLocalRuntimeSetup', () => {const result = await runLocalRuntimeSetup('llama', { endpoint: 'http://127.0.0.1:8080/v1' });expect(llama.installLlamaServer).toHaveBeenCalled();- expect(result).toMatchObject({ success: true, message: expect.stringMatching(/Models → LLMs/) });+ expect(result).toMatchObject({ success: true, message: expect.stringMatching(/Models → Runtimes/) });});it('stops after the install when the modal was closed', async () => {diff --git a/server/services/modelCapabilityTests.test.js b/server/services/modelCapabilityTests.test.jsindex a0a9251c03..44aae2b337 100644--- a/server/services/modelCapabilityTests.test.js+++ b/server/services/modelCapabilityTests.test.js@@ -500,7 +500,7 @@ describe('a runtime that is not running', () => {const report = await getCapabilityTestReport();expect(report.listErrors).toEqual([expect.objectContaining({- id: 'llama', label: 'llama.cpp', offline: true, recovered: 2, manageUrl: '/models/llms',+ id: 'llama', label: 'llama.cpp', offline: true, recovered: 2, manageUrl: '/models/llms-runtimes',})]);});diff --git a/server/services/providerReadiness.js b/server/services/providerReadiness.jsindex 38eee1f07d..7fe58d70fc 100644--- a/server/services/providerReadiness.js+++ b/server/services/providerReadiness.js@@ -37,6 +37,7 @@*/import { localRuntimeForProvider } from '../lib/localProviderRuntime.js';+import { getNavPageForPath } from '../lib/navManifest.js';import { isConfiguredDefaultModel } from '../lib/providerModels.js';import { probeOpenAiModels } from '../lib/openAiModelsProbe.js';import { findCommandOnPath } from '../lib/processEnv.js';@@ -254,15 +255,33 @@ function weightsDetail(runtime, weights) {return null;}+/**+ * The page that manages this runtime, named the way the sidebar names it.+ *+ * Every hint below used to say "Models → LLMs" outright, which was true while+ * that one page owned every local server. #7414 moved server lifecycle to+ * Models → Runtimes and left the weights catalog on LLMs, so a fixed breadcrumb+ * now sends half these runtimes to the wrong sibling. Resolving it from the+ * route each runtime ALREADY links to keeps the prose and the link agreeing,+ * per runtime, without this module knowing which pages exist.+ *+ * `null` for a runtime with no page (vLLM, SGLang) — callers drop the clause+ * rather than inventing a destination.+ */+const managePage = (runtime) => (+ runtime.manageUrl ? getNavPageForPath(runtime.manageUrl)?.breadcrumb || null : null+);+/** The `runtime` check — is the daemon's software here at all? */function runtimeCheck(runtime, { onPath, appInstalled, installed, reachable, setup }) {const detail = onPath ? `\`${runtime.command}\` is on PortOS's PATH.`: appInstalled ? `${runtime.label} is installed as an app.`: reachable ? `Something is already serving ${runtime.endpoint}.`: `\`${runtime.command}\` was not found on PortOS's PATH.`;+ const page = managePage(runtime);const fixHint = installed ? null: setupHint(setup, 'installs')- || (runtime.manageUrl ? `Install ${runtime.label} from Models → LLMs.`+ || (page ? `Install ${runtime.label} from ${page}.`: `Use the setup button below to install ${runtime.label}.`);return { id: 'runtime', label: `${runtime.label} installed`, ok: installed, detail, fixHint };}@@ -278,7 +297,8 @@ function serverCheck(runtime, { installed, result, setup, weights = 'unknown' })fixHint: null,};}- const start = `Start ${runtime.label}${runtime.manageUrl ? ' from Models → LLMs' : ''}.`;+ const page = managePage(runtime);+ const start = `Start ${runtime.label}${page ? ` from ${page}` : ''}.`;const fallback = installed? `${start} ${runtime.modelsHint}`: `Install ${runtime.label} first, then start it. ${runtime.modelsHint}`;@@ -344,13 +364,14 @@ function modelCheck(runtime, wanted, served, probeError = null, { weights = 'unk// mismatch fixable from EITHER end, so the hint names both rather than// implying the provider is the only thing that may move.const renameTo = served.length > 0 && runtime.aliasFlag ? wanted : null;+ const page = managePage(runtime);const fixHint = served.length === 0- ? (runtime.manageUrl- ? 'No model is loaded. Start a preset from Models → LLMs.'+ ? (page+ ? `No model is loaded. Start a preset from ${page}.`: 'No model is loaded. Use the setup controls on this card to load one.'): renameTo? `Same server, two names for it — nothing needs downloading. Use the button below to point this provider at ${listed}, or “Serve as \`${wanted}\`” to relaunch ${runtime.label} on the weights it already has under that id.`- : `This provider will send \`${wanted}\`, but the running server only accepts ${listed}. Use the button below to match them${runtime.manageUrl ? ', or change the loaded weights on the Models → LLMs page' : ''}.`;+ : `This provider will send \`${wanted}\`, but the running server only accepts ${listed}. Use the button below to match them${page ? ` (or change the loaded weights on ${page})` : ''}.`;return {id: 'model',label,@@ -408,7 +429,7 @@ function catalogCheck(runtime, offered, served, probeError = null, { weights = 'label,ok: false,detail,- fixHint: `Refresh this provider's models so it only offers ids the server serves${runtime.manageUrl ? ', or pull the missing ones from Models → LLMs.' : `. ${runtime.modelsHint}`}`,+ fixHint: `Refresh this provider's models so it only offers ids the server serves${managePage(runtime) ? `, or pull the missing ones from ${managePage(runtime)}.` : `. ${runtime.modelsHint}`}`,unservedModels: unserved,};}diff --git a/server/services/providerReadiness.test.js b/server/services/providerReadiness.test.jsindex fd5bcf8afd..44d26f86db 100644--- a/server/services/providerReadiness.test.js+++ b/server/services/providerReadiness.test.js@@ -171,7 +171,9 @@ describe('getProviderReadiness', () => {const model = checkById(readiness, 'model');expect(model.detail).toMatch(/no model loaded/);expect(model.servedModels).toEqual([]);- expect(model.fixHint).toMatch(/Models → LLMs/);+ // llama.cpp's presets live on Models → Runtimes since #7414; the hint is+ // derived from `manageUrl`, so it names that page rather than the catalog.+ expect(model.fixHint).toMatch(/Models → Runtimes/);expect(model.fixHint).not.toMatch(/button below/);});@@ -304,15 +306,17 @@ describe('getProviderReadiness', () => {});it('offers a one-click install+start for MTPLX instead of a setup-doc dead end', async () => {- // The whole point of the setup button: MTPLX has no Models → LLMs page entry,- // so before it existed the only answer here was "go read the vendor docs".+ // The whole point of the setup button: before it existed the only answer+ // here was "go read the vendor docs". MTPLX now also has a Models → Runtimes+ // card (#7414) — the in-place setup is still the shorter path, so the+ // checklist leads with it and the link is the fallback, never a doc URL.const restore = pinPlatform('darwin');const readiness = await getProviderReadiness({ id: 'opencode-mtplx', command: 'opencode', mtplxBacked: true, defaultModel: 'mtplx' },{ findCommand: () => null, probe: unreachable() },);restore();- expect(readiness.manageUrl).toBeNull();+ expect(readiness.manageUrl).toBe('/models/llms-runtimes');// Setup lives in the PortOS UI — the payload never points at a vendor doc.expect(readiness.docsUrl).toBeUndefined();expect(readiness.setup).toMatchObject({ runtime: 'mtplx', action: 'install-start', blockedReason: null });