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-extract-image-render-hook]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivy18f1a00c28de
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index c6b7acaab1..2c84111c09 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -40,6 +40,7 @@
- **[arccanvas-sync-shared-hook] Internal refactor: the Arc Canvas host-wiring duplicated between the Pipeline series page and the Story Builder arc step now sits behind one shared hook.** No user-visible change.
- **[extract-use-universe-load-hook] Internal refactor: the duplicated "load the linked universe" logic in pipeline stages now sits behind one reusable hook.** No user-visible change.
- **[series-llm-override-resolution-helper] Internal refactor: the series provider/model fallback that three pipeline LLM actions each inlined now lives in one shared helper.** No user-visible change.
+- **[story-builder-extract-image-render-hook] Internal refactor: the single-image render lifecycle the Story Builder characters step and universe base-style probe each re-implemented now sits behind shared hooks, and the Story Builder's provider/model picker reuses the shared selector.** No user-visible change.
- **[season-continuity-extract-honors-series-llm] Committing a season's episodes now extracts continuity canon with the series' chosen model.** When you accept a season breakdown, the automatic bible/continuity extraction uses the LLM pinned to that series (and honors a per-run model override) instead of falling back to your global active provider — matching how on-demand canon and scene extraction already behave.
- **[story-builder-refine-fallback-changes] Refining a reader map no longer reports edits it didn't make.** When a reader-map refinement comes back empty and your existing map is kept unchanged, the builder now reports no changes instead of listing the edits the discarded attempt had described.
diff --git a/PLAN.md b/PLAN.md
index ca31001066..3ad018025d 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -6,7 +6,7 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [.changel
Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
-- [ ] [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.
+- [ ] [unify-llm-picker-components] **Three provider/model pickers still hand-roll their own two-select markup + provider fetch instead of the shared `ProviderModelSelector`.** `SeriesLlmPicker.jsx` (bound to `series.llm`, saves on change, shows an "Active provider (…)" empty option), `FeatureProviderPicker.jsx`, and `writers-room/StagePromptModelPicker.jsx` each re-implement the `getProviders → two <select>` shape that `client/src/components/ProviderModelSelector.jsx` + `useProviderModels` already provide (StoryBuilder's `ProviderModelPicker` was migrated onto the shared selector in `story-builder-extract-image-render-hook`). Promote them onto the shared selector too, preserving each one's persistence + activeProvider-fallback semantics. Deferred from that item to keep its diff scoped — these three have divergent save-on-change / active-provider behavior that needs per-component care.
- [ ] [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-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).
- [ ] [hidream-requires-hf-token-fail-fast] **Probe HF token upfront for HiDream gated-encoder downloads.** `data.reference/media-models.json`'s HiDream entries carry `requiresHfToken: true`, but `scripts/z_image_turbo.py` `load_external_text_encoder()` does NOT call `probe_hf_auth()` the way `flux2_macos.py:265` does. A user without a valid HF token currently sees a multi-GB download attempt that fails with a 401 deep inside transformers. Mirror the FLUX.2 probe before invoking `transformers.from_pretrained()` on the gated encoder repo.