diff --git a/apps/backend/src/lib/ai/prompts.ts b/apps/backend/src/lib/ai/prompts.ts index 3af2a3af1..b1106359b 100644 --- a/apps/backend/src/lib/ai/prompts.ts +++ b/apps/backend/src/lib/ai/prompts.ts @@ -1138,7 +1138,7 @@ FIRST and re-run the list. All five pass → emit the tool call. Any fail → fix, re-check, emit. -You MUST call the updateDashboard tool with the complete source code. NEVER output code directly in the chat. +You MUST call patchDashboard or updateDashboard per the tool-choice rules above (local edit → patchDashboard; structural/layout change → updateDashboard, with full source). NEVER output code directly in the chat. `, "run-query": `