From 7e850dbe60461de9eb3550c6cf4baf89dc6df501 Mon Sep 17 00:00:00 2001 From: Aadesh Kheria Date: Tue, 5 May 2026 13:18:30 -0700 Subject: [PATCH] Update tool call instructions in AI prompts to specify usage of patchDashboard and updateDashboard based on context --- apps/backend/src/lib/ai/prompts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": `