Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Editor prompt expand test: caret after a middle insert and a replaced selection

Bowen Xue9c4c3efa0332
diff --git a/web/editor.css b/web/editor.css
index 694a5ff..5d7837d 100644
--- a/web/editor.css
+++ b/web/editor.css
@@ -1,5 +1,5 @@
/* Share the studio shell and header geometry; only the editor rows differ. */
-.fv-studio.fv-editor{display:grid;grid-template-columns:264px minmax(0,1fr);grid-template-rows:auto minmax(272px,1fr) 40px var(--fv-ed-generation-row,56px) 40px minmax(var(--fv-ed-tracks-min,174px),clamp(174px,calc(100dvh - 704px),236px));animation:none}
+.fv-studio.fv-editor{--fv-ed-generation-row:max-content;display:grid;grid-template-columns:264px minmax(0,1fr);grid-template-rows:auto minmax(max(96px,calc(272px - var(--fv-ed-description-growth,0px))),1fr) 40px var(--fv-ed-generation-row,56px) 40px minmax(var(--fv-ed-tracks-min,174px),clamp(174px,calc(100dvh - 704px),236px));animation:none}
.fv-studio.fv-editor[data-generation-ready=false]{--fv-ed-generation-row:0px}
@media(min-width:1280px){.fv-studio.fv-editor[data-adjust-available=true]{grid-template-columns:264px minmax(0,1fr) 264px}}
.fv-editor *{box-sizing:border-box}
@@ -60,7 +60,7 @@
.fv-ed-transport{grid-column:2;grid-row:3;display:flex;align-items:center;justify-content:center;gap:12px}
.fv-editor .fv-ed-play{width:36px;height:36px;border-radius:50%;padding:0;background:transparent}
.fv-ed-time{font-size:13px;font-variant-numeric:tabular-nums;font-family:ui-monospace,monospace;min-width:100px}
-.fv-ed-genbar{grid-column:1/-1;grid-row:4;display:flex;align-items:center;gap:12px;padding:0 16px;border-top:1px solid var(--fv-border);border-bottom:1px solid var(--fv-border);background:var(--fv-card);min-width:0}
+.fv-ed-genbar{grid-column:1/-1;grid-row:4;display:flex;align-items:center;gap:12px;min-height:56px;padding:9px 16px;border-top:1px solid var(--fv-border);border-bottom:1px solid var(--fv-border);background:var(--fv-card);min-width:0}
.fv-ed-genbar .fv-ed-description{width:auto}
.fv-ed-clip[data-state=running] .fv-block-progress.fv-ed-block-progress{display:grid}
.fv-ed-gen-hint{display:flex;font-size:13px;color:var(--fv-muted);flex:1;min-width:0;overflow:hidden;white-space:pre}
@@ -161,7 +161,7 @@
.fv-ed-rename{width:100%;margin-bottom:4px}
.fv-ed-notice{position:absolute;bottom:340px;right:16px;max-width:min(560px,calc(100vw - 32px));border:1px solid var(--fv-border);background:var(--fv-card);padding:10px 14px;border-radius:8px;z-index:9;color:var(--fv-ink)}
@media(max-width:680px){
- .fv-studio.fv-editor{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(180px,1fr) 40px var(--fv-ed-generation-row,auto) 40px 236px;overflow:hidden}
+ .fv-studio.fv-editor{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(max(0px,calc(180px - var(--fv-ed-description-growth,0px))),1fr) 40px var(--fv-ed-generation-row,auto) 40px 236px;overflow:hidden}
.fv-editor .fv-header{overflow-x:auto}
.fv-editor .fv-ed-name{font-size:13px;max-width:112px;flex:1;padding:0 2px}
.fv-editor .fv-ed-icon{width:28px;flex:none;font-size:20px}
@@ -201,7 +201,7 @@
/* Keep the editor's controls visible instead of clipping them at phone widths. */
@media(max-width:480px){
- .fv-studio.fv-editor{grid-template-rows:auto minmax(96px,1fr) 40px var(--fv-ed-generation-row,max-content) auto minmax(160px,236px)}
+ .fv-studio.fv-editor{grid-template-rows:auto minmax(max(0px,calc(96px - var(--fv-ed-description-growth,0px))),1fr) 40px var(--fv-ed-generation-row,max-content) auto minmax(160px,236px)}
.fv-studio.fv-editor:has(.fv-ed-gen-failure:not([hidden])){grid-template-rows:auto minmax(0,1fr) 40px var(--fv-ed-generation-row,max-content) auto minmax(160px,236px)}
.fv-studio.fv-editor .fv-header:has(.fv-view-switch){grid-template-columns:minmax(0,1fr) auto}
/* One row: undo, split, delete and zoom; editor_toolbar_more.js moves the rest behind ⋯. */
diff --git a/web/editor.js b/web/editor.js
index 6dc9f6f..6424320 100644
--- a/web/editor.js
+++ b/web/editor.js
@@ -27,7 +27,7 @@ import {createFirstRunGuide} from './first_run_guide.js';
import {createEditorFailures} from './editor_failure.js';
import {fitEditorHeader} from './editor_header_fit.js';
import {optionalText} from './optional_inputs.js';
-const editorStyles = Promise.all(['result_actions.css', 'editor.css', 'editor_tracks.css', 'editor_frame.css', 'editor_adjust.css', 'editor_adjust_picture.css', 'editor_preview_picture.css', 'editor_select.css', 'editor_menu.css', 'editor_text.css', 'editor_notes.css', 'editor_transport.css'].map(name => {
+const editorStyles = Promise.all(['result_actions.css', 'editor.css', 'editor_expand.css', 'editor_tracks.css', 'editor_frame.css', 'editor_adjust.css', 'editor_adjust_picture.css', 'editor_preview_picture.css', 'editor_select.css', 'editor_menu.css', 'editor_text.css', 'editor_notes.css', 'editor_transport.css'].map(name => {
const style = document.createElement('link'); style.rel = 'stylesheet'; style.href = new URL(name, import.meta.url).href;
const ready = 'sheet' in style ? new Promise(resolve => { style.onload = style.onerror = resolve; }) : Promise.resolve();
document.head.append(style); return ready;
diff --git a/web/editor_expand.css b/web/editor_expand.css
new file mode 100644
index 0000000..d0de662
--- /dev/null
+++ b/web/editor_expand.css
@@ -0,0 +1,14 @@
+.fv-ed-description-box{position:relative;display:flex;flex:1;min-width:0}
+.fv-ed-description-box .fv-ed-description{width:100%;min-height:36px;max-height:108px;line-height:18px;padding:8px 36px 8px 10px;border-radius:var(--fv-r-sm);resize:none;overflow-y:hidden}
+.fv-ed-expand,.fv-editor .fv-ed-expand{position:absolute;right:4px;bottom:4px;width:26px;height:26px;padding:4px;min-height:0;border:0;background:var(--fv-bg);color:var(--fv-muted)}
+.fv-ed-expand svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
+.fv-ed-expand-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:60vw;height:70dvh;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--fv-border);border-radius:var(--fv-r-lg);background:var(--fv-card);color:var(--fv-ink)}
+.fv-ed-expand-dialog[open]{display:flex;flex-direction:column;gap:16px}
+.fv-ed-expand-dialog::backdrop{background:color-mix(in srgb,var(--fv-bg) 75%,transparent)}
+.fv-ed-expand-dialog .fv-ed-expand-text{box-sizing:border-box;flex:1;min-height:0;height:auto;max-height:none;width:100%;resize:none;padding:12px;border:1px solid var(--fv-border);border-radius:var(--fv-r-sm);background:var(--fv-bg);color:var(--fv-ink);font:14px/1.6 var(--fv-font)}
+.fv-ed-expand-buttons{display:flex;justify-content:flex-end;gap:8px;flex:none}
+.fv-ed-expand-buttons button{height:36px;padding:0 16px;border-radius:var(--fv-r-sm);font:500 13px/1.4 var(--fv-font)}
+@media(max-width:680px){.fv-ed-description-box{width:100%;flex:1 1 100%;order:-1}}
+@media(max-width:400px){.fv-ed-expand-dialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:16px}}
+.fv-ed-expand-note{flex:none;min-height:0;font:13px/1.4 var(--fv-font);color:var(--fv-muted)}
+.fv-ed-expand-note:empty{display:none}
diff --git a/web/editor_expand.js b/web/editor_expand.js
new file mode 100644
index 0000000..2442a30
--- /dev/null
+++ b/web/editor_expand.js
@@ -0,0 +1,140 @@
+import {isolateDialogKeys, listenDialogKey, routeDialogKey} from './dialog_keys.js';
+
+let style;
+function loadStyle() {
+ if (style) return;
+ const href = new URL('editor_expand.css', import.meta.url).href;
+ style = [...document.querySelectorAll('link')].find(link => link.href === href);
+ if (style) return;
+ style = document.createElement('link');
+ style.rel = 'stylesheet'; style.href = href;
+ document.head.append(style);
+}
+const el = (tag, cls, text) => {
+ const node = document.createElement(tag); node.className = cls;
+ if (text != null) node.textContent = text;
+ return node;
+};
+
+// The supplied textarea owns the text. Both views use its input handler; callers
+// changing its value or generation policy programmatically send input or change.
+export function createExpandButton({t = en => en, textarea, onGenerate, canGenerate, onDraft = () => {}}) {
+ loadStyle();
+ const element = el('button', 'fv-ed-expand'); element.type = 'button';
+ element.title = t('Expand', '放大'); element.setAttribute('aria-label', element.title);
+ const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
+ svg.setAttribute('viewBox', '0 0 24 24'); svg.setAttribute('aria-hidden', 'true');
+ const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
+ path.setAttribute('d', 'M14 4h6v6M20 4l-7 7M10 20H4v-6M4 20l7-7'); svg.append(path); element.append(svg);
+ let reading = {text: null, top: 0, from: 0, to: 0}, dialog = null, large = null, generate = null, notice = null, seen = '', pending = false, disposed = false, cleanups = [];
+ const writable = () => !textarea.disabled && !textarea.readOnly;
+ const allowed = () => writable() && !pending && !!canGenerate();
+ function sync() {
+ if (disposed) return;
+ element.disabled = !writable();
+ if (!dialog) return;
+ // The small box changed from outside (another part selected, text restored): the dialog follows.
+ if (textarea.value !== seen) { seen = textarea.value; large.value = seen; }
+ large.disabled = !writable(); generate.disabled = !allowed();
+ }
+ async function submit() {
+ if (!allowed()) return;
+ commit(); notice.textContent = '';
+ pending = true; sync();
+ let reason = '';
+ try { reason = await onGenerate(); }
+ finally {
+ pending = false;
+ // The editor's own reason sits under this dialog, so it is said here too.
+ if (notice) { notice.textContent = typeof reason === 'string' ? reason : ''; if (notice.textContent && !large.value.trim()) large.focus(); }
+ sync();
+ }
+ }
+ function close() {
+ if (!dialog) return;
+ commit(); reading = {text: large.value, top: large.scrollTop, from: textarea.selectionStart, to: textarea.selectionEnd};
+ const current = dialog; dialog = large = generate = notice = null;
+ cleanups.splice(0).forEach(stop => stop());
+ current.oncancel = current.onclose = null;
+ if (current.open) current.close(); current.remove();
+ if (element.isConnected) element.focus({preventScroll: true});
+ }
+ // The dialog's text reaches the small box as one native edit that leaves its earlier undo history alone;
+ // the small box is only written to when the dialog is submitted or closed.
+ function commit() {
+ if (!dialog || !textarea.isConnected) return;
+ if (large.value === textarea.value) { textarea.setSelectionRange?.(large.selectionStart, large.selectionEnd); return; }
+ if (!writable()) return;
+ const typed = large.value, shown = dialog.open, [from, to] = [large.selectionStart, large.selectionEnd];
+ // A modal dialog makes the page behind it inert, so the small box is only editable while it is closed.
+ if (shown) dialog.close();
+ textarea.focus({preventScroll: true}); textarea.select?.();
+ const done = typed ? document.execCommand?.('insertText', false, typed) : document.execCommand?.('delete');
+ if (!done || textarea.value !== typed) { textarea.value = typed; textarea.dispatchEvent(new Event('input', {bubbles: true})); }
+ textarea.setSelectionRange?.(from, to);
+ seen = textarea.value;
+ if (shown) { dialog.showModal(); large.focus(); large.setSelectionRange?.(from, to); }
+ }
+ function open() {
+ sync();
+ if (disposed || element.disabled || dialog) return;
+ dialog = el('dialog', 'fv-ed-expand-dialog');
+ dialog.setAttribute('role', 'dialog'); dialog.setAttribute('aria-modal', 'true');
+ dialog.setAttribute('aria-label', t('Expand', '放大'));
+ seen = textarea.value;
+ large = el('textarea', 'fv-ed-expand-text'); large.value = seen;
+ large.setAttribute('aria-label', textarea.getAttribute('aria-label') || t('Expand', '放大'));
+ notice = el('div', 'fv-ed-expand-note'); notice.setAttribute('role', 'status');
+ large.oninput = () => {
+ notice.textContent = '';
+ // The editor's draft follows every keystroke; the small box itself is written at close or generate.
+ if (writable()) onDraft(large.value);
+ sync();
+ };
+ const buttons = el('div', 'fv-ed-expand-buttons');
+ generate = el('button', 'fv-primary', t('Generate', '生成')); generate.type = 'button'; generate.onclick = submit;
+ const dismiss = el('button', '', t('Close', '关闭')); dismiss.type = 'button'; dismiss.onclick = close;
+ buttons.append(generate, dismiss); dialog.append(large, notice, buttons);
+ cleanups.push(listenDialogKey(dialog, 'keydown', event => {
+ if (event.isComposing || event.keyCode === 229) return;
+ if (event.key === 'Escape') { event.preventDefault(); close(); }
+ else if (event.key === 'Enter' && (event.ctrlKey || event.metaKey)) {
+ event.preventDefault(); if (!event.repeat) submit();
+ } else if (event.key === 'Tab') {
+ event.preventDefault();
+ const controls = [large, generate, dismiss].filter(node => !node.disabled);
+ const index = controls.indexOf(document.activeElement);
+ controls[(index + (event.shiftKey ? -1 : 1) + controls.length) % controls.length]?.focus();
+ }
+ }));
+ cleanups.push(isolateDialogKeys(dialog, event => routeDialogKey(event, dialog)));
+ dialog.oncancel = event => { event.preventDefault(); event.stopPropagation(); close(); };
+ dialog.onclose = () => { if (dialog && !dialog.open) close(); };
+ const parent = textarea.closest('dialog') || document.body;
+ parent.addEventListener('close', close); cleanups.push(() => parent.removeEventListener('close', close));
+ // A click on the backdrop never takes focus from the text.
+ dialog.addEventListener('mousedown', event => { if (event.target === dialog) { event.preventDefault(); large.focus(); } });
+ const stop = event => event.stopPropagation();
+ for (const type of ['pointerdown', 'pointerup', 'pointermove', 'mousedown', 'mouseup', 'mousemove', 'click', 'dblclick', 'wheel', 'contextmenu']) dialog.addEventListener(type, stop);
+ parent.append(dialog); sync(); dialog.showModal();
+ // Without a remembered reading position the caret line is centred; focusing alone would jump to the end.
+ const from = textarea.selectionStart ?? large.value.length, to = textarea.selectionEnd ?? large.value.length;
+ if (reading.text === large.value && reading.from === from && reading.to === to) { large.focus(); large.setSelectionRange?.(from, to); large.scrollTop = reading.top; }
+ else {
+ const full = large.value; large.value = full.slice(0, to);
+ large.scrollTop = 0; const above = large.scrollHeight, view = large.clientHeight; large.value = full;
+ const top = above <= view ? 0 : above - view / 2;
+ large.focus(); large.setSelectionRange?.(from, to); large.scrollTop = top;
+ }
+ }
+ element.onclick = open;
+ textarea.addEventListener('input', sync); textarea.addEventListener('change', sync);
+ const observer = typeof MutationObserver === 'function' ? new MutationObserver(sync) : null;
+ observer?.observe(textarea, {attributes: true, attributeFilter: ['disabled', 'readonly']});
+ sync();
+ return {element, open, close, commit, dispose() {
+ close(); disposed = true; observer?.disconnect();
+ textarea.removeEventListener('input', sync); textarea.removeEventListener('change', sync);
+ element.onclick = null; element.remove();
+ }};
+}
diff --git a/web/editor_genbar.js b/web/editor_genbar.js
index 5a5692b..728a6a4 100644
--- a/web/editor_genbar.js
+++ b/web/editor_genbar.js
@@ -1,6 +1,7 @@
// The editor owns its generation controls; progress can use the optional component.
import {createFirstFrameSwitch} from './editor_first_frame.js';
import {createEditorReferences} from './editor_references.js';
+import {createExpandButton} from './editor_expand.js';
const el = (tag, cls, text) => { const e = document.createElement(tag); if (cls) e.className = cls; if (text != null) e.textContent = text; return e; };
export const timeEstimate = (seconds, t) => seconds == null ? '' : seconds < 60
? t(`about ${Math.max(1, Math.ceil(seconds))} s`, `约 ${Math.max(1, Math.ceil(seconds))} 秒`)
@@ -11,13 +12,14 @@ const painted = () => typeof document === 'undefined' || document.visibilityStat
export function createEditorGenbar(host, {state, t, actions, text = ''}) {
const hint = el('span', 'fv-ed-gen-hint'), note = el('span', 'fv-ed-gen-note');
note.setAttribute('role', 'status'); note.hidden = true;
- const input = el('input', 'fv-ed-description'); input.type = 'text'; input.value = text;
+ const input = el('textarea', 'fv-ed-description'); input.rows = 1; input.value = text;
+ const description = el('div', 'fv-ed-description-box'); description.append(input);
const generate = el('button', 'fv-ed-generate'), cancel = el('button', null, t('Cancel', '取消')), resume = el('button', null, t('Continue', '继续'));
input.dataset.fvGuide = 'editor-describe'; generate.dataset.fvGuide = 'editor-generate';
for (const button of [generate, cancel, resume]) button.type = 'button';
- host.append(hint, note, input, generate, cancel, resume);
+ host.append(hint, note, description, generate, cancel, resume);
const firstFrame = createFirstFrameSwitch(host, {state, t, actions});
- input.after(firstFrame.element);
+ description.after(firstFrame.element);
const failure = el('div', 'fv-ed-gen-failure fv-result-links'), failureBar = el('div', 'fv-ed-failure-actions fv-actions');
const failureReason = el('span', 'fv-ed-failure-reason'); failureReason.setAttribute('role', 'status');
const report = el('button', 'fv-ed-failure-report fv-action fv-action-secondary', t('Download diagnostic report', '下载诊断报告')); report.type = 'button';
@@ -25,7 +27,7 @@ export function createEditorGenbar(host, {state, t, actions, text = ''}) {
let failureId = null, downloading = false;
// Reference pictures for a part that starts fresh: thumbnails and a small "+" before the description.
const references = actions.references ? createEditorReferences({t, source: actions.references.source, size: actions.references.size, error: actions.error, notify: actions.references.notify}) : null;
- if (references) input.before(references.element);
+ if (references) description.before(references.element);
let status = null, serial = 0, disposed = false, pressing = new Set(), previewSelection = null, estimateCache = null, noteTimer = null, queuedAt = null;
// Which parts are generating, or how the job ended: a "Queued" line goes once this moves on.
const progressKey = () => ['done', 'failed', 'cancelled', 'interrupted'].includes(status?.state) ? status.state
@@ -114,6 +116,8 @@ export function createEditorGenbar(host, {state, t, actions, text = ''}) {
generate.textContent = t('Generate', '生成');
// Never disabled for a reason the press itself can explain or fix.
generate.disabled = busy || !!previewSelection;
+ resizeDescription();
+ input.dispatchEvent(new Event('change'));
generate.title = '';
if (selected && !busy) {
const key = JSON.stringify(selection);
@@ -125,26 +129,50 @@ export function createEditorGenbar(host, {state, t, actions, text = ''}) {
generate.textContent = t('Generate', '生成') + label;
}
}
+ function resizeDescription() {
+ // 18 px lines + 16 px padding + 2 px border: one line is still 36 px, five lines 108 px.
+ input.style.height = '0px';
+ const height = Math.max(36, (input.scrollHeight || 34) + 2);
+ input.style.height = `${Math.min(108, height)}px`;
+ input.style.overflowY = height > 108 ? 'auto' : 'hidden';
+ host.closest('.fv-editor')?.style.setProperty('--fv-ed-description-growth', `${Math.min(108, height) - 36}px`);
+ }
+ let width = null;
+ const resize = typeof ResizeObserver === 'function' ? new ResizeObserver(entries => {
+ const next = entries[0]?.contentRect.width;
+ if (next === width) return;
+ width = next; resizeDescription();
+ }) : null;
+ resize?.observe(description);
input.oninput = () => { state.setRangeText(input.value); render(); };
+ input.onkeydown = event => {
+ // The former text input did not submit or insert a line on Enter.
+ if (event.key === 'Enter' && !event.shiftKey && !event.isComposing && event.keyCode !== 229) event.preventDefault();
+ };
generate.onclick = async () => {
const key = JSON.stringify(state.selection ?? null);
if (pressing.has(key)) return;
pressing.add(key); say(''); render();
const typed = input.value;
+ let reason = '';
try {
// The press shows before any planning, however long that takes.
await painted();
const result = actions.press ? await actions.press(input.value) : await actions.generate({target: 'both', text: input.value});
// Never over what the user typed meanwhile, for another part.
if (result?.text != null && result.text !== input.value && input.value === typed) input.value = result.text;
- if (result?.say) say(result.say, !!result.queued);
+ if (result?.say) { say(result.say, !!result.queued); reason = result.say; }
if (result?.focus) { pressing.delete(key); render(); input.disabled = false; input.focus(); }
}
// A specific reason is said once; the planning limits are already shown above.
- catch (error) { const result = actions.error(error, 'generate'); if (result?.say && !['chain_too_long', 'chain_part_too_short'].includes(result.reason)) say(result.say);
- else if (!result && !note.textContent) say(t('Could not start. Try again.', '没能开始,请重试。')); }
+ catch (error) { const result = actions.error(error, 'generate'); reason = result?.say || '';
+ if (result?.say && !['chain_too_long', 'chain_part_too_short'].includes(result.reason)) say(result.say);
+ else if (!result && !note.textContent) { reason = t('Could not start. Try again.', '没能开始,请重试。'); say(reason); } }
finally { pressing.delete(key); render(); }
+ return reason;
};
+ const expand = createExpandButton({t, textarea: input, onGenerate: () => generate.onclick(), canGenerate: () => !generate.disabled, onDraft: text => state.setRangeText(text)});
+ description.append(expand.element);
cancel.onclick = () => (!previewSelection && actions.selectionHeld?.() ? Promise.resolve(actions.unhold()).then(render) : actions.cancel()).catch(actions.error);
resume.onclick = () => actions.resume().catch(value => actions.error(value, 'generate'));
const unsubscribe = state.subscribe(event => {
@@ -160,8 +188,8 @@ export function createEditorGenbar(host, {state, t, actions, text = ''}) {
if (event.type === 'selection' || event.type === 'record') render();
});
render();
- return {element: host, say, downloadFailure, getText() { return input.value; }, update(value) { status = value; render(); }, preview(selection) { previewSelection = selection; render(); }, setText(value) { input.value = value || ''; state.setRangeText(input.value); render(); },
- dispose() { disposed = true; ++serial; clearTimeout(noteTimer); unsubscribe(); references?.dispose(); }};
+ return {element: host, say, downloadFailure, getText() { expand.commit(); return input.value; }, update(value) { status = value; render(); }, preview(selection) { previewSelection = selection; render(); }, setText(value) { input.value = value || ''; state.setRangeText(input.value); render(); },
+ dispose() { disposed = true; ++serial; clearTimeout(noteTimer); unsubscribe(); resize?.disconnect(); expand.dispose(); references?.dispose(); }};
}
// A missing optional module leaves the editor's existing progress in place.
diff --git a/web/health.js b/web/health.js
index a9e07e7..b924443 100644
--- a/web/health.js
+++ b/web/health.js
@@ -14,7 +14,7 @@ const t = (en, zh) => cn ? zh : en;
const launchVisit = query.get('freevideo') === 'launch';
// Every script this folder ships; a test keeps the list in step with web/*.js.
export const MODULES = ['agent_activity.js', 'agent_connect.js', 'agent_session.js', 'autopilot.js', 'autopilot_chat.js', 'autopilot_conversations.js', 'browser_extension.js', 'caret_rect.js', 'chain_support.js', 'capability_view.js', 'cast_generate.js', 'cast_mention.js', 'cast_overlay.js', 'cast_source.js', 'compatibility.js', 'error_panel.js', 'first_run_guide.js', 'fonts.js', 'freevideo.js', 'generation_progress.js',
- 'editor.js', 'editor_actions.js', 'editor_adjust.js', 'editor_adjust_picture.js', 'editor_picture_fields.js', 'editor_picture_session.js', 'editor_preview_picture.js', 'editor_entry.js', 'editor_export_dialog.js', 'editor_first_frame.js', 'editor_media_references.js', 'editor_references.js', 'editor_genbar.js', 'editor_geometry.js', 'editor_library.js', 'editor_menu.js', 'editor_model.js', 'editor_frame.js', 'editor_player.js', 'editor_room.js', 'editor_select.js', 'editor_state.js', 'editor_store.js', 'editor_tracks.js', 'editor_generation.js', 'editor_transport.js', 'editor_transport_model.js', 'editor_audio.js', 'editor_audio_model.js', 'editor_audio_notes.js', 'editor_audio_replace.js', 'editor_audio_rules.js', 'editor_speed.js', 'editor_speed_model.js', 'editor_failure.js', 'editor_header_fit.js',
+ 'editor.js', 'editor_actions.js', 'editor_adjust.js', 'editor_adjust_picture.js', 'editor_picture_fields.js', 'editor_picture_session.js', 'editor_preview_picture.js', 'editor_entry.js', 'editor_expand.js', 'editor_export_dialog.js', 'editor_first_frame.js', 'editor_media_references.js', 'editor_references.js', 'editor_genbar.js', 'editor_geometry.js', 'editor_library.js', 'editor_menu.js', 'editor_model.js', 'editor_frame.js', 'editor_player.js', 'editor_room.js', 'editor_select.js', 'editor_state.js', 'editor_store.js', 'editor_tracks.js', 'editor_generation.js', 'editor_transport.js', 'editor_transport_model.js', 'editor_audio.js', 'editor_audio_model.js', 'editor_audio_notes.js', 'editor_audio_replace.js', 'editor_audio_rules.js', 'editor_speed.js', 'editor_speed_model.js', 'editor_failure.js', 'editor_header_fit.js',
'editor_loader.js', 'editor_text_coverage.js', 'editor_text.js', 'editor_toolbar_more.js', 'editor_text_model.js', 'editor_text_layout.js', 'editor_notes.js', 'editor_icons.js', 'dialog_keys.js', 'done_notify.js', 'frame_sizes.js', 'health.js', 'image_commands.js', 'image_editor.js', 'image_editor_engine.js', 'image_generation.js', 'launcher.js', 'length_plan.js', 'lora_triggers.js', 'library.js', 'motion.js', 'output_download.js', 'port_notice.js', 'preview_scene.js',
'progress_connection.js', 'prompt_draft.js', 'prompt_enhance.js', 'prompt_references.js', 'prompt_terms.js', 'request_assets.js', 'report_issue.js', 'studio_recent.js',
'result_actions.js', 'sampling_effort.js', 'setup.js', 'share.js', 'share_layout.js', 'studio.js', 'studio_chain.js', 'studio_extend.js', 'studio_length.js', 'first_frame_row.js', 'optional_inputs.js', 'studio_queue.js', 'studio_size.js',