From 2a19f4c382b64d7e69678f13851d0c62c6308082 Mon Sep 17 00:00:00 2001 From: cryppadotta <34892728+cryppadotta@users.noreply.github.com> Date: Fri, 11 Sep 2026 18:16:57 +0000 Subject: [PATCH 1/2] fix(ui): hide task chat attribution badge Co-Authored-By: Paperclip --- .../task-chat/TaskChatBubble.test.tsx | 23 +++++++++++++++++++ .../components/task-chat/TaskChatBubble.tsx | 10 -------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/ui/src/components/task-chat/TaskChatBubble.test.tsx b/ui/src/components/task-chat/TaskChatBubble.test.tsx index 50bd0d138f..084d9bc008 100644 --- a/ui/src/components/task-chat/TaskChatBubble.test.tsx +++ b/ui/src/components/task-chat/TaskChatBubble.test.tsx @@ -272,6 +272,29 @@ describe("TaskChatBubble accent-bubble text color", () => { }); describe("TaskChatBubble agent page-surface treatment", () => { + it("does not show an on-behalf-of badge in the new task view", () => { + const container = document.createElement("div"); + document.body.appendChild(container); + const root = createRoot(container); + + flushSync(() => + root.render( + + + , + ), + ); + + expect(container.textContent).toContain("Fable"); + expect(container.textContent).not.toContain("for Dotta"); + expect(container.querySelector('[data-testid="comment-attribution-chip"]')).toBeNull(); + + flushSync(() => root.unmount()); + container.remove(); + }); + it("renders agent prose without a card background or constrained width", () => { const container = document.createElement("div"); document.body.appendChild(container); diff --git a/ui/src/components/task-chat/TaskChatBubble.tsx b/ui/src/components/task-chat/TaskChatBubble.tsx index c6abf055a1..99fc17feaa 100644 --- a/ui/src/components/task-chat/TaskChatBubble.tsx +++ b/ui/src/components/task-chat/TaskChatBubble.tsx @@ -10,7 +10,6 @@ import { } from "@/components/ImageGalleryModal"; import { Avatar, AvatarFallback } from "@/components/ui/avatar"; import { AgentIcon } from "@/components/AgentIconPicker"; -import { CommentAttributionChip } from "@/components/CommentAttributionChip"; import { Attachment, AttachmentContent, @@ -74,11 +73,9 @@ function initialsForName(name: string) { export function TaskChatAgentIdentity({ agentName, agentIcon, - onBehalfOfUserName, }: { agentName: string; agentIcon?: string | null; - onBehalfOfUserName?: string; }) { return ( {agentName} - {onBehalfOfUserName ? ( - - ) : null} ); } @@ -235,7 +226,6 @@ export function TaskChatBubble({ ) : null} {bodyText.length > 0 ? (