diff --git a/ui/src/components/IssueChatThread.test.tsx b/ui/src/components/IssueChatThread.test.tsx index 241a7fae143..87ece4753e6 100644 --- a/ui/src/components/IssueChatThread.test.tsx +++ b/ui/src/components/IssueChatThread.test.tsx @@ -1369,6 +1369,8 @@ describe("IssueChatThread", () => { ); expect(bubble).toBeDefined(); expect(bubble?.textContent).toContain("Here is my agent reply."); + expect(bubble?.className).toContain("max-w-[calc(100%-0.5rem)]"); + expect(bubble?.className).toContain("sm:max-w-[85%]"); // Neutral, not the human liveness-blue bubble. expect(bubble?.className).not.toContain("bg-[#2563EB]"); diff --git a/ui/src/components/IssueChatThread.tsx b/ui/src/components/IssueChatThread.tsx index 8d897730e56..414a79602ec 100644 --- a/ui/src/components/IssueChatThread.tsx +++ b/ui/src/components/IssueChatThread.tsx @@ -221,6 +221,8 @@ const IssueChatCtx = createContext({ successfulRunHandoff: null, }); +const AGENT_COMMENT_BUBBLE_WIDTH_CLASS = "max-w-[calc(100%-0.5rem)] sm:max-w-[85%]"; + export type IssueChatRunFinalizationAction = { id: "cancel" | "done"; label: string; @@ -1720,7 +1722,8 @@ function IssueChatAssistantMessage({ {/* Canonical conference-room agent bubble (BoardChat.tsx:712). */}