Elffuss BraidHub

kikocis/continue public

improv: simplify
Changesetd7c7c28e99d9b6fe41b03ee71e2ad7df36b08f6d1bf81d947e3489305f74c3a3
AuthorTomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-06-11 15:09 -07:00
CommitterTomasz Stefaniak <tomasz.p.stefaniak@gmail.com> · 2025-06-11 15:09 -07:00
Parentsf96bfd141fb6

Browse the files at this changeset

1 file changed

modified core/llm/rules/getSystemMessageWithRules.ts +1 −6
@@ -8,7 +8,6 @@
88 import { renderChatMessage } from "../../util/messageContent";
99 import { getCleanUriPath } from "../../util/uri";
1010 import { extractPathsFromCodeBlocks } from "../utils/extractPathsFromCodeBlocks";
11-import { RULES_MARKDOWN_FILENAME } from "./constants";
1211
1312 /**
1413 * Checks if a path matches any of the provided globs
@@ -90,11 +89,7 @@
9089 * Checks if a rule is a root-level rule (.continue directory or no file path)
9190 */
9291 const isRootLevelRule = (rule: RuleWithSource): boolean => {
93- return (
94- !rule.ruleFile ||
95- rule.ruleFile.startsWith(".continue/") ||
96- rule.ruleFile === `.continue/${RULES_MARKDOWN_FILENAME}`
97- );
92+ return !rule.ruleFile || rule.ruleFile.startsWith(".continue/");
9893 };
9994
10095 /**