feat: add .continue/configs as a third config directory

Add support for loading local profiles from .continue/configs/ alongside
the existing .continue/agents/ and .continue/assistants/ directories.
This commit is contained in:
Dallin Romney 2026-03-27 12:59:32 -07:00
parent 16a540c337
commit 890fe91d6d
2 changed files with 9 additions and 3 deletions

View file

@ -368,7 +368,12 @@ export class ConfigHandler {
{ ...options, fileExtType: "yaml" },
"agents",
);
const profiles = [...assistantFiles, ...agentFiles].map((assistant) => {
const configFiles = await getAllDotContinueDefinitionFiles(
this.ide,
{ ...options, fileExtType: "yaml" },
"configs",
);
const profiles = [...assistantFiles, ...agentFiles, ...configFiles].map((assistant) => {
return new LocalProfileLoader(
this.ide,
this.controlPlaneClient,

View file

@ -23,7 +23,7 @@ export function isContinueConfigRelatedUri(uri: string): boolean {
(uri.endsWith(".yaml") ||
uri.endsWith(".yml") ||
uri.endsWith(".json"))) ||
[...BLOCK_TYPES, "agents", "assistants"].some((blockType) =>
[...BLOCK_TYPES, "agents", "assistants", "configs"].some((blockType) =>
uri.includes(`.continue/${blockType}`),
)
);
@ -38,7 +38,8 @@ export function isContinueAgentConfigFile(uri: string): boolean {
const normalizedUri = URI.normalize(uri);
return (
normalizedUri.includes(`/.continue/agents/`) ||
normalizedUri.includes(`/.continue/assistants/`)
normalizedUri.includes(`/.continue/assistants/`) ||
normalizedUri.includes(`/.continue/configs/`)
);
}