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
scope the changelog to the ltx2 runtime, and seed mlx_video extend chains from a frame
[._.]/ Adam Eivy983801a2ba29
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 1e869dbd6d..692e1a2584 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -8,9 +8,11 @@- Internal: retiring a built-in video model now has a `RETIRED_VIDEO_MODELS` table in `server/lib/mediaModels.js` rather than living only in a migration. The migration alone would have been undone by the boot that applied it — the registry is cached at import time, before `bootstrapServices()` reaches the migration runner, and the next registry edit writes that stale cached object back to disk. The table is the load-time twin (same arrangement `applyVideoDisclosures`/migration 237 and `backfillKvRepo`/migration 064 already use), carries the successor id so a default naming a retired model repoints instead of falling through to whatever happens to be first, and shares the fork-preservation guard with the migration — asserted equal across the two copies so a typo in either can't silently no-op one half. `scripts/migrations/_lib.js` also gained `readMediaRegistry`/`writeMediaRegistry`, the strict-read → skip → platform-array shell that migration 244 and the new 247 were carrying verbatim.-- **Chunked video renders now carry motion across the joins — and an Extend chain no longer repeats itself.** Chaining several chunks into one longer clip used to seed each new chunk from a single extracted still, so the model got a pose with no velocity and the movement visibly stalled and restarted at every seam. Chunks now condition on a *window* of the previous chunk (about a second of footage by default) through LTX-2's extend pipeline, which carries the scene's motion and its current lighting across the join instead of just its last frame. There's a new **Continuity** control under Advanced to size that window — larger windows hold motion better but add render time per chunk, and "Last frame only" returns to the old behavior. Models without an extend pipeline (MiniMax H3, Wan, Hunyuan) keep seeding from the last frame, which is all they can do, and the control stays hidden for them rather than offering a setting that does nothing.+- **Chunked video renders on the LTX-2.3 (dgrauet) models now carry motion across the joins.** Chaining several chunks into one longer clip seeds each new chunk from a single extracted still, so the model gets a pose with no velocity and the movement visibly stalls and restarts at every seam. On the two models with a real extend pipeline — LTX-2.3 dgrauet Q4 and Q8 — chunks now condition on a *window* of the previous chunk (22 frames, about a second, by default), which carries the scene's motion and its current lighting across the join instead of just its final frame. A new **Continuity** control under Advanced sizes that window: larger windows hold motion better but add render time per chunk, and "Last frame only" returns to the previous behavior. Every other model keeps last-frame seeding, which is all its renderer can do — that includes the default LTX-2.3 Distilled Q4 and the other `mlx_video` LTX builds, which offer an Extend *mode* but implement it by extracting a last frame rather than by conditioning on a video — and the control stays hidden for them rather than offering a setting that does nothing.- This also fixes a real defect in multi-chunk **Extend** renders. Extending a video returns the source *plus* the new footage, and each chunk was being handed the whole clip before it — so chunk 2 re-contained chunk 1, chunk 3 re-contained both, and the stitched result replayed the same footage once per chunk while every chunk took longer to render than the last. A chunk now sees only a bounded window, and the part of its render that merely echoes that window is measured and cut back off before the chunks are joined, so the finished clip holds each frame exactly once and per-chunk render time stays flat however long the chain runs.+ This also fixes a real defect in multi-chunk **Extend** renders on those same two models. Extending a video returns the source *plus* the new footage, and each chunk was being handed the whole clip before it — so chunk 2 re-contained chunk 1, chunk 3 re-contained both, and the stitched result replayed the same footage once per chunk while every chunk took longer to render than the last. A chunk now sees only a bounded window, and the part of its render that merely echoes that window is measured and cut back off before the chunks are joined, so the finished clip holds each frame exactly once and per-chunk render time stays flat however long the chain runs.++- **A multi-chunk Extend render on the other LTX models no longer loses its conditioning after the first chunk.** Those renderers can't take a source video, and the prior clip being passed to them was silently dropped on the floor — with no still frame supplied either, every chunk after the first was effectively generated from the prompt alone, ignoring the footage it was supposed to continue. Those chains now seed each chunk from the previous chunk's last frame, the same way an image chain does.- **Picking a source image on Video Gen now shows you the images.** Every gallery slot on the Video Gen form — the image-to-video source frame, the FFLF first/last pair, each multi-keyframe row, and each IC-LoRA reference row — used to be a dropdown of bare filenames capped at the 50 newest renders, which meant choosing a frame by guessing at `ltx-1754...png`. Those dropdowns are now the same searchable thumbnail-grid picker the Image Gen image-to-image form uses: your whole gallery, with previews, full-text search across prompt/model/seed/LoRA, and universe/collection and type filters. Uploading a frame from disk works exactly as before.diff --git a/server/services/videoGen/local.test.js b/server/services/videoGen/local.test.jsindex 2bc19f9a98..a2d9656049 100644--- a/server/services/videoGen/local.test.js+++ b/server/services/videoGen/local.test.js@@ -466,6 +466,33 @@ describe('generateChainedVideo — continuation strategy (context window vs lastexpect(trims).toHaveLength(0);});+ it('seeds an extend chain from the last frame on a runtime that cannot take a source video', async () => {+ // mlx_video offers an Extend *mode* but implements it as last-frame i2v —+ // buildArgs never forwards extendFromVideoPath to its builder. Chunks 2++ // used to be handed that path with no source image, so the path was dropped+ // and they rendered from the prompt alone, ignoring the clip they were+ // meant to continue. They must fall back to the frame hop instead.+ const sourceVideoPath = join(MOCK_PATHS.videos, 'original-video.mp4');+ const { renders } = await runChain({+ modelId: 'ltx23_unified',+ mode: 'extend',+ extendFromVideoPath: sourceVideoPath,+ }, 2);++ expect(flagValue(renders[1], '--mode')).not.toBe('extend');+ // The source video never reaches this runtime's argv — it has no flag for+ // one. That silent drop is what left chunk 1 with nothing to continue from.+ expect(renders[0]).not.toContain(sourceVideoPath);+ expect(renders[1]).not.toContain(sourceVideoPath);+ // So chunk 1 must be given a still instead. Chunk 0 legitimately has none+ // (its conditioning was the dropped video), which is the contrast that+ // shows the frame is being supplied for chunk 1 specifically rather than+ // just inherited. The value is a tmpdir path — generateVideo resizes the+ // frame to the model resolution first — so assert presence, not location.+ expect(flagValue(renders[0], '--image')).toBeNull();+ expect(flagValue(renders[1], '--image')).toBeTruthy();+ });+it('keeps the first chunk of an extend chain whole, conditioned on the user source clip', async () => {// In an extend chain chunk 0's output is `user clip + extension`, and the// user clip belongs in the result exactly once — here. Trimming it would