continue-custom/gui
Patrick Erichsen e2e4f94e8d Add alwaysApply property to rules for better control over rule application
This commit introduces an optional `alwaysApply` boolean property to rules that provides fine-grained control over when rules are included in system messages.

## Behavior

- `alwaysApply: true` - Always include the rule, regardless of file context
- `alwaysApply: false` - Only include if globs exist AND match file context
- `alwaysApply: undefined` - Default behavior: include if no globs OR globs match

## Changes

- Added `alwaysApply?: boolean` to `RuleWithSource` interface
- Updated `parseMarkdownRule` to handle frontmatter `alwaysApply` property
- Enhanced `shouldApplyRule` function with explicit logic for all three states
- Added `alwaysApply` to createRuleBlock tool definition and implementation
- Updated UI logic in RulesPeek component to match backend behavior
- Added comprehensive test coverage for all scenarios
- Updated documentation to mention Markdown file support for rules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-25 19:27:15 -07:00
..
public Merge branch 'main' into venice 2025-04-29 13:01:19 -07:00
src Add alwaysApply property to rules for better control over rule application 2025-05-25 19:27:15 -07:00
.eslintrc.json chore: 🚨 fix lint errors in gui and introduce gui lint in CI 2025-05-14 08:24:42 -07:00
.gitignore feat: modify vitest command, add test coverage feature 2024-10-16 11:39:47 +09:00
index.html chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
indexConsole.html Add rich logging of LLM interactions 2025-04-07 14:11:38 -04:00
package-lock.json Merge branch 'main' into dallin/cancelable-apply 2025-05-25 16:11:53 -07:00
package.json chore: 🚨 fix lint errors in gui and introduce gui lint in CI 2025-05-14 08:24:42 -07:00
postcss.config.cjs chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
README.md ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
tailwind.config.cjs add theme recursive test 2025-05-21 11:05:23 -07:00
tsconfig.json typescript rectification 2025-03-24 21:05:38 -07:00
tsconfig.node.json ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
vite.config.ts Merge branch 'main' into rich-llm-logging 2025-04-07 13:02:46 -07:00

Continue React App

The Continue React app is a notebook-like interface to the Continue server. It allows the user to submit arbitrary text input, then communicates with the server to takes steps, which are displayed as a sequence of editable cells. The React app should sit beside an IDE, as in the VS Code extension.