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

address review (ollama): surface the unprobeable-length window fallback, fix a stale parity-test pointer

[._.]/ Adam Eivyac55d0e066bd
diff --git a/client/src/lib/videoGenParams.js b/client/src/lib/videoGenParams.js
index c532f50a08..1d22db4429 100644
--- a/client/src/lib/videoGenParams.js
+++ b/client/src/lib/videoGenParams.js
@@ -21,8 +21,8 @@ export const CHUNK_OPTIONS = Array.from({ length: MAX_CHUNKS }, (_, i) => i + 1)
// Continuation context window — how many of the prior chunk's frames each
// subsequent chunk conditions on. Display-side mirror of
// `server/lib/videoContinuity.js` (which stays the authority: it defaults,
-// clamps, and picks the strategy). Pinned against drift by the parity block in
-// `videoGenParams.test.js`.
+// clamps, and picks the strategy). Pinned against drift by
+// `server/lib/videoContinuity.parity.test.js`.
//
// `0` is a real option, not "unset" — it opts back into seeding the next chunk
// from a single extracted last frame, which is what every runtime without an
diff --git a/server/services/videoGen/local.js b/server/services/videoGen/local.js
index 799bc4b8f6..c251578fc8 100644
--- a/server/services/videoGen/local.js
+++ b/server/services/videoGen/local.js
@@ -1882,6 +1882,15 @@ export async function generateChainedVideo({ chunks, chunkPrompts, contextFrames
// Cut the next hop's conditioning window off this chunk's tail. Both
// the count and the cut clamp: a window longer than the chunk simply
// conditions on all of it.
+ //
+ // An unprobeable length clamps the same way, which means the whole
+ // chunk becomes the window — the unbounded conditioning this exists
+ // to avoid, for one hop. It self-corrects (the next chunk's prefix
+ // trim measures the echo off the render, not off the window), but say
+ // so rather than letting the fallback be silent.
+ if (frames == null) {
+ console.log(`⚠️ Chunk ${i + 1}/${totalChunks} length unprobeable — conditioning the next chunk on the whole clip instead of a ${windowFrames}-frame window`);
+ }
const contextPath = join(tmpdir(), `chaincontext-${chunkId}.mp4`);
// eslint-disable-next-line no-await-in-loop
const cut = await trimVideoFromFrame(chunkPath, contextPath, {