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
feat(task-chat): bring back copy/π/π actions on the agent bubble footer (#11025)
scotttongea83c5c822f9
diff --git a/ui/src/components/AgentBubbleActionRow.tsx b/ui/src/components/AgentBubbleActionRow.tsxindex 0f41b2f7af..f761d942ae 100644--- a/ui/src/components/AgentBubbleActionRow.tsx+++ b/ui/src/components/AgentBubbleActionRow.tsx@@ -40,6 +40,36 @@ export function agentBubbleDateLabel(date: Date | string | undefined): string {return formatShortDate(date);}+/**+ * Copy-to-clipboard icon button shared by every agent-bubble footer β the+ * conference-room {@link AgentBubbleActionRow} and the redesigned task thread's+ * {@link TaskChatBubbleActions} (PAP-413). Single-sourced so both footers keep+ * identical sizing, radius, and the "copied β" feedback affordance rather than+ * re-declaring the same button markup on each surface.+ */+export function BubbleCopyButton({ copyText }: { copyText: string }) {+ const [copied, setCopied] = useState(false);++ return (+ <button+ type="button"+ className="inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"+ title="Copy message"+ aria-label="Copy message"+ onClick={() => {+ void copyTextToClipboard(copyText)+ .then(() => {+ setCopied(true);+ setTimeout(() => setCopied(false), 2000);+ })+ .catch(() => {});+ }}+ >+ {copied ? <Check className="h-3.5 w-3.5" /> : <Copy className="h-3.5 w-3.5" />}+ </button>+ );+}+/*** Shared agent-bubble action row β copy Β· π Β· π Β· timestamp Β· β― menu.*@@ -79,26 +109,9 @@ export function AgentBubbleActionRow({menuItems?: ReactNode;className?: string;}) {- const [copied, setCopied] = useState(false);-return (<div className={cn("mt-2 flex items-center gap-1", className)}>- <button- type="button"- className="inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground"- title="Copy message"- aria-label="Copy message"- onClick={() => {- void copyTextToClipboard(copyText)- .then(() => {- setCopied(true);- setTimeout(() => setCopied(false), 2000);- })- .catch(() => {});- }}- >- {copied ? <Check className="h-3.5 w-3.5" /> : <Copy className="h-3.5 w-3.5" />}- </button>+ <BubbleCopyButton copyText={copyText} />{feedback ? (<IssueChatFeedbackButtonsactiveVote={feedback.activeVote}diff --git a/ui/src/components/TaskChatThread.tsx b/ui/src/components/TaskChatThread.tsxindex 35f507b468..739da91343 100644--- a/ui/src/components/TaskChatThread.tsx+++ b/ui/src/components/TaskChatThread.tsx@@ -19,9 +19,12 @@ import { TaskChatDescriptionBubble } from "@/components/task-chat/TaskChatDescriimport type {TaskChatInteractionItem,TaskChatItem,+ TaskChatMessageItem,TaskChatTurnItem,} from "@/components/task-chat/task-chat-model";import { TaskChatInteractionCard } from "@/components/task-chat/TaskChatInteractionCard";+import { TaskChatBubbleActions } from "@/components/task-chat/TaskChatBubbleActions";+import type { FeedbackVoteValue } from "@paperclipai/shared";import { TaskChatThreadView, taskChatContentKey } from "@/components/task-chat/TaskChatThreadView";import { TaskChatComposer } from "@/components/task-chat/TaskChatComposer";import { useWindowAutoFollow } from "@/components/task-chat/useWindowAutoFollow";@@ -108,6 +111,10 @@ export function TaskChatThread(props: TaskChatThreadProps) {threadHeader,workModeChanges,issueBrief,+ feedbackVotes,+ feedbackDataSharingPreference = "prompt",+ feedbackTermsUrl = null,+ onVote,} = props;const linkedRunMetaById = useMemo(() => {@@ -388,6 +395,43 @@ export function TaskChatThread(props: TaskChatThreadProps) {);}, [orderedEntries, runs, liveRun, transcriptByRun, linkedRunMetaById, lastCommentIdByRun, hasBrief]);+ // Feedback votes keyed by the comment they target (targetType+ // "issue_comment"), mirroring IssueChatThread β the redesign attaches the+ // π/π state to each agent bubble by its comment id (PAP-413).+ const feedbackVoteByTargetId = useMemo(() => {+ const map = new Map<string, FeedbackVoteValue>();+ for (const feedbackVote of feedbackVotes ?? []) {+ if (feedbackVote.targetType !== "issue_comment") continue;+ map.set(feedbackVote.targetId, feedbackVote.vote);+ }+ return map;+ }, [feedbackVotes]);++ // copy Β· π Β· π cluster for an agent bubble's footer line (PAP-413). Human+ // and system bubbles get nothing; copy is always available, and the feedback+ // buttons render only when the host wired a vote handler.+ const renderMessageActions = useCallback(+ (item: TaskChatMessageItem) => {+ if (item.author !== "agent" || item.optimistic) return null;+ return (+ <TaskChatBubbleActions+ copyText={item.text}+ feedback={+ onVote+ ? {+ activeVote: feedbackVoteByTargetId.get(item.id) ?? null,+ sharingPreference: feedbackDataSharingPreference,+ termsUrl: feedbackTermsUrl,+ onVote: (vote, options) => onVote(item.id, vote, options),+ }+ : null+ }+ />+ );+ },+ [onVote, feedbackVoteByTargetId, feedbackDataSharingPreference, feedbackTermsUrl],+ );+const renderInteraction = useCallback((item: TaskChatInteractionItem) => (<TaskChatInteractionCard@@ -450,6 +494,7 @@ export function TaskChatThread(props: TaskChatThreadProps) {header={threadHeader}renderInteraction={renderInteraction}renderBrief={issueBrief ? () => <TaskChatDescriptionBubble brief={issueBrief} /> : undefined}+ renderMessageActions={renderMessageActions}scroll={!isMobile}/>)}diff --git a/ui/src/components/task-chat/TaskChatBubble.test.tsx b/ui/src/components/task-chat/TaskChatBubble.test.tsxindex 9b3c041200..875ee543cb 100644--- a/ui/src/components/task-chat/TaskChatBubble.test.tsx+++ b/ui/src/components/task-chat/TaskChatBubble.test.tsx@@ -209,3 +209,62 @@ describe("TaskChatBubble footer line (round 9)", () => {expect(plain).toHaveLength(0);});});++describe("TaskChatBubble footer actions (PAP-413)", () => {+ let container: HTMLDivElement;+ let root: Root | null = null;++ beforeEach(() => {+ container = document.createElement("div");+ document.body.appendChild(container);+ root = createRoot(container);+ });++ afterEach(() => {+ flushSync(() => root?.unmount());+ root = null;+ container.remove();+ });++ function render(item: TaskChatMessageItem, opts?: { attachedTurn?: ReactNode; actions?: ReactNode }) {+ flushSync(() =>+ root!.render(+ <ThemeProvider>+ <TaskChatBubble item={item} attachedTurn={opts?.attachedTurn} actions={opts?.actions} />+ </ThemeProvider>,+ ),+ );+ }++ const actions = <div data-testid="fake-actions">actions</div>;++ it("hands actions to the attached turn (not this wrapper) so they ride the summary row", () => {+ render(+ { id: "m1", kind: "message", author: "agent", authorName: "CEO", text: "Done.", timestamp: "2:34 PM" },+ { attachedTurn: <div data-testid="fake-attached-turn">2:34 PM Β· Worked</div>, actions },+ );+ const slot = container.querySelector('[data-testid="task-chat-bubble-attached-turn"]');+ expect(slot).not.toBeNull();+ // The turn owns the footer line; the bubble no longer places actions beside+ // it (they ride the turn's `leading` slot, anchored to the summary line).+ expect(slot?.querySelector('[data-testid="fake-attached-turn"]')).not.toBeNull();+ expect(slot?.querySelector('[data-testid="fake-actions"]')).toBeNull();+ });++ it("leads a runless agent reply with actions, timestamp trailing", () => {+ render(+ { id: "m1", kind: "message", author: "agent", authorName: "CEO", text: "Done.", timestamp: "2:34 PM" },+ { actions },+ );+ expect(container.querySelector('[data-testid="fake-actions"]')).not.toBeNull();+ const stamp = [...container.querySelectorAll("span")].find((el) => el.textContent === "2:34 PM");+ expect(stamp).not.toBeNull();+ });++ it("omits the actions row entirely when none are supplied (human bubble)", () => {+ render({ id: "m1", kind: "message", author: "human", text: "Hi", timestamp: "2:34 PM" });+ expect(container.querySelector('[data-testid="fake-actions"]')).toBeNull();+ const stamp = [...container.querySelectorAll("span")].find((el) => el.textContent === "2:34 PM");+ expect(stamp).not.toBeNull();+ });+});diff --git a/ui/src/components/task-chat/TaskChatBubble.tsx b/ui/src/components/task-chat/TaskChatBubble.tsxindex af8f71e3bb..528fbc985c 100644--- a/ui/src/components/task-chat/TaskChatBubble.tsx+++ b/ui/src/components/task-chat/TaskChatBubble.tsx@@ -25,6 +25,13 @@ interface TaskChatBubbleProps {* Supplied by TaskChatThreadView when `item.attachedTurn` is set.*/attachedTurn?: ReactNode;+ /**+ * copy Β· π Β· π controls for an agent bubble's footer line (PAP-413).+ * Rendered here only for a runless reply (leading the bare timestamp); when+ * an attached turn is present it owns these via its `leading` slot instead,+ * so this bubble skips them. Human/system bubbles pass nothing.+ */+ actions?: ReactNode;}function initialsForName(name: string) {@@ -41,7 +48,7 @@ function initialsForName(name: string) {* bubble with an avatar author header (the agent's assigned icon + name Β· mode* chip); system notices are centered and recede.*/-export function TaskChatBubble({ item, attachedTurn }: TaskChatBubbleProps) {+export function TaskChatBubble({ item, attachedTurn, actions }: TaskChatBubbleProps) {if (item.interstitial) {// Interstitial updates are ephemeral (PAP-361): while streaming the text// lives on the live parent row's line (TaskChatStatusItem.selfTalk), and@@ -146,10 +153,24 @@ export function TaskChatBubble({ item, attachedTurn }: TaskChatBubbleProps) {</span>) : attachedTurn ? (// The settled turn takes over the footer line: timestamp + "β Worked"- // summary, always visible; expanding stretches beneath the bubble.+ // summary, always visible; expanding stretches beneath the bubble. The+ // copy/π/π actions (PAP-413) ride the turn's summary row via its+ // `leading` slot β not this wrapper β so they stay anchored to the+ // summary line when the tool history expands beneath it.<div className="self-stretch" data-testid="task-chat-bubble-attached-turn">{attachedTurn}</div>+ ) : actions ? (+ // Agent reply without run activity: the actions still lead the footer,+ // with the always-visible timestamp trailing (PAP-413).+ <div className="flex items-center gap-1">+ {actions}+ {item.timestamp ? (+ <span className="px-1 text-(length:--text-micro) text-muted-foreground">+ {item.timestamp}+ </span>+ ) : null}+ </div>) : item.timestamp ? (// Timestamps are always visible (round 9) β no longer hover-revealed.<span className="px-1 text-(length:--text-micro) text-muted-foreground">diff --git a/ui/src/components/task-chat/TaskChatBubbleActions.tsx b/ui/src/components/task-chat/TaskChatBubbleActions.tsxnew file mode 100644index 0000000000..33f6c9f179--- /dev/null+++ b/ui/src/components/task-chat/TaskChatBubbleActions.tsx@@ -0,0 +1,50 @@+import type {+ FeedbackDataSharingPreference,+ FeedbackVoteValue,+} from "@paperclipai/shared";+import {+ BubbleCopyButton,+ IssueChatFeedbackButtons,+} from "@/components/AgentBubbleActionRow";++/** Feedback-vote wiring for an agent bubble, resolved per comment by the host. */+export interface TaskChatBubbleFeedback {+ activeVote: FeedbackVoteValue | null;+ sharingPreference: FeedbackDataSharingPreference;+ termsUrl: string | null;+ onVote: (+ vote: FeedbackVoteValue,+ options?: { allowSharing?: boolean; reason?: string },+ ) => Promise<void>;+}++/**+ * Compact copy Β· π Β· π cluster prepended to an agent bubble's footer line+ * (PAP-413), leading the "β Worked Β· β¦" turn summary (or the bare timestamp+ * when the reply had no run activity). It reuses the shared+ * {@link BubbleCopyButton} and {@link IssueChatFeedbackButtons} so the+ * redesigned task thread speaks the same footer language as the conference+ * room's {@link AgentBubbleActionRow} without re-declaring their markup; the+ * timestamp stays owned by the summary/bubble, so it is not duplicated here.+ */+export function TaskChatBubbleActions({+ copyText,+ feedback,+}: {+ copyText: string;+ feedback?: TaskChatBubbleFeedback | null;+}) {+ return (+ <div className="flex items-center gap-0.5" data-testid="task-chat-bubble-actions">+ <BubbleCopyButton copyText={copyText} />+ {feedback ? (+ <IssueChatFeedbackButtons+ activeVote={feedback.activeVote}+ sharingPreference={feedback.sharingPreference}+ termsUrl={feedback.termsUrl}+ onVote={feedback.onVote}+ />+ ) : null}+ </div>+ );+}diff --git a/ui/src/components/task-chat/TaskChatThreadView.tsx b/ui/src/components/task-chat/TaskChatThreadView.tsxindex 9916837b3c..fa316c9699 100644--- a/ui/src/components/task-chat/TaskChatThreadView.tsx+++ b/ui/src/components/task-chat/TaskChatThreadView.tsx@@ -1,6 +1,10 @@import type { ReactNode } from "react";import { cn } from "@/lib/utils";-import type { TaskChatInteractionItem, TaskChatItem } from "./task-chat-model";+import type {+ TaskChatInteractionItem,+ TaskChatItem,+ TaskChatMessageItem,+} from "./task-chat-model";import { TaskChatTurn } from "./TaskChatTurn";import { TaskChatBubble } from "./TaskChatBubble";import { TaskChatMarker } from "./TaskChatMarker";@@ -30,6 +34,12 @@ interface TaskChatThreadViewProps {* nothing without it.*/renderBrief?: () => ReactNode;+ /**+ * Renders the copy/π/π action cluster prepended to an agent bubble's footer+ * line (PAP-413). The live thread binds it to the feedback-vote API; harness+ * fixtures omit it and the bubbles render actionless.+ */+ renderMessageActions?: (item: TaskChatMessageItem) => ReactNode;className?: string;/** When false, render the list without the scroll container (e.g. previews). */scroll?: boolean;@@ -40,23 +50,33 @@ function renderItem(onApprovalDecision?: (statusItemId: string, optionId: string) => void,renderInteraction?: (item: TaskChatInteractionItem) => ReactNode,renderBrief?: () => ReactNode,+ renderMessageActions?: (item: TaskChatMessageItem) => ReactNode,) {switch (item.kind) {- case "message":+ case "message": {+ // Compute the actions once: the bubble renders them for a runless reply+ // (footer = actions + timestamp), while an attached turn hands them to+ // TaskChatTurn's `leading` slot so they ride the summary line and stay+ // put when the tool history expands (PAP-413). The two paths are mutually+ // exclusive at runtime, so only one host ever mounts the node.+ const actions = renderMessageActions?.(item);return (<TaskChatBubbleitem={item}+ actions={actions}attachedTurn={item.attachedTurn ? (<TaskChatTurnitem={item.attachedTurn}timestampPrefix={item.timestamp}+ leading={actions}renderChild={(child) => renderItem(child, onApprovalDecision)}/>) : undefined}/>);+ }case "marker":return <TaskChatMarker item={item} />;case "thinking":@@ -107,6 +127,7 @@ export function TaskChatThreadView({onApprovalDecision,renderInteraction,renderBrief,+ renderMessageActions,className,scroll = true,}: TaskChatThreadViewProps) {@@ -118,7 +139,9 @@ export function TaskChatThreadView({</div>) : null}{items.map((item) => (- <div key={item.id}>{renderItem(item, onApprovalDecision, renderInteraction, renderBrief)}</div>+ <div key={item.id}>+ {renderItem(item, onApprovalDecision, renderInteraction, renderBrief, renderMessageActions)}+ </div>))}</div>);diff --git a/ui/src/components/task-chat/TaskChatTurn.test.tsx b/ui/src/components/task-chat/TaskChatTurn.test.tsxindex eec4c9e083..1ec01cf23b 100644--- a/ui/src/components/task-chat/TaskChatTurn.test.tsx+++ b/ui/src/components/task-chat/TaskChatTurn.test.tsx@@ -226,6 +226,28 @@ describe("TaskChatTurn", () => {expect(fold()?.getAttribute("data-folded")).toBe("false");});+ it("rides the `leading` slot on the header row, anchored above the fold (PAP-413)", () => {+ flushSync(() => {+ root.render(+ <TaskChatTurn+ item={SETTLED}+ leading={<div data-testid="turn-lead">actions</div>}+ renderChild={(c) => <span>{c.id}</span>}+ />,+ );+ });+ const lead = container.querySelector('[data-testid="turn-lead"]');+ expect(lead).not.toBeNull();+ // It sits beside the summary button on the header row β NOT inside the+ // expandable fold β so expanding the tool history can't drag it down.+ expect(fold()?.contains(lead!)).toBe(false);+ expect(summaryBtn()).not.toBeNull();+ // Expanding still works and the leading slot stays put outside the fold.+ flushSync(() => summaryBtn()!.click());+ expect(fold()?.getAttribute("data-folded")).toBe("false");+ expect(fold()?.contains(lead!)).toBe(false);+ });+it("leads the settled summary with the bubble timestamp when attached (round 9)", () => {flushSync(() => {root.render(diff --git a/ui/src/components/task-chat/TaskChatTurn.tsx b/ui/src/components/task-chat/TaskChatTurn.tsxindex 314396e583..d66426a743 100644--- a/ui/src/components/task-chat/TaskChatTurn.tsx+++ b/ui/src/components/task-chat/TaskChatTurn.tsx@@ -13,6 +13,13 @@ interface TaskChatTurnProps {* always visible, in the slot the hover-only timestamp used to occupy.*/timestampPrefix?: string;+ /**+ * Content rendered on the header row, leading the summary line (PAP-413: the+ * copy/π/π action cluster). It sits beside the summary button β NOT inside+ * the expandable fold β so it stays anchored to the summary line when the+ * tool history expands beneath it, instead of drifting to the fold's center.+ */+ leading?: ReactNode;}/** Metric segments after the label: "38s Β· 3 tools Β· +34 β3 Β· 12.3k tokens". */@@ -50,7 +57,7 @@ export function turnSummaryText(summary: TaskChatTurnItem["summary"]): string {* `liveStatus` (harness fixtures) renders its children expanded with no header* and folds when it settles.*/-export function TaskChatTurn({ item, renderChild, timestampPrefix }: TaskChatTurnProps) {+export function TaskChatTurn({ item, renderChild, timestampPrefix, leading }: TaskChatTurnProps) {const parentRow = !item.settled && item.liveStatus != null;// Parent-row live turns and settled turns start as their one-line header;// only the headerless legacy live turn starts expanded.@@ -73,40 +80,52 @@ export function TaskChatTurn({ item, renderChild, timestampPrefix }: TaskChatTurconst folded = (item.settled || parentRow) && !open;const SummaryIcon = item.summary.failed ? X : Check;+ const header = item.settled ? (+ <button+ type="button"+ onClick={() => setOpen((o) => !o)}+ aria-expanded={open}+ className="group flex items-center gap-2 px-1 py-0.5 text-xs text-muted-foreground transition-colors hover:text-foreground"+ data-testid="task-chat-turn-summary"+ >+ {timestampPrefix ? (+ <>+ <span className="text-(length:--text-micro)">{timestampPrefix}</span>+ <span aria-hidden className="text-(length:--text-micro)">Β·</span>+ </>+ ) : null}+ <SummaryIcon className="h-3.5 w-3.5 shrink-0" />+ <span>{item.summary.failed ? "Stopped" : "Worked"}</span>+ {turnSummaryMetrics(item.summary) ? (+ <span className="font-mono text-(length:--text-micro)">{turnSummaryMetrics(item.summary)}</span>+ ) : null}+ <ChevronRight className={cn("h-3 w-3 shrink-0 transition-transform", open ? "rotate-90" : null)} />+ </button>+ ) : parentRow ? (+ // The pill renders the expand button itself, wrapped around only the+ // gerund status line β the interstitial row above stays outside the+ // hover/click target (PAP-376). Without activity there is no+ // chevron/button.+ <TaskChatStatusPill+ item={item.liveStatus!}+ chevronOpen={expandable ? open : undefined}+ onToggle={expandable ? () => setOpen((o) => !o) : undefined}+ />+ ) : null;+return (<div data-testid="task-chat-turn" data-settled={item.settled ? "true" : "false"}>- {item.settled ? (- <button- type="button"- onClick={() => setOpen((o) => !o)}- aria-expanded={open}- className="group flex items-center gap-2 px-1 py-0.5 text-xs text-muted-foreground transition-colors hover:text-foreground"- data-testid="task-chat-turn-summary"- >- {timestampPrefix ? (- <>- <span className="text-(length:--text-micro)">{timestampPrefix}</span>- <span aria-hidden className="text-(length:--text-micro)">Β·</span>- </>- ) : null}- <SummaryIcon className="h-3.5 w-3.5 shrink-0" />- <span>{item.summary.failed ? "Stopped" : "Worked"}</span>- {turnSummaryMetrics(item.summary) ? (- <span className="font-mono text-(length:--text-micro)">{turnSummaryMetrics(item.summary)}</span>- ) : null}- <ChevronRight className={cn("h-3 w-3 shrink-0 transition-transform", open ? "rotate-90" : null)} />- </button>- ) : parentRow ? (- // The pill renders the expand button itself, wrapped around only the- // gerund status line β the interstitial row above stays outside the- // hover/click target (PAP-376). Without activity there is no- // chevron/button.- <TaskChatStatusPill- item={item.liveStatus!}- chevronOpen={expandable ? open : undefined}- onToggle={expandable ? () => setOpen((o) => !o) : undefined}- />- ) : null}+ {leading ? (+ // Actions ride the header row (items-center matches them to the summary+ // line), and the fold below is a separate sibling β so expanding the+ // tool history never moves the actions off the summary line (PAP-413).+ <div className="flex items-center gap-1">+ {leading}+ {header}+ </div>+ ) : (+ header+ )}<div className="tc-turn-fold" data-folded={folded ? "true" : "false"} aria-hidden={folded}><div><div className="flex flex-col gap-2 pt-1">diff --git a/ui/src/pages/TaskChatLab.tsx b/ui/src/pages/TaskChatLab.tsxindex ca79e6cb52..cc9590d0da 100644--- a/ui/src/pages/TaskChatLab.tsx+++ b/ui/src/pages/TaskChatLab.tsx@@ -8,8 +8,32 @@ import {import { buildScenario } from "@/components/task-chat/task-chat-fixtures";import { TaskChatThreadView } from "@/components/task-chat/TaskChatThreadView";import { TaskChatPlanView } from "@/components/task-chat/TaskChatPlanView";+import { TaskChatBubbleActions } from "@/components/task-chat/TaskChatBubbleActions";import { TweakPanel } from "@/components/task-chat/TweakPanel";-import type { TaskChatItem } from "@/components/task-chat/task-chat-model";+import type {+ TaskChatItem,+ TaskChatMessageItem,+} from "@/components/task-chat/task-chat-model";++/**+ * Demo binding for the agent-bubble copy Β· π Β· π cluster (PAP-413). The live+ * thread wires these to the feedback-vote API; here the votes no-op so the+ * harness can show the footer without a control plane.+ */+function labMessageActions(item: TaskChatMessageItem) {+ if (item.author !== "agent" || item.optimistic) return null;+ return (+ <TaskChatBubbleActions+ copyText={item.text}+ feedback={{+ activeVote: null,+ sharingPreference: "allowed",+ termsUrl: null,+ onVote: async () => {},+ }}+ />+ );+}/** Replay ticks of selfTalk gap between scripted interstitial updates (~0.7s at 1Γ). */const SELF_TALK_GAP_TICKS = 30;@@ -210,7 +234,7 @@ export function TaskChatLab() {</div>) : (<div className="mx-auto flex min-h-0 w-full max-w-2xl flex-1 flex-col">- <TaskChatThreadView items={items} />+ <TaskChatThreadView items={items} renderMessageActions={labMessageActions} /></div>)}</div>