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([qwen-image-edit-init-image-required]): remove from PLAN.md and log to changelog

[._.]/ Adam Eivya20e5be76321
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index ad894a3947..3d5a832387 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -87,6 +87,7 @@
## Fixed
+- **[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.
- **[story-builder-goto-step-gate-divergence] Story Builder no longer jumps to a step it didn't actually switch to.** If switching steps (clicking the step rail, or the "Lock & continue" auto-advance) failed on the server, the builder used to land on the target step anyway while the saved position stayed behind — so reopening the story dropped you back where you started. Both paths now stay put on a failed switch, show a brief notice, and resync the step rail to your real position.
diff --git a/PLAN.md b/PLAN.md
index cad1579565..9bbd4c0c57 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -17,7 +17,6 @@ Claimable, well-specified, no decision needed — `/claim`-able. Unordered.
- [ ] [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.
-- [ ] [qwen-image-edit-init-image-required] **Qwen-Image-Edit dispatches without its required init image.** `qwen-image-edit` (registry `mediaModels.js:202`) loads `QwenImageEditPipeline` which requires an `image` arg; the entry is exposed in the normal image-gen model picker which permits text-only submission. Today the user picks the model, submits a text prompt, and the runner crashes deep inside the diffusers pipeline. Options: (a) add an `editOnly: true` flag + validate at `routes/imageGen.js` POST; (b) filter the model from the picker when no source image is uploaded; (c) reroute through a future `/api/image-gen/edit` endpoint.
- [ ] [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.
- [ ] [flux2-runner-sidecar-tests] **Test coverage for `generateImage`'s sidecar `meta` payload.** `server/services/imageGen/local.test.js` exercises `buildArgs` but never asserts on the sidecar `meta` object built inside `generateImage` — including the `referenceImageFilenames` + `referenceImageStrengths` fields. A focused test would need to either factor the meta-builder out of `generateImage` so it's callable without spawning Python, or stub the spawn + assert on the persisted sidecar JSON.
- [ ] [extract-use-universe-load-hook] **Extract a `useUniverse(universeId)` load hook.** `client/src/components/pipeline/stages/StoryboardsStage.jsx` (~line 57) and `NounsStage.jsx` (~line 149) now run a byte-identical `useMounted` + `let cancelled` + `getUniverse(series.universeId).then(...).catch(...)` effect to load the linked universe record. Extract a `client/src/hooks/useUniverse.js` returning `[universe, loading, error]` (handling the mount/cancel guards internally), register it in the hooks `index.js` barrel + README, and migrate both call sites. Deferred from the wardrobe-picking PR: migrating `NounsStage` is outside that diff's scope and the new module trips the barrel maintenance rule. Surfaced by /simplify (reuse, 2026-06-01).