commit fca07eb3a4f6cfd25d5f1ac2617a7b362c402635
parent 6ac75d61f31a1919a4f04aa20f879da2acfca9ab
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 28 Oct 2026 23:31:25 -0400
umtool: a page the frame-key model cannot read renders whole instead of failing the build
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/umtool/report-to-video/compose-chrome.mjs b/umtool/report-to-video/compose-chrome.mjs
@@ -961,9 +961,17 @@ export async function composeChrome({
// disk has drawn.
// Frame keys, for a page its module models (`frameKeys`): a whole-cut page
// over the whole cut, a window's, a segment's.
- const fk = keyed && sequence && ((wholeCut && !windowed) || mod.kind === "overlay-window" || mod.kind === "segment") && !preview && mod.frameKeys
- ? frameKeys({ html, region, assets, fps: rate, frames, version: hf.version, items: pageItems })
- : null;
+ // A page the model cannot read (an ease it does not know, a cue it cannot
+ // place) renders whole, as a page without frame keys always has.
+ let fk = null;
+ if (keyed && sequence && ((wholeCut && !windowed) || mod.kind === "overlay-window" || mod.kind === "segment") && !preview && mod.frameKeys) {
+ try {
+ fk = frameKeys({ html, region, assets, fps: rate, frames, version: hf.version, items: pageItems });
+ } catch (e) {
+ process.stderr.write(`chrome ${region}: no frame keys (${e?.message ?? e}); rendering it whole\n`);
+ fk = null;
+ }
+ }
if (keyed && sequence) {
const onDisk = await readFile(keyFile, "utf8").then((s) => s.trim(), () => null);
if (onDisk === key && (await framesOnDisk(target)) === frames) {