fix(agents): sanitize custom agent names for markdown table safety
This commit is contained in:
parent
c4572a25fb
commit
b0202e23f7
@ -38,7 +38,7 @@ export function parseRegisteredAgentSummaries(input: unknown): RegisteredAgentSu
|
|||||||
if (enabled === false) continue
|
if (enabled === false) continue
|
||||||
|
|
||||||
const description = typeof item.description === "string" ? item.description : ""
|
const description = typeof item.description === "string" ? item.description : ""
|
||||||
result.push({ name, description: sanitizeMarkdownTableCell(description) })
|
result.push({ name: sanitizeMarkdownTableCell(name), description: sanitizeMarkdownTableCell(description) })
|
||||||
}
|
}
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user