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([style-probe-image-uses-draft-not-saved]): remove from PLAN.md and log to changelog
[._.]/ Adam Eivy34e256b61c1f
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1e35011edf..d9affa2361 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -68,5 +68,6 @@- **[dup-detect-collection-count-undercount] Duplicate-universe suggestions now count collection items correctly.** On the Sharing → Duplicates tab, a universe that owned more than one media collection had its collection-item total reported as just the last collection's size rather than the sum, which could understate which duplicate held the most content; the count now adds up every linked collection.- **[universe-create-named-preserves-draft] Naming a universe from the selector's "Create" option no longer discards the idea you just generated.** In the Universe Builder, if you expanded a starter idea into a draft (starter prompt, categories, canon…) and then typed a name in the universe search box, clicking the "Create «name»" row in the dropdown created a blank universe carrying only the name — silently obliterating all the generated content. That row now preserves the in-progress draft (it persists the full draft, same as the header Create button) when no universe is currently open; the blank-new-record behavior is kept only for typing a new name while an existing universe is already selected, where cloning the open universe would be wrong.- **[llm-playground-preserve-partial-output] A timed-out Local LLM Playground run now keeps the text the model already produced.** When a playground chat or comparison run hit its timeout (or was otherwise interrupted) mid-response, the result showed only the timeout error and discarded everything the model had streamed so far. The partial output is now shown beneath the timeout message with a "Partial" badge, can be copied, and is saved on the run record — so a slow model that didn't quite finish no longer leaves you with nothing.+- **[style-probe-image-uses-draft-not-saved] The Universe Builder base-style image won't render from unsaved style edits anymore.** The base-style probe is built from your current embrace/avoid influences, but its rendered image is pinned to the saved universe — so taking a probe with unsaved influence changes could attach an image the saved world never actually had (and it stuck around even after you discarded the edits). The probe's render button is now disabled, with a "save your style changes first" hint, until your influence edits are saved.## Removeddiff --git a/PLAN.md b/PLAN.mdindex f8070f3bc2..978fb483a7 100644--- a/PLAN.md+++ b/PLAN.md@@ -33,7 +33,7 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.- [ ] [story-builder-refine-returns-provider] **`refineStep('readerMap')` drops `providerId`/`model` from the conductor's return.** Every other refine branch surfaces them so the route/UI can show which model ran; the readerMap branch destructures `runId` only. Two-line fix (local-review SC-6, 2026-05-27).- [ ] [story-builder-refine-fallback-changes] **`refineReaderMap` returns `changes`/`rationale` describing a refine attempt that was discarded in favor of the existing map.** When the LLM payload is empty, the function falls back to `arc.readerMap` but still surfaces the change list the LLM described. Fix: when falling back, clear `changes` and `rationale`. (local-review SC-7, 2026-05-27).- [ ] [story-builder-hash-shape-vs-derivation-tests] **storyBuilder.test.js asserts `upstreamHash` is a 64-char hex string but never that it equals `hashUpstream(stepId, inputs)`.** A buggy implementation that always stamped `hashUpstream('idea', null)` would also pass. Import `hashUpstream` and assert exact equality so future input-set drift surfaces as a test failure. (local-review SC-8, 2026-05-27).-- [ ] [style-probe-image-uses-draft-not-saved] **`<StyleProbeImage>` in Universe Builder renders against the in-memory draft but persists the resulting filename to the SERVER's saved record.** A probe image semantically built from in-progress styleNotes/influences gets pinned to a saved universe whose actual style fields are still on the prior values; once the user discards the draft, the styleImageRefs persists on a record that never had those style notes. Either gate `canRender` on `!draftDirty`, or warn when the draft has uncommitted style changes. (local-review C-5, 2026-05-27).+- [ ] [llm-playground-preserve-partial-output] **A timed-out / aborted playground run discards everything the model already streamed.** `streamChatCompletion` (`server/services/localLlmPlayground.js`) accumulates `output` locally; on an `AbortError` it throws, the `runLocalLlmTest` catch returns `text: ''`, and `ResultPanel` (`client/src/pages/LocalLlmPlayground.jsx`) shows only the error (the `result.error ? <error> : <pre>{result.text}</pre>` branch hides text whenever error is set). Surface the partial stream: thread the accumulated text out of the throw (or accumulate it in `runLocalLlmTest`'s `onChunk`) and render it alongside the timeout error. Deferred — needs a UI change to show partial-text-plus-error, not just a server tweak. (local-review SS, 2026-05-31).- [ ] [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).