The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
fix(ui): align runner commentary with chat replies (#14716)
Dotta44736c9c7c67
diff --git a/ui/src/components/task-chat/TaskChatRunnerActivityGroup.test.tsx b/ui/src/components/task-chat/TaskChatRunnerActivityGroup.test.tsxindex 7e26c7730f..a15aa78ceb 100644--- a/ui/src/components/task-chat/TaskChatRunnerActivityGroup.test.tsx+++ b/ui/src/components/task-chat/TaskChatRunnerActivityGroup.test.tsx@@ -6,6 +6,7 @@ import { TaskChatThreadView } from "./TaskChatThreadView";import { ThemeProvider } from "@/context/ThemeContext";import { MemoryRouter } from "@/lib/router";import { TaskChatRunnerActivityGroup } from "./TaskChatRunnerActivityGroup";+import { TaskChatBubble } from "./TaskChatBubble";import { TaskChatExpansionState } from "./expansion-state";import type {TaskChatActivityPhaseItem,@@ -73,6 +74,29 @@ describe("TaskChatRunnerActivityGroup", () => {const viewport = () =>container.querySelector('[data-testid="task-chat-activity-viewport"]')!;+ it("aligns runner commentary with the following agent reply", () => {+ act(() => root.render(+ <MemoryRouter>+ <ThemeProvider>+ <TaskChatRunnerActivityGroup item={{+ id: "commentary:phase",+ kind: "activity_phase",+ interstitial: { id: "commentary", kind: "message", author: "agent", text: "First line" },+ items: [],+ active: false,+ summary: "",+ }} />+ <TaskChatBubble item={{ id: "reply", kind: "message", author: "agent", text: "Later reply" }} />+ </ThemeProvider>+ </MemoryRouter>,+ ));++ const commentary = container.querySelector('[data-testid="task-chat-phase-interstitial"]');+ const reply = container.querySelector('[data-testid="task-chat-agent-bubble"]');+ expect(commentary?.classList.contains("px-1")).toBe(true);+ expect(reply?.classList.contains("px-1")).toBe(true);+ });+it("rolls to each new item once while status and token updates keep the current row mounted", () => {render([tool("one")]);const first = viewport().querySelector('[data-activity-row="one"]');diff --git a/ui/src/components/task-chat/TaskChatRunnerActivityGroup.tsx b/ui/src/components/task-chat/TaskChatRunnerActivityGroup.tsxindex d60e81c765..3e07ace36b 100644--- a/ui/src/components/task-chat/TaskChatRunnerActivityGroup.tsx+++ b/ui/src/components/task-chat/TaskChatRunnerActivityGroup.tsx@@ -333,7 +333,7 @@ export function TaskChatRunnerActivityGroup({>{item.interstitial ? (<div- className="min-w-0 text-sm text-foreground/90"+ className="min-w-0 px-1 text-sm text-foreground/90"data-testid="task-chat-phase-interstitial"><MarkdownBody softBreaks linkIssueReferences>