style(cli): add kilocode markers on mode block

This commit is contained in:
Alex Alecu
2026-04-08 11:48:10 +03:00
parent cef00b9df3
commit 0a2c10956e
+3 -1
View File
@@ -715,7 +715,8 @@ export namespace Config {
const message = ConfigMarkdown.FrontmatterError.isInstance(err)
? err.data.message
: `Failed to parse mode ${item}`
if (warnings) warnings.push({ path: item, message }) // kilocode_change
// kilocode_change start
if (warnings) warnings.push({ path: item, message })
try {
const { Session } = await import("@/session")
Bus.publish(Session.Event.Error, { error: new NamedError.Unknown({ message }).toObject() })
@@ -724,6 +725,7 @@ export namespace Config {
}
log.error("failed to load mode", { mode: item, err })
return undefined
// kilocode_change end
})
if (!md) continue