fix(server): bound recovery notice agent names

This commit is contained in:
scotttong committed 2026-08-07 17:22:47 -07:00
1 parent 960b6e8a5d
commit 65e856a6ef
1 file changed
+7 -1
@@ -40,7 +40,13 @@ export function agentLinkRow(
agent: { id: string; name: string | null } | null | undefined,
): NoticeMetadataRow {
if (!agent) return keyValueRow(label, "unknown");
return { type: "agent_link", label, agentId: agent.id, name: agent.name };
return {
type: "agent_link",
label,
agentId: agent.id,
// Issue-comment metadata constrains link names to 160 characters.
name: agent.name?.slice(0, 160) ?? null,
};
}
export function systemNoticePresentation(input: {