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.

Test queued chat edit notices and retry recovery

Bowen Xuebdce0aa66892
diff --git a/web/autopilot_chat.css b/web/autopilot_chat.css
index 014d7d4..91d2792 100644
--- a/web/autopilot_chat.css
+++ b/web/autopilot_chat.css
@@ -172,6 +172,7 @@
.fv-chat-delete-actions{display:flex;flex-wrap:wrap;gap:4px}
.fv-chat-me>.fv-chat-actions{margin-top:6px;flex-wrap:wrap;justify-content:flex-end}
.fv-chat-me .fv-chat-error{flex:1;min-width:0}
+.fv-chat-error.fv-chat-calm{color:var(--fv-muted)}
.fv-chat-keep{white-space:nowrap}
.fv-chat-scene-menu{box-sizing:border-box;justify-self:center;width:100%;max-width:720px;display:grid;gap:2px;padding:6px;margin-bottom:6px;border:1px solid var(--fv-border);border-radius:12px;background:var(--fv-raised)}
.fv-chat-scene-menu[hidden]{display:none}
diff --git a/web/autopilot_chat.js b/web/autopilot_chat.js
index 3526d82..b66970a 100644
--- a/web/autopilot_chat.js
+++ b/web/autopilot_chat.js
@@ -719,8 +719,10 @@ export function agentChat(t, api, {open, edit, shown = () => true, changed = ()
status.append(error, retry, report); item.append(status);
}
quoted(error, entry.error || ''); error.hidden = !entry.error;
- // Waiting for the agent to come back is not a fault.
- report.hidden = !entry.error || !!entry.automatic;
+ // Waiting for the agent to come back, or the user editing a queued message, is not a fault.
+ const calm = !!entry.automatic || entry.errorCode === 'edited';
+ report.hidden = !entry.error || calm;
+ error.classList.toggle('fv-chat-calm', calm); error.setAttribute('role', calm ? 'status' : 'alert');
const full = entry.errorCode === 'session_full';
retry.textContent = full ? t('New chat', '新对话') : t('Retry', '重试');
retry.disabled = entry.sending || (full ? creating : !sendingAllowed());
@@ -1212,7 +1214,7 @@ export function agentChat(t, api, {open, edit, shown = () => true, changed = ()
saveDraft();
// Editing a queued draft cancels its automatic delivery. Its original message remains available for manual retry.
for (const entry of pending) if (entry.automatic && entry.session === draftSession && entry.draft !== drafts.get(draftSession)) {
- entry.automatic = false;
+ entry.automatic = false; entry.errorCode = 'edited';
entry.error = t('The message changed. Click "Retry" to send the original.', '消息已修改,点“重试”发送原消息。');
say('');
}