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([story-builder-refine-returns-provider]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivye8e78bd09edc
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index cd4c73c42b..246cea2c90 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -88,6 +88,7 @@
## Fixed
+- **[story-builder-refine-returns-provider] Refining a Story Builder reader map or plot arc now reports which AI model ran.** Those two refine actions used to omit the provider/model from their result, so the completion notice couldn't say which model produced the change the way the other Story Builder refine steps do; both now include it.
- **[qwen-image-edit-init-image-required] Qwen-Image-Edit now asks for a source image instead of crashing on a text-only prompt.** Qwen-Image-Edit only edits an existing picture, so submitting just a text prompt used to fail deep in the renderer. The Image Gen page now marks its source image as required, disables Generate until you upload one, and the server refuses a text-only edit request with a clear message.
- **[story-builder-import-partial-commit] A failed import in Story Builder can now be retried without duplicating issues.** When importing a finished work, if the universe, arc, and characters saved but creating the issues failed partway, the rolled-back issues used to be re-sent in full on the next click — risking duplicate issues and overwriting the arc you'd just imported. The "Import & start building" button now recognizes that case, flips to "Retry issues & start building", and re-creates only the issues — leaving the already-saved arc, seasons, and canon untouched — matching how the standalone Importer already recovers.
- **[story-builder-import-commit-ok-session-fail] Retrying an import that finished saving but failed to open the builder no longer re-creates everything.** If an import committed successfully (universe, arc, and issues all saved) but the final step of opening the Story Builder hit an error, clicking the button again now only retries opening the builder — it no longer re-runs the whole import, so your issues aren't duplicated and the arc isn't overwritten. The button reads "Retry starting the builder" in that state to make the narrower retry clear.
diff --git a/PLAN.md b/PLAN.md
index c7e231dfbc..d96b2a8388 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -8,7 +8,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [arccanvas-sync-shared-hook] **Cleanup: extract the ArcCanvas host-wiring into a shared hook.** `client/src/pages/PipelineSeries.jsx` and `client/src/pages/StoryBuilder.jsx` (the `StoryBuilderDetail` wiring added by `story-builder-embed-arccanvas`) both hand-roll the same `lastSavedRef` + `updateSeriesFromServer` + `handleIssuesUpdate` + `flushPending` contract ArcCanvas expects. The two `flushPending` field-sets diverge (PipelineSeries flushes 10 bible fields + cover/style overrides; StoryBuilder only 6 and treats it as a near-no-op), and PipelineSeries also carries `patchSeries`/`handleSave`. Extract `useArcCanvasSync({ series, setSeries, setIssues, flushFields })` → `{ updateSeriesFromServer, handleIssuesUpdate, flushPending }` in `client/src/hooks/` and migrate both callers. Deferred from the embed PR because it's a 2-file refactor (touches PipelineSeries) with its own review surface.
- [ ] [story-builder-extract-image-render-hook] **Cleanup: the image-render lifecycle is duplicated 5×.** `StepCharacters` (StoryBuilder.jsx) + `StyleProbeImage.jsx` each re-implement `getSettings → readPipelineImageSettings → imageCfg` + a single-render jobId lifecycle, and `StepCharacters` near-verbatim copies `UniverseCanonSection`'s styled-render-and-persist routine. Extract a `useImageRenderSettings()` + `useSingleImageRender({ buildPrompt, onComplete })` hook and a shared canon styled-render helper. Also: `ProviderModelPicker` (StoryBuilder.jsx) duplicates the Importer's `LlmPicker` + `SeriesLlmPicker`/`FeatureProviderPicker`/`StagePromptModelPicker` — promote one shared provider/model picker.
-- [ ] [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).
- [ ] [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).