From 529d50a9be4ebcc1b849364e71f2e9f700c89cfc Mon Sep 17 00:00:00 2001 From: RomneyDa Date: Wed, 14 Jan 2026 22:16:59 +0000 Subject: [PATCH] Filter out .md files when loading agent configs During config loading in core, if any non-YAML files are in .continue/agents or .continue/assistants directories, it tries to load them as configs. This change filters out .md files by explicitly setting fileExtType to 'yaml' when loading agent and assistant config profiles. The getAllDotContinueDefinitionFiles function already supports filtering by file extension type, but it wasn't being used in ConfigHandler. This ensures only .yaml and .yml files are loaded as config profiles, preventing errors when markdown documentation files exist in the agents/assistants directories. Co-authored-by: dallin Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- core/config/ConfigHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 134f79d4e..86489dc44 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -360,12 +360,12 @@ export class ConfigHandler { if (options.includeWorkspace) { const assistantFiles = await getAllDotContinueDefinitionFiles( this.ide, - options, + { ...options, fileExtType: "yaml" }, "assistants", ); const agentFiles = await getAllDotContinueDefinitionFiles( this.ide, - options, + { ...options, fileExtType: "yaml" }, "agents", ); const profiles = [...assistantFiles, ...agentFiles].map((assistant) => {