mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
fix(server): bound recovery notice agent names
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user