From 50ec26c16363861850e2aa2f8abc5ad721436c24 Mon Sep 17 00:00:00 2001 From: Jonathan LEI Date: Fri, 2 May 2025 02:22:48 +0800 Subject: [PATCH] Fix user rules ignored by agent (#29754) Closes #29753 The template contains an error: `has_default_user_rules` is always undefined and should be `has_user_rules` instead. Release Notes: - Fixed default user rules ignored during prompt building. --- assets/prompts/assistant_system_prompt.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/prompts/assistant_system_prompt.hbs b/assets/prompts/assistant_system_prompt.hbs index b0b514359bb239f715d288506f012cd037e3397d..206879655593dc3203832b5183f31ecb48d1cde0 100644 --- a/assets/prompts/assistant_system_prompt.hbs +++ b/assets/prompts/assistant_system_prompt.hbs @@ -135,7 +135,7 @@ Otherwise, follow debugging best practices: Operating System: {{os}} Default Shell: {{shell}} -{{#if (or has_rules has_default_user_rules)}} +{{#if (or has_rules has_user_rules)}} ## User's Custom Instructions The following additional instructions are provided by the user, and should be followed to the best of your ability without interfering with the tool use guidelines.