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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge remote-tracking branch 'origin/main' into fix/init-image-gallery-duplication
[._.]/ Adam Eivyae8c3ab1561a
diff --cc .changelog/NEXT.mdindex 88c5b816d0,e7662fd212..412dc0a582--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -18,8 -18,10 +18,12 @@@## Fixed+- **Uploaded init/reference images stop duplicating into the gallery on every render** — an uploaded init image (i2i / edit renders) was staged into `data/images`, the very directory the gallery enumerates, so each render dropped a fresh `init-<uuid>.png` copy there and it surfaced as a duplicate "(no prompt)" card alongside the actual output. Init uploads now stage into `data/image-refs` (the sibling dir multi-reference uploads already use — served statically but excluded from the gallery listing), and the Codex i2i path re-anchors through `resolveImageInputPath` so it still finds them. A migration relocates the orphaned staged-upload files prior renders already left in the gallery (moved, not deleted, so they stay reachable as inputs). (`server/services/imageGen/prepareParams.js`, `server/services/imageGen/codex.js`, `scripts/migrations/085-relocate-staged-upload-images-out-of-gallery.js`)++ - **[issue-1183] Review Hub, System Health, and song video embeds lay out better** — the Review Hub now spreads its alert/CoS/todo/briefing sections across two columns on wide screens instead of one tall stack; the System Health page no longer carries an extra band of padding on larger screens; and a TikTok reference video in the song editor now scales to fit instead of getting clipped on shorter windows.++ - **[issue-1176] Brain Notes uses the full screen instead of a tall scroll** — the Notes tab now lays the vault/folder list and the note content out side-by-side and fills the available height, so browsing and reading a note no longer means scrolling past a stack of panels. On phones the list and the open note swap places — tapping a note shows it full-width with a back arrow to return to the list — instead of squeezing both into a narrow column.+- **Multi-reference FLUX.2 renders no longer crash on `guidance_scale`** — generating with reference images on a FLUX.2-klein model loads the guidance-distilled `Flux2KleinKVPipeline`, whose `__call__()` doesn't accept `guidance_scale`. The runner passed it unconditionally in the base kwargs (only the optional kwargs were signature-filtered), so every multi-reference render died with `TypeError: …got an unexpected keyword argument 'guidance_scale'`. `guidance_scale` is now gated on the live pipeline signature like `negative_prompt`/`strength`/`image`. The same run also silently dropped its LoRA — `set_adapters` raised `'tuple' / int` because `zip(*loaded)` hands diffusers tuples where it does arithmetic over the weights; the adapter names/scales are now passed as lists. (`scripts/flux2_macos.py`, `scripts/lora_utils.py`)- **Single LoRA + init/reference image no longer fails validation** — submitting a local FLUX render with exactly one LoRA selected *and* an init or reference image attached used to 400 with "expected array, received string." The multipart path sends one LoRA as a bare repeated field (the parser only builds an array for two or more), and the route never wrapped it before Zod validation. Single-LoRA submissions over multipart now coerce correctly (matching the existing reference-strengths handling). Two-or-more LoRAs and the JSON path were always fine. (`server/routes/imageGen.js`)