Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
Jazzcort bc3375e818 Fix: Remove duplicate blocks and provide config warnings
This patch is to address the following cases that duplicate blocks appear in
the UI and confuse users:

  1. When users refer to a local block with "- uses", if the block is
     already in the default directories (e.g. ~/.continue/models or
     <workspacea>/.continue/models) and users don't override its name
     attribute, the duplicate block will appear in the UI.

  2. When users have duplicate block names among each block type in their
     assistant config.

  3. When the injected blocks have duplicate names with the assistant config
     for the corresponding block type.

The duplicate blocks in the UI is confusing, especially in the model
selection.

This patch add a blockDuplicationDetector to detect duplication. When a
duplication is detected, we remove the duplicate item and push a config
error to the result to warn the users that having duplicate names is not
the best practice to set up their config.

The detecting order: assistant config -> injected blocks

To detect duplication, all block types use "name" as the identifier except
for rules and context. For rules, if it's an rule object, we use the "name"
attribute. Otherwise, we use its string content as the identifier. For
context, the "provider" attribute is used as the identifier.

The detection only happens under assistant level, which means you can have
assistants with duplicate names.
2025-08-07 14:53:54 -04:00
.continue Merge pull request #6638 from continuedev/pe/enum-rule 2025-07-21 21:55:55 -07:00
.github build: Add verbose publishPlugin logs 2025-07-24 14:16:25 +02:00
.idea Merge pull request #5637 from continuedev/pe/jb-tool-msg-fontsize-fix 2025-05-16 13:24:43 -07:00
.vscode Revert "chore: terminate all tasks after debug" 2025-07-09 14:58:15 -07:00
binary fix: adjust binary/build.js. copy vscode/tree-sitter folder to binary/ and pack into binary file 2025-07-10 20:00:43 +08:00
core Merge pull request #6331 from chezsmithy/fix-nested-bare-codeblocks 2025-07-24 14:33:41 +02:00
docs Merge pull request #6753 from continuedev/adjust-best-models 2025-07-22 16:17:50 -07:00
eval Preview (#1750) 2024-07-28 23:16:18 -07:00
extensions Merge pull request #6757 from continuedev/exigow/remove-out-of-process-config 2025-07-24 14:17:51 +02:00
gui Merge pull request #6331 from chezsmithy/fix-nested-bare-codeblocks 2025-07-24 14:33:41 +02:00
manual-testing-sandbox add next edit test cases 2025-06-24 18:13:15 -07:00
media update run configs 2024-10-23 16:50:15 -07:00
packages Fix: Remove duplicate blocks and provide config warnings 2025-08-07 14:53:54 -04:00
scripts chore: build all packages in install scripts 2025-07-07 15:13:38 -07:00
sync merkel 2024-10-23 10:29:15 +02:00
.continueignore ignore .continue folder 2025-03-08 16:18:51 -08:00
.eslintrc.shared.json add no misused promises rule 2025-06-13 22:09:32 +05:30
.gitignore chore: ignore docusaurus build files 2025-07-11 09:06:46 +05:30
.node-version Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.nvmrc Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.prettierignore add to prettierignore 2025-05-25 18:40:42 -07:00
.prettierrc remove border above input box 2024-11-05 08:18:31 -08:00
CLA.md fix: Return the CLA (#6585) 2025-07-16 02:01:42 -07:00
CODE_OF_CONDUCT.md npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path . 2025-05-25 18:41:32 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2025-07-13 20:52:03 -07:00
LICENSE Create LICENSE 2023-06-03 09:29:19 +02:00
package-lock.json prettier 2025-07-17 20:52:31 -07:00
package.json remove global jsdom dep 2025-06-26 14:40:07 -07:00
README.md fix img paths on README 2025-07-11 18:11:30 -07:00
SECURITY.md Create SECURITY.md 2025-02-01 01:01:08 -08:00
tsconfig.json .continuerules 2024-12-15 09:30:56 -08:00

Continue logo

Continue

Continue enables developers to create, share, and use custom AI code assistants with our open-source VS Code and JetBrains extensions and hub of models, rules, prompts, docs, and other building blocks

Agent

Agent enables you to make more substantial changes to your codebase

agent

Chat

Chat makes it easy to ask for help from an LLM without needing to leave the IDE

chat

Autocomplete

Autocomplete provides inline code suggestions as you type

autocomplete

Edit

Edit is a convenient way to modify code without leaving your current file

edit

Getting Started

Learn about how to install and use Continue in the docs here

Contributing

Read the contributing guide, and join #contribute on Discord.

License

Apache 2.0 © 2023-2024 Continue Dev, Inc.