Skip to content

Rules are completely ignored by Continue vscode extension #6905

@George-Const

Description

@George-Const

Before submitting your bug report

Relevant environment info

- OS:Ubuntu24.04
- Continue version: 1.0.19
- IDE version: VSCode 1.102.3
- Model: All
- config:
  
name: my-configuration
version: 0.0.1
schema: v1
models:
  - name: Devstral2507-lmstudio
    provider: lmstudio
    model: mistralai/devstral-small-2507
    roles:
    - chat
    - edit
    - apply
    capabilities:
    - tool_use

  - name: openrouter-deepseek-chat-v3-0324
    provider: openai
    model: openrouter-deepseek-chat-v3-0324
    apiBase: http://localhost:4000
    roles:
    - chat
    - edit
    - apply
    capabilities:
      - tool_use
  
  OR link to assistant in Continue hub:

Description

  • Added rules manualy or using the + Add Rules button from the Continue/Rules extension UI or even allowing the LLM to generate the rule in the .continue/rules folder with .md extensions are completely ignored by continue when sending API requests to llm providers.
  • On off toggle for the rule showing under continue/Rules UI seems to not do anything:
Image Tried renaming the file accordingly but nothing. - Confirmed that only default System messages are being passed to llm providers by checking the litellm proxy logs for example and enabling the Rule with the toggle button . Chat/Plan/Agent mode, it doesn't matter, only the default system message is passed for those specific modes.

To reproduce

  1. Go to rules inside continue extension chat mode.
  2. Click on + Add Rules button and edit your rule and save.
  3. Ensure toggle button is on for the added rule and md files are inside rules folder
$ tree -a 
.... 
.
├── appsettings.json
├── .continue
│   ├── mcpServers
│   │   └── AiCodeGenerator.yaml
│   └── rules
│       ├── llm-code-generation-refactoring-standard.md
│       └── new-rule.md
.....
  1. Start chat in any mode
  2. Observe that only default system message is passed in CONTINUE CONSOLE
Image

Expectation:
Rule content to be added to system before sending API request to llmprovider.

Log output

Continue Console showing the system prompt passed to llmprovider not containing the rules as expected: 

system
<important_rules>
  You are in agent mode.

  Always include the language and file name in the info string when you write code blocks.
  If you are editing "src/main.py" for example, your code block should start with ' src/main.py'

</important_rules>
user
Hello
assistant
Hello! How can I assist you today?
user
hello

Metadata

Metadata

Labels

area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions