From e8ecedb36d21bbffd37c5059dfcad3fcaf2ffdff Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Wed, 11 Jun 2025 15:09:08 -0700 Subject: [PATCH] improv: simplify --- core/llm/rules/getSystemMessageWithRules.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 2858ada72..e83a2cbfc 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -8,7 +8,6 @@ import { import { renderChatMessage } from "../../util/messageContent"; import { getCleanUriPath } from "../../util/uri"; import { extractPathsFromCodeBlocks } from "../utils/extractPathsFromCodeBlocks"; -import { RULES_MARKDOWN_FILENAME } from "./constants"; /** * Checks if a path matches any of the provided globs @@ -90,11 +89,7 @@ const isFileInDirectory = ( * Checks if a rule is a root-level rule (.continue directory or no file path) */ const isRootLevelRule = (rule: RuleWithSource): boolean => { - return ( - !rule.ruleFile || - rule.ruleFile.startsWith(".continue/") || - rule.ruleFile === `.continue/${RULES_MARKDOWN_FILENAME}` - ); + return !rule.ruleFile || rule.ruleFile.startsWith(".continue/"); }; /**