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
fix(models): restore Retry on a failed 3D target load, cover the dataset deep link (#4728)
[._.]/ Adam Eivyded09b640e82
diff --git a/client/src/pages/Media3D.jsx b/client/src/pages/Media3D.jsxindex cb3b2ee98f..f959aaccff 100644--- a/client/src/pages/Media3D.jsx+++ b/client/src/pages/Media3D.jsx@@ -28,7 +28,7 @@ export default function Media3D() {const targetFromRoute = searchParams.get('target') || '';const glbFromRoute = searchParams.get('glb') || '';- const { targets, loading, error } = useImageTo3dTargets();+ const { targets, loading, error, reload: reloadTargets } = useImageTo3dTargets();const [pickerOpen, setPickerOpen] = useState(false);// Render lifecycle: a create kicks off an on-device render, then we poll the// record (via useAutoRefetch below) until it lands (ready → preview) or fails@@ -343,14 +343,28 @@ export default function Media3D() {<div className="flex flex-wrap items-center justify-between gap-3"><div className="min-w-0"><h2 className="text-sm font-semibold text-white">Runtimes</h2>- <p className="mt-1 text-xs text-gray-400">{runtimeSummary}</p>+ <p className={`mt-1 text-xs ${error ? 'text-port-error' : 'text-gray-400'}`}>{runtimeSummary}</p>+ </div>+ <div className="flex shrink-0 items-center gap-2">+ {/* A failed registry read also gates Generate (no target resolves), so+ the recovery has to be reachable from here — not only by reloading+ the page. */}+ {error && !loading && (+ <button+ type="button"+ onClick={reloadTargets}+ className="rounded-md border border-port-error/50 px-3 py-1.5 text-xs text-port-error hover:bg-port-error/20"+ >+ Retry+ </button>+ )}+ <Link+ to="/models/3d"+ className="inline-flex items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs text-gray-300 hover:border-port-accent hover:text-white"+ >+ <Settings2 className="h-3.5 w-3.5" /> Manage runtimes+ </Link></div>- <Link- to="/models/3d"- className="inline-flex shrink-0 items-center gap-1.5 rounded-md border border-port-border px-3 py-1.5 text-xs text-gray-300 hover:border-port-accent hover:text-white"- >- <Settings2 className="h-3.5 w-3.5" /> Manage runtimes- </Link></div></section>diff --git a/client/src/pages/Media3D.test.jsx b/client/src/pages/Media3D.test.jsxindex 52bf803a99..1f897048ab 100644--- a/client/src/pages/Media3D.test.jsx+++ b/client/src/pages/Media3D.test.jsx@@ -69,10 +69,16 @@ describe('Media3D — runtime state', () => {expect(screen.getByRole('link', { name: /manage runtimes/i }).getAttribute('href')).toBe('/models/3d');});- it('surfaces a target-load failure in the runtime summary', async () => {+ it('surfaces a target-load failure and recovers from it without a page reload', async () => {+ // The same failed list also gates Generate (no target resolves), so leaving the+ // error with no Retry strands the user on a page whose primary action is dead.getImageTo3dTargets.mockRejectedValueOnce(new Error('boom'));renderAt();expect(await screen.findByText('boom')).toBeInTheDocument();++ getImageTo3dTargets.mockResolvedValueOnce({ targets: [target({ installed: true })] });+ fireEvent.click(screen.getByRole('button', { name: /retry/i }));+ expect(await screen.findByText(/1 of 1 ready on this host/i)).toBeInTheDocument();});it('does not host the install controls any more', async () => {diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex fe77529d5c..557afcf925 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -3,7 +3,10 @@// Entry: { id, path, label, section, aliases?, keywords?, previousPaths? }.// See CLAUDE.md "Command Palette & Voice Nav" for the contract.//-// `previousPaths` lists every path this page has ANSWERED TO BEFORE. Bookmarks,+// `previousPaths` lists every path this page has ANSWERED TO BEFORE — including+// its parameterized drill-downs, written with the OLD route's param name (the+// guard matches the `<Route path>` literally, and a deep link into a detail view+// is exactly the kind of bookmark that breaks silently). Bookmarks,// stale palette history, and links held by other installs all still say the old// path, so a move that drops the redirect 404s them — and nothing else notices,// because every other guard here only looks at where a route points now. Declare@@ -278,7 +281,7 @@ export const NAV_COMMANDS = [{ id: 'nav.settings.embeddings', path: '/models/embeddings', label: 'Embeddings', section: 'Models', 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', 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.media.loras', path: '/models/loras', label: 'LoRAs', section: 'Models', 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: 'LoRA Training', section: 'Models', previousPaths: ['/media/training'], aliases: ['training', 'lora-training', 'train-lora', 'datasets', 'character-lora'], keywords: ['fine-tune', 'dataset', 'caption', 'dreambooth', 'character consistency', 'train', 'flux lora'] },+ { id: 'nav.media.training', path: '/models/training', label: 'LoRA Training', section: 'Models', 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 Models', section: 'Models', 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'] },{ id: 'nav.models.performance', path: '/models/performance', label: 'Model Performance', section: 'Models', aliases: ['model-performance', 'performance', 'assessments', 'model-assessments', 'benchmark-models', 'tuning'], keywords: ['measure', 'assessment', 'benchmark', 'throughput', 'chars per second', 'ttft', 'context', 'tuning', 'llama.cpp', 'mtplx', 'vllm', 'which model', 'fastest model'] },// Absorbed the Dev Tools 'Model Resources' page (#4728), so its aliases anddiff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.jsindex 0a465b99f2..3482bf333b 100644--- a/server/lib/navManifest.test.js+++ b/server/lib/navManifest.test.js@@ -556,6 +556,9 @@ describe('nav coverage — every navigable App.jsx route has a manifest entry','/media/training','/settings/embeddings','/system-resources/models',+ // The dataset workbench was its own deep-linkable path, and a bookmark into+ // one dataset breaks just as silently as the index.+ '/media/training/:datasetId',].filter((p) => !declared.has(p));expect(missing).toEqual([]);});