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
docs([runs-route-fallback-model-tests]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivy6c8dd79f1ea6
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 87e7b515c2..94ba315a9b 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -39,6 +39,7 @@- Bumped the bundled slashdo submodule (`lib/slashdo`) to latest `main` (`11cb89c`).- **[media-job-progress-persist-debounce-count-test]** Hardened the test suite so the media-job progress-save coalescing can't silently regress to a per-event disk write.- **[unify-media-job-sse-hook-imagegen-videogen]** Image Gen and Video Gen now share one live-render progress subscriber, consolidating duplicated streaming code with no change to behavior.+- **[runs-route-fallback-model-tests]** Added route-level tests pinning that an AI provider failover runs the fallback's own model (or its configured pin) rather than leaking the benched primary's model, so this behavior can't silently regress.- **[importer-progress-hook]** The Importer's live analyze-progress checklist now runs on a shared, tested progress hook instead of page-local socket wiring — no change to behavior.- **[mediacollections-deterministic-loadone-fastpath]** Universe/series media-collection lookups now resolve their linked bucket in one direct read instead of scanning every collection, trimming the work done on each cross-machine sync push (no user-facing change).- **[data-versioning-centralize-cosagents-settings] Saving settings is now crash-safe and serialized.** `settings.json` is written through the shared atomic temp-file/rename writer and overlapping saves run one at a time, so a mid-write crash can no longer truncate the file and two near-simultaneous settings changes can no longer clobber each other (no user-facing change).diff --git a/PLAN.md b/PLAN.mdindex d1462d4235..5692d3267d 100644--- a/PLAN.md+++ b/PLAN.md@@ -39,7 +39,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.- [ ] [llm-playground-cancel-in-flight] **No way to cancel an in-flight playground run (up to a 10-minute timeout).** The Run button only locks via `busy`; there's no client `AbortController` / Cancel affordance. Add a Cancel button wired to a client-side `AbortController` passed into `testLocalLlmModel`/`compareLocalLlmModels` (the request options already spread through `apiCore`); aborting the client fetch also closes the server reader early. Deferred as a UX feature, not a bug. (local-review CT, 2026-05-31).- [ ] [nav-route-manifest-coverage-guard] **Add a guard asserting every client `<Route path>` has a matching `NAV_COMMANDS` entry.** This PR shipped a page (`/local-llm/playground`) reachable only via in-page links because the route was added to `client/src/App.jsx` without a `server/lib/navManifest.js` entry — the existing fail-fast guard validates entry *shape* but can't catch a *missing* entry for an added route. Add a test (or boot-time check) that parses the `<Route path=…>` list out of `App.jsx` and asserts each non-param, non-redirect route resolves to a `NAV_COMMANDS` path. Must allow an explicit opt-out list for routes intentionally kept out of nav (param/detail sub-routes like `/shell/:sessionId`, `settings` → redirect) to avoid false positives. Deferred from the playground review: cross-cutting and carries real false-positive risk, so it deserves its own change rather than riding along. (local-review encoding, 2026-05-31).- [ ] [llm-playground-shared-target-key] **The `${backend}\n${modelId}` compare-target key is hand-inlined ~5×.** It appears in `LocalLlmTab.jsx` (compareTargetKeys, toggleCompareTarget, the delete-prune, the checkbox `checked`) and is re-implemented as `targetKey()` in `LocalLlmPlayground.jsx`. Extract a single `localLlmTargetKey({backend, modelId})` helper both files import, so the URL round-trip can't desync on a delimiter change. Deferred only because a new `client/src/lib` module triggers the barrel + README maintenance rule; fold it in next time either file is touched. (local-review SQ, 2026-05-31).-- [ ] [runs-route-fallback-model-tests] **Add a route-level test harness for `POST /api/runs` fallback-model execution.** `server/lib/aiToolkit/routes/runs.js` now derives `runModel` from `runData.usedFallback`/`fallbackModel` so an API/TUI/CLI fallback runs the fallback's model rather than leaking the primary's request model. There is currently no route-test harness anywhere in the repo (no supertest, no httpMocks), so this path is only covered transitively via the `createRun`/`getFallbackProvider` unit tests. Stand up a minimal route harness (fake `runnerService` with spied `createRun`/`executeApiRun`/`executeCliRun`/`executeTuiRun`) and assert: (a) non-fallback runs pass the request `model` unchanged for all three types; (b) a fallback swap with a configured `fallbackModel` runs that model on API (3rd arg), TUI (cloned `defaultModel`), and CLI (cloned `defaultModel`); (c) a fallback swap with no pin runs the fallback provider's own `defaultModel`, never the primary's model id. Skipped here to avoid building a route harness from scratch inside a bugfix PR.- [ ] [consolidate-client-url-normalize] **Consolidate client-side URL normalization.** Three components prepend `https://` to a bare URL with near-identical logic: `normalizeUrl` in `client/src/components/brain/tabs/LinksTab.jsx`, the inline block in `client/src/components/QuickBrainCapture.jsx` (~line 34, with `URL_PATTERN`/`DOMAIN_PATTERN` regexes), and `client/src/components/brain/tabs/FeedsTab.jsx` (~line 50, no `git@` handling). Extract one `normalizeUrl`/`isUrl` pair to a shared `client/src/utils/` helper and migrate all three. Must preserve each one's subtly different behavior (FeedsTab ignores `git@`; QuickBrainCapture splits detection from normalization).- [ ] [hidream-qwen-loras-runner-consumers] **Wire HIDREAM/QWEN through `client/src/pages/Loras.jsx`.** `imageGenResolutions.js` was extended on 2026-05-28 (`compatibilityKey` now returns HIDREAM/QWEN as their own keys). Still pending: `client/src/pages/Loras.jsx` `RUNNER_LABELS` / `RUNNER_BG_COLORS` / Top-LoRA section list omit HIDREAM/QWEN so the LoRA picker shows them as unlabeled / no badge color.- [ ] [wan22-hunyuan-setup-pin-shas] **Pin Wan22 / HunyuanVideo MLX clones to known-good commit SHAs.** `scripts/setup-image-video.sh` defaults `WAN22_PIN="${WAN22_PIN:-main}"` and `HUNYUAN_PIN="${HUNYUAN_PIN:-main}"`. Floating `main` on two community-maintained ports means every new install gets whatever HEAD is on those repos that day. Replace the default with a tested SHA for each; let users override via the env var.