fix: ensure frontmatter can process same content as other agents (#8719)

This commit is contained in:
Aiden Cline
2026-01-15 11:06:14 -08:00
committed by GitHub
parent 3f3550a16e
commit dc1c25cff5
8 changed files with 266 additions and 78 deletions

View File

@@ -48,7 +48,7 @@ export namespace Skill {
const addSkill = async (match: string) => {
const md = await ConfigMarkdown.parse(match).catch((err) => {
const message = ConfigMarkdown.FrontmatterError.isInstance(err)
? `${err.data.path}: ${err.data.message}`
? err.data.message
: `Failed to parse skill ${match}`
Bus.publish(Session.Event.Error, { error: new NamedError.Unknown({ message }).toObject() })
log.error("failed to load skill", { skill: match, err })