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