Skip to content

The open-source app everyone uses to manage agents at work

fix: system-authored comments display as 'You' instead of 'Paperclip' (#6330)

Zak6d103b83582a
diff --git a/ui/src/lib/issue-chat-messages.ts b/ui/src/lib/issue-chat-messages.ts
index 75f7b9a211..0b41db6e59 100644
--- a/ui/src/lib/issue-chat-messages.ts
+++ b/ui/src/lib/issue-chat-messages.ts
@@ -367,7 +367,7 @@ function authorNameForComment(
return agentMap?.get(authorAgentId)?.name ?? (options?.isSystemNotice ? "Paperclip" : authorAgentId.slice(0, 8));
}
const authorUserId = comment.authorUserId ?? null;
- if (!authorUserId) return "You";
+ if (!authorUserId) return options?.isSystemNotice ? "Paperclip" : "You";
const userLabel = userLabelMap?.get(authorUserId)?.trim();
if (userLabel) return userLabel;
return formatAssigneeUserLabel(authorUserId, currentUserId, userLabelMap) ?? "You";