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(issue-1791): log scene-image hook unification + canceled-spinner fix to changelog

[._.]/ Adam Eivy49b35f8729d4
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index cead00bc7d..cf3b494117 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -24,6 +24,10 @@
- **[issue-1772] Music Video project media now federates with the project.** #1770 synced the project record but shipped an empty asset manifest, so a peer that subscribed to just one project received the metadata and beat-aligned scenes but none of the bytes. The push now bundles the project's referenced media: the **uploaded audio track** (as a `music` asset) and each scene's **rendered clip** (resolved from its `videoHistoryId` through `video-history.json` to the file under `data/videos/`, with a `<id>.mp4` fallback when the metadata row hasn't synced yet). A track-linked project ships no audio here — the linked track federates its own. Tombstones still ship nothing, and missing files are skipped so a stale reference never forces a peer to re-request bytes the sender doesn't have. (Per-scene reference-frame stills are bundled too, once Phase 1b populates them — see below.) (Closes #1772)
- **[issue-1760] Generate a reference frame for each scene on the director board (Phase 1b).** Each scene now has a **frame prompt** and a **Generate frame** button: it renders a still image (through your configured image generator — local, Codex, or external SD-API) that seeds the shot, suffixed with the project's global concept style. The frame thumbnail shows inline once it lands, and the button re-renders it on demand. Long local/Codex renders complete **durably in the background** — the image is filed onto the scene even if you navigated away or refreshed before it finished, and it appears the moment it's ready (no manual refresh). Because the attach goes through the normal project store, a generated frame also propagates to your federated machines. This is the first half of Phase 1b; turning the reference frame into a moving clip (image-to-video) and the beat-snapped render remain follow-ups on #1760. (`server/services/musicVideoSceneImageHook.js`, `server/services/musicVideo/events.js`, `server/routes/imageGen.js`, `server/services/sharing/peerSync.js`, `client/src/pages/MusicVideo.jsx`)
+## Scene image rendering
+
+- **[issue-1791] Canceling a scene render now clears its spinner immediately, and a late older render can't overwrite a newer frame.** Two long-standing rough edges in the background scene-image renderers — storyboard scenes in Writers' Room, catalog portraits, and the Music Video director board — are fixed together. First: canceling a render that was still **queued** (e.g. from the Media Jobs queue) used to leave its "Rendering…" spinner stuck until you reloaded the page, because a queued-then-canceled job never produced a client event; the cancellation now reaches the UI and clears the spinner right away, with no error toast, everywhere a scene spinner appears. Second: if you regenerated a scene frame and an **older** render happened to finish *after* the newer one, it could quietly revert the scene to the stale image — the storyboard and catalog now drop the out-of-order older render (matching the behavior the Music Video board already had), so the newest frame you asked for is the one that sticks (a stale catalog portrait is kept as a reference instead of being lost). Internally the four near-identical media-job completion hooks were consolidated behind one shared tag-dispatch mechanism so this guarantee stays uniform as new render targets are added. (Closes #1791)
+
## Devtools
- **[issue-1763] Image Cleaner is now a composable, opt-in pipeline with no upload-size cap (Phase 1).** The cleaner ran one fixed pipeline — it *always* stripped the C2PA chunk *and* applied a median+sharpen denoise, with a hard 40MB base64-in-JSON upload cap. It's now a step selector: **Strip metadata & C2PA** (default ON, lossless) and **Median + sharpen** (default OFF, lossy) run independently, with a per-step report card showing exactly what each pass did. The lossless metadata strip was widened from C2PA-only to also drop EXIF/XMP/IPTC and PNG text chunks (`tEXt`/`zTXt`/`iTXt`/`eXIf`) — pixels and color chunks left byte-identical. The upload switched from base64-in-JSON to **raw image bytes** (`express.raw`, 256MB transport ceiling), killing the ~33% base64 inflation and removing the 40MB cap entirely; the decompression-bomb pixel guard stays. The page now also shows the source resolution (W×H + megapixels) before cleaning. The honest "this does NOT defeat SynthID" messaging is preserved. The local diffusion SynthID-disruption pass, the ignore-zone mask, and resolution-aware diffusion options remain tracked in #1763 as the next phase. (`server/lib/imageClean.js`, `server/routes/imageClean.js`, `client/src/pages/ImageClean.jsx`, `client/src/services/apiMedia.js`)