From ad1578e073333df79543e8ee0a4f832fe90b94fc Mon Sep 17 00:00:00 2001 From: sarthakNITT Date: Wed, 21 Jan 2026 02:17:47 +0530 Subject: [PATCH 1/4] fix: improve error messages for invalid rule files --- core/config/yaml/loadYaml.ts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 3c0f2d2201d..e136aba9f3a 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -252,9 +252,30 @@ export async function configYamlToContinueConfig(options: { continueConfig.slashCommands?.push(slashCommand); } } catch (e) { + // If the file is in a rules directory, we can provide a more helpful error message + // because we know it's likely a rule definition + const isRuleFile = + file.path.toLowerCase().includes("/rules/") || + file.path.toLowerCase().includes("\\rules\\"); + + let message = `Failed to convert prompt file ${file.path} to slash command: ${e instanceof Error ? e.message : e}`; + + if (isRuleFile) { + const isYamlError = + e instanceof Error && + (e.name?.includes("YAML") || e.message.includes("flow sequence")); + + const prefix = isYamlError + ? "Failed to parse rule definition" + : "Failed to process rule definition"; + + const errorDetails = e instanceof Error ? e.message : String(e); + message = `${prefix} ${file.path}: ${errorDetails}`; + } + localErrors.push({ fatal: false, - message: `Failed to convert prompt file ${file.path} to slash command: ${e instanceof Error ? e.message : e}`, + message, }); } }); From 92af1a24cb2e0b2be275af57684d2693785b3384 Mon Sep 17 00:00:00 2001 From: sarthakNITT Date: Fri, 23 Jan 2026 00:47:27 +0530 Subject: [PATCH 2/4] chore: empty commit From 8ba6f0f7038e4f5af28cae18a35fa133987a5863 Mon Sep 17 00:00:00 2001 From: sarthakNITT Date: Fri, 23 Jan 2026 00:57:00 +0530 Subject: [PATCH 3/4] chore: rerun ci From 9694b240e4a9cd77c7f6402ee67f30230e368150 Mon Sep 17 00:00:00 2001 From: sarthakNITT Date: Wed, 28 Jan 2026 12:20:17 +0530 Subject: [PATCH 4/4] chore: trigger CI