Skip to content

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

docs([llm-playground-preserve-partial-output]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy5359432671dc
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 87e7b515c2..3f0783da3c 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -65,5 +65,6 @@
- **[ref-watch-phosphene-teacache-extend-a2v-denoise] TeaCache now accelerates ltx2 Extend and A2V Stage 1.** `scripts/generate_ltx2.py` now patches the LTX-2 `extend` and `a2vid_two_stage` denoise-loop import sites (the modules where `ExtendPipeline`/`AudioToVideoPipeline` actually call `guided_denoise_loop`), activating the existing Stage-1 TeaCache controller only around Extend and A2V calls and clearing the gate afterward. TeaCache stays default-on for those slow paths, with `--no-teacache` to opt out and `--teacache-thresh` to trade fidelity for speed (~1.2× at the 0.5 default, up to ~3× at 1.5).
- **[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.
## Removed
diff --git a/PLAN.md b/PLAN.md
index d1462d4235..6cac5efae0 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -35,7 +35,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [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).