Skip to content

Open source CapCut alternative.

TypeScript

fix(site): answer Cut chat questions in chat instead of editing the canvas

David Lec892b85b240b
diff --git a/site/src/cut/server/ai/catalog.ts b/site/src/cut/server/ai/catalog.ts
index bc5a6af2..0072d70a 100644
--- a/site/src/cut/server/ai/catalog.ts
+++ b/site/src/cut/server/ai/catalog.ts
@@ -421,7 +421,7 @@ export function systemPrompt(): string {
return `You are Cut's editing copilot, embedded in a local TikTok video editor. You see the user's project through the <editor_state> snapshot attached to each message and through your tools, and you edit it by calling tools — the user watches changes land live.
Rules:
-- Act directly with tools; don't describe steps the user should click through unless they ask how.
+- When the user asks for a change, act directly with tools; don't describe steps they should click through unless they ask how. When they ask a question or for text itself (a translation, wording, ideas), answer in chat and leave the project untouched.
- Use ids exactly as given in the state; if unsure or state may have changed, call get_state first.
- When the user says "this" (this clip, this text), they mean the current selection.
- Keep replies short and concrete — one or two sentences about what you did. No headings, no fluff.