Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(timeline): le wizard IA ne fait plus que les coupes

Etienne Lescot7e6439addce6
diff --git a/src/components/ai-edition/v4/V4Timeline.tsx b/src/components/ai-edition/v4/V4Timeline.tsx
index 883c8500d..9aa811d6d 100644
--- a/src/components/ai-edition/v4/V4Timeline.tsx
+++ b/src/components/ai-edition/v4/V4Timeline.tsx
@@ -52,10 +52,22 @@ import { TransportBar } from "../TransportBar";
import type { VideoSource } from "../VirtualPreview";
import styles from "./EditorShellV4.module.css";
-// Well-crafted generic prompt for the AI "smart zooms + cuts" option — sent
-// straight to the chat agent via the prompt-bus.
+// The AI option's prompt — sent straight to the chat agent via the prompt-bus.
+//
+// ponytail: cuts ONLY, deliberately. It used to ask for zooms too ("smart
+// zoom-ins on the moments where the cursor dwells… focused on the cursor's
+// location"), and the model has no way to do that well: measured on a real 66s
+// screencast, every trim it emitted landed strictly inside a true silence with a
+// 0.06–0.33s margin and destroyed zero speech, while 7 of its 9 zoom focus points
+// missed the actual cursor position in their own window — three of them by more
+// than a third of the frame. It places zooms from what the transcript SAYS, not
+// from where the pointer WAS. Asking for both in one breath bought misaimed zooms
+// at the price of the cuts' credibility, and the cursor-driven wand next to it
+// already does the zoom pass from the same telemetry, deterministically.
+// Re-widen this when the model can be shown to read the track; the workbench
+// scenario `real-wizard-enhance` is what would show it.
const AI_ENHANCE_PROMPT =
- "Automatically enhance this recording: (1) add smart zoom-ins on the moments where the cursor dwells or interacts with the UI, each focused on the cursor's location; and (2) cut the dead time — long pauses, silences, and idle stretches where nothing happens — to keep the pacing tight and natural. Apply the edits directly to the timeline.";
+ "Cut the dead time in this recording: long pauses, silences, and idle stretches where nothing is being said or done. Keep the pacing tight and natural, and do not cut anything a viewer needs. Apply the edits directly to the timeline.";
type TimelineApi = ReturnType<typeof useTimeline>;
@@ -772,7 +784,9 @@ export function V4Timeline({
// a *new* asset in from the media panel. A short move threshold keeps a
// plain click as "select" and a stationary press as "double-click to edit".
// On drop we hand the target index to tl.moveClip, which delegates to the
- // same document/timeline.ts#moveClip the agent's "move_clip" tool uses.
+ // same document/timeline.ts#moveClip the agent's "moveClip" tool uses.
+ // (That tool takes a neighbour's id rather than this index — the index is
+ // relative to the array with the moved clip already removed, see below.)
const startClipDrag = useCallback(
(e: ReactPointerEvent, clip: AxcutClip) => {
if (e.button !== 0) return;
diff --git a/src/i18n/locales/ar/timeline.json b/src/i18n/locales/ar/timeline.json
index 76b88766f..dc2065459 100644
--- a/src/i18n/locales/ar/timeline.json
+++ b/src/i18n/locales/ar/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "تحسين تلقائي",
"automaticZooms": "تكبيرات تلقائية",
"automaticZoomsHint": "من حركة المؤشر المسجلة",
- "smartZoomsAndCuts": "تكبيرات وقصات ذكية",
+ "smartZoomsAndCuts": "قصات ذكية",
"smartZoomsAndCutsHint": "باستخدام الذكاء الاصطناعي",
"comment": "تعليق",
"aspectRatio": "نسبة العرض إلى الارتفاع",
@@ -82,6 +82,6 @@
"addedAutoZoom": "تمت إضافة {{count}} تكبير تلقائي",
"addedAutoZoomPlural": "تمت إضافة {{count}} تكبيرات تلقائية",
"autoZoomFailed": "فشل التكبير التلقائي",
- "aiEnhanceRequested": "تم طلب تحسين هذا التسجيل من وكيل الذكاء الاصطناعي"
+ "aiEnhanceRequested": "طُلب من وكيل الذكاء الاصطناعي قص الأوقات الميتة"
}
}
diff --git a/src/i18n/locales/en/timeline.json b/src/i18n/locales/en/timeline.json
index c29bbd224..224422f42 100644
--- a/src/i18n/locales/en/timeline.json
+++ b/src/i18n/locales/en/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Auto-enhance",
"automaticZooms": "Automatic zooms",
"automaticZoomsHint": "From recorded cursor movement",
- "smartZoomsAndCuts": "Smart zooms + cuts",
+ "smartZoomsAndCuts": "Smart cuts",
"smartZoomsAndCutsHint": "With AI",
"comment": "Comment",
"aspectRatio": "Aspect ratio",
@@ -82,6 +82,6 @@
"addedAutoZoom": "Added {{count}} automatic zoom",
"addedAutoZoomPlural": "Added {{count}} automatic zooms",
"autoZoomFailed": "Auto-zoom failed",
- "aiEnhanceRequested": "Asked the AI agent to enhance this recording"
+ "aiEnhanceRequested": "Asked the AI agent to cut the dead time"
}
}
diff --git a/src/i18n/locales/es/timeline.json b/src/i18n/locales/es/timeline.json
index 90955fa27..1a23e1f82 100644
--- a/src/i18n/locales/es/timeline.json
+++ b/src/i18n/locales/es/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Mejora automática",
"automaticZooms": "Zooms automáticos",
"automaticZoomsHint": "Del movimiento del cursor grabado",
- "smartZoomsAndCuts": "Zooms y cortes inteligentes",
+ "smartZoomsAndCuts": "Cortes inteligentes",
"smartZoomsAndCutsHint": "Con IA",
"comment": "Comentario",
"aspectRatio": "Relación de aspecto",
@@ -82,6 +82,6 @@
"addedAutoZoom": "Se añadió {{count}} zoom automático",
"addedAutoZoomPlural": "Se añadieron {{count}} zooms automáticos",
"autoZoomFailed": "Error en el zoom automático",
- "aiEnhanceRequested": "Se pidió al agente de IA que mejore esta grabación"
+ "aiEnhanceRequested": "Se pidió al agente de IA que corte los tiempos muertos"
}
}
diff --git a/src/i18n/locales/fr/timeline.json b/src/i18n/locales/fr/timeline.json
index b0715b803..ffabdf22e 100644
--- a/src/i18n/locales/fr/timeline.json
+++ b/src/i18n/locales/fr/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Amélioration auto",
"automaticZooms": "Zooms automatiques",
"automaticZoomsHint": "Basé sur le mouvement du curseur enregistré",
- "smartZoomsAndCuts": "Zooms et coupes intelligents",
+ "smartZoomsAndCuts": "Coupes intelligentes",
"smartZoomsAndCutsHint": "Avec l'IA",
"comment": "Commentaire",
"aspectRatio": "Format",
@@ -82,6 +82,6 @@
"addedAutoZoom": "{{count}} zoom automatique ajouté",
"addedAutoZoomPlural": "{{count}} zooms automatiques ajoutés",
"autoZoomFailed": "Échec du zoom automatique",
- "aiEnhanceRequested": "L'agent IA a été sollicité pour améliorer cet enregistrement"
+ "aiEnhanceRequested": "Demandé à l'agent IA de couper les temps morts"
}
}
diff --git a/src/i18n/locales/it/timeline.json b/src/i18n/locales/it/timeline.json
index f0ef5a933..1a02f7d9c 100644
--- a/src/i18n/locales/it/timeline.json
+++ b/src/i18n/locales/it/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Miglioramento automatico",
"automaticZooms": "Zoom automatici",
"automaticZoomsHint": "Dal movimento del cursore registrato",
- "smartZoomsAndCuts": "Zoom e tagli intelligenti",
+ "smartZoomsAndCuts": "Tagli intelligenti",
"smartZoomsAndCutsHint": "Con l'IA",
"comment": "Commento",
"aspectRatio": "Proporzioni",
@@ -82,6 +82,6 @@
"addedAutoZoom": "Aggiunto {{count}} zoom automatico",
"addedAutoZoomPlural": "Aggiunti {{count}} zoom automatici",
"autoZoomFailed": "Zoom automatico non riuscito",
- "aiEnhanceRequested": "È stato chiesto all'agente IA di migliorare questa registrazione"
+ "aiEnhanceRequested": "Chiesto all'agente IA di tagliare i tempi morti"
}
}
diff --git a/src/i18n/locales/ja-JP/timeline.json b/src/i18n/locales/ja-JP/timeline.json
index a1eeb9dec..2ab41033c 100644
--- a/src/i18n/locales/ja-JP/timeline.json
+++ b/src/i18n/locales/ja-JP/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "自動強化",
"automaticZooms": "自動ズーム",
"automaticZoomsHint": "記録されたカーソルの動きから",
- "smartZoomsAndCuts": "スマートズーム+カット",
+ "smartZoomsAndCuts": "スマートカット",
"smartZoomsAndCutsHint": "AIを使用",
"comment": "コメント",
"aspectRatio": "アスペクト比",
@@ -82,6 +82,6 @@
"addedAutoZoom": "自動ズームを {{count}} 件追加しました",
"addedAutoZoomPlural": "自動ズームを {{count}} 件追加しました",
"autoZoomFailed": "自動ズームに失敗しました",
- "aiEnhanceRequested": "AIエージェントにこの録画の強化を依頼しました"
+ "aiEnhanceRequested": "AIエージェントに無音部分のカットを依頼しました"
}
}
diff --git a/src/i18n/locales/ko-KR/timeline.json b/src/i18n/locales/ko-KR/timeline.json
index 4d6af5ca7..12f0abadc 100644
--- a/src/i18n/locales/ko-KR/timeline.json
+++ b/src/i18n/locales/ko-KR/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "자동 향상",
"automaticZooms": "자동 줌",
"automaticZoomsHint": "녹화된 커서 움직임 기반",
- "smartZoomsAndCuts": "스마트 줌 + 컷",
+ "smartZoomsAndCuts": "스마트 컷",
"smartZoomsAndCutsHint": "AI 사용",
"comment": "코멘트",
"aspectRatio": "화면 비율",
@@ -82,6 +82,6 @@
"addedAutoZoom": "자동 줌 {{count}}개가 추가되었습니다",
"addedAutoZoomPlural": "자동 줌 {{count}}개가 추가되었습니다",
"autoZoomFailed": "자동 줌 실패",
- "aiEnhanceRequested": "AI 에이전트에게 이 녹화 개선을 요청했습니다"
+ "aiEnhanceRequested": "AI 에이전트에 빈 구간 컷을 요청했습니다"
}
}
diff --git a/src/i18n/locales/pt-BR/timeline.json b/src/i18n/locales/pt-BR/timeline.json
index 09a435051..76f4cd6db 100644
--- a/src/i18n/locales/pt-BR/timeline.json
+++ b/src/i18n/locales/pt-BR/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Melhoria automática",
"automaticZooms": "Zooms automáticos",
"automaticZoomsHint": "Do movimento do cursor gravado",
- "smartZoomsAndCuts": "Zooms e cortes inteligentes",
+ "smartZoomsAndCuts": "Cortes inteligentes",
"smartZoomsAndCutsHint": "Com IA",
"comment": "Comentário",
"aspectRatio": "Proporção",
@@ -82,6 +82,6 @@
"addedAutoZoom": "{{count}} zoom automático adicionado",
"addedAutoZoomPlural": "{{count}} zooms automáticos adicionados",
"autoZoomFailed": "Falha no zoom automático",
- "aiEnhanceRequested": "Foi solicitado ao agente de IA que melhore esta gravação"
+ "aiEnhanceRequested": "Pedido ao agente de IA para cortar os tempos mortos"
}
}
diff --git a/src/i18n/locales/ru/timeline.json b/src/i18n/locales/ru/timeline.json
index 7a0e972df..621c5c059 100644
--- a/src/i18n/locales/ru/timeline.json
+++ b/src/i18n/locales/ru/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Авто-улучшение",
"automaticZooms": "Автоматические зумы",
"automaticZoomsHint": "На основе записанного движения курсора",
- "smartZoomsAndCuts": "Умные зумы и вырезки",
+ "smartZoomsAndCuts": "Умные вырезки",
"smartZoomsAndCutsHint": "С помощью ИИ",
"comment": "Комментарий",
"aspectRatio": "Соотношение сторон",
@@ -82,6 +82,6 @@
"addedAutoZoom": "Добавлен {{count}} автоматический зум",
"addedAutoZoomPlural": "Добавлено {{count}} автоматических зумов",
"autoZoomFailed": "Не удалось выполнить автозум",
- "aiEnhanceRequested": "ИИ-агенту предложено улучшить эту запись"
+ "aiEnhanceRequested": "Агенту ИИ поручено вырезать паузы"
}
}
diff --git a/src/i18n/locales/tr/timeline.json b/src/i18n/locales/tr/timeline.json
index 0da738072..a4be44a5b 100644
--- a/src/i18n/locales/tr/timeline.json
+++ b/src/i18n/locales/tr/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Otomatik iyileştirme",
"automaticZooms": "Otomatik yakınlaştırmalar",
"automaticZoomsHint": "Kaydedilen imleç hareketinden",
- "smartZoomsAndCuts": "Akıllı yakınlaştırma + kırpma",
+ "smartZoomsAndCuts": "Akıllı kırpma",
"smartZoomsAndCutsHint": "Yapay zeka ile",
"comment": "Yorum",
"aspectRatio": "En-boy oranı",
@@ -82,6 +82,6 @@
"addedAutoZoom": "{{count}} otomatik yakınlaştırma eklendi",
"addedAutoZoomPlural": "{{count}} otomatik yakınlaştırma eklendi",
"autoZoomFailed": "Otomatik yakınlaştırma başarısız oldu",
- "aiEnhanceRequested": "Yapay zeka aracısından bu kaydı iyileştirmesi istendi"
+ "aiEnhanceRequested": "Yapay zeka aracısından ölü zamanları kırpması istendi"
}
}
diff --git a/src/i18n/locales/vi/timeline.json b/src/i18n/locales/vi/timeline.json
index c1cda56db..8ecbb7d4f 100644
--- a/src/i18n/locales/vi/timeline.json
+++ b/src/i18n/locales/vi/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "Tự động nâng cao",
"automaticZooms": "Thu phóng tự động",
"automaticZoomsHint": "Từ chuyển động con trỏ đã ghi",
- "smartZoomsAndCuts": "Thu phóng + cắt thông minh",
+ "smartZoomsAndCuts": "Cắt thông minh",
"smartZoomsAndCutsHint": "Với AI",
"comment": "Bình luận",
"aspectRatio": "Tỷ lệ khung hình",
@@ -82,6 +82,6 @@
"addedAutoZoom": "Đã thêm {{count}} thu phóng tự động",
"addedAutoZoomPlural": "Đã thêm {{count}} thu phóng tự động",
"autoZoomFailed": "Thu phóng tự động thất bại",
- "aiEnhanceRequested": "Đã yêu cầu AI cải thiện bản ghi này"
+ "aiEnhanceRequested": "Đã yêu cầu tác nhân AI cắt thời gian chết"
}
}
diff --git a/src/i18n/locales/zh-CN/timeline.json b/src/i18n/locales/zh-CN/timeline.json
index b3f4f6782..f73508cf3 100644
--- a/src/i18n/locales/zh-CN/timeline.json
+++ b/src/i18n/locales/zh-CN/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "自动增强",
"automaticZooms": "自动缩放",
"automaticZoomsHint": "基于录制的光标移动",
- "smartZoomsAndCuts": "智能缩放与剪切",
+ "smartZoomsAndCuts": "智能剪切",
"smartZoomsAndCutsHint": "使用 AI",
"comment": "评论",
"aspectRatio": "宽高比",
@@ -82,6 +82,6 @@
"addedAutoZoom": "已添加 {{count}} 个自动缩放",
"addedAutoZoomPlural": "已添加 {{count}} 个自动缩放",
"autoZoomFailed": "自动缩放失败",
- "aiEnhanceRequested": "已请求 AI 代理增强此录制内容"
+ "aiEnhanceRequested": "已请求 AI 代理剪除空白片段"
}
}
diff --git a/src/i18n/locales/zh-TW/timeline.json b/src/i18n/locales/zh-TW/timeline.json
index dbe6ae8d8..cadb63dff 100644
--- a/src/i18n/locales/zh-TW/timeline.json
+++ b/src/i18n/locales/zh-TW/timeline.json
@@ -63,7 +63,7 @@
"autoEnhance": "自動加強",
"automaticZooms": "自動縮放",
"automaticZoomsHint": "根據錄製的游標移動",
- "smartZoomsAndCuts": "智慧縮放與剪輯",
+ "smartZoomsAndCuts": "智慧剪輯",
"smartZoomsAndCutsHint": "使用 AI",
"comment": "留言",
"aspectRatio": "長寬比",
@@ -82,6 +82,6 @@
"addedAutoZoom": "已新增 {{count}} 個自動縮放",
"addedAutoZoomPlural": "已新增 {{count}} 個自動縮放",
"autoZoomFailed": "自動縮放失敗",
- "aiEnhanceRequested": "已請求 AI 代理程式加強此錄製內容"
+ "aiEnhanceRequested": "已請求 AI 代理剪除空白片段"
}
}