From c447fd4d9394b00558991f204bdae154519e8008 Mon Sep 17 00:00:00 2001 From: Mick Crozier Date: Wed, 11 Mar 2026 16:11:36 +1100 Subject: [PATCH] Add note about context to system prompt --- webviewer/src/ai/prompt/system-prompt.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webviewer/src/ai/prompt/system-prompt.ts b/webviewer/src/ai/prompt/system-prompt.ts index 0ac22e98..f57e5711 100644 --- a/webviewer/src/ai/prompt/system-prompt.ts +++ b/webviewer/src/ai/prompt/system-prompt.ts @@ -34,7 +34,9 @@ Format rules: - Field references use Table::Field notation: Invoices::Total - Variables use $ prefix (local) or $$ prefix (global): $invoiceId, $$USER - Let variables use ~ prefix in calculations: ~lineTotal -- CRITICAL: All indentation inside calculations (Let, Case, List, etc.) MUST use hard tab characters, never spaces. This applies to any expression content inside square brackets.`); +- CRITICAL: All indentation inside calculations (Let, Case, List, etc.) MUST use hard tab characters, never spaces. This applies to any expression content inside square brackets. + +The context has been injected, do not look for CONTEXT.json.`); // Coding conventions if (opts.codingConventions) {