From 7faf213848ef68346387a796468f5a2b6de7f9c5 Mon Sep 17 00:00:00 2001 From: Noah Sigel Date: Wed, 18 Nov 2026 19:46:52 -0800 Subject: [PATCH 1/2] fix(web): a subagent's row in Background work details opens it "Open subagent" sat under each subagent as plain text, so it did not read as a control (#38287), and the eye goes to the row's right side, where the status is. The whole row, title and status, is now the button, with a chevron after the status, as agent rows in thread details work. Co-Authored-By: Claude Opus 5.5 --- .../components/chat/BackgroundWorkDetails.tsx | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.tsx index 72ca70c2b16e..7e35b41afa4d 100644 --- a/apps/web/src/components/chat/BackgroundWorkDetails.tsx +++ b/apps/web/src/components/chat/BackgroundWorkDetails.tsx @@ -6,6 +6,7 @@ import type { import type { ThreadStructure } from "@t3tools/client-runtime/state/shell"; import { backgroundWorkHoldsCompletion } from "@t3tools/shared/orchestrationV2PendingBackgroundWork"; import { T, useGT } from "gt-react"; +import { ChevronRightIcon } from "lucide-react"; import { useState } from "react"; import { InlineButton } from "../ui/button"; @@ -75,16 +76,33 @@ export function BackgroundWorkDetails(props: { const itemId = task.itemId ?? (item?.type === "command_execution" ? item.id : undefined); const childThreadId = task.kind === "subagent" ? task.childThreadId : undefined; + const heading =

{title}

; + const status = backgroundWorkHoldsCompletion([task]) + ? gt("Waiting", { $context: "status of background work" }) + : gt("Running", { $context: "status of background work" }); return (
-
-

{title}

- - {backgroundWorkHoldsCompletion([task]) - ? gt("Waiting", { $context: "status of background work" }) - : gt("Running", { $context: "status of background work" })} - -
+ {childThreadId ? ( + + ) : ( +
+ {heading} + {status} +
+ )} {command ? (
@@ -99,16 +117,6 @@ export function BackgroundWorkDetails(props: { />
) : null} - {childThreadId ? ( - { - setOpen(false); - props.onOpenThread(childThreadId); - }} - > - Open subagent - - ) : null}
); })} From 26035abfd9674050d274e69948b5c92a86939349 Mon Sep 17 00:00:00 2001 From: Noah Sigel Date: Wed, 18 Nov 2026 20:03:45 -0800 Subject: [PATCH 2/2] fix(web): keep the subagent heading outside its row button A heading is not valid button content and loses its heading role inside one, so the h3 now wraps the button and the title is a span. Co-Authored-By: Claude Opus 5.5 --- .../components/chat/BackgroundWorkDetails.tsx | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.tsx index 7e35b41afa4d..ee922daa902c 100644 --- a/apps/web/src/components/chat/BackgroundWorkDetails.tsx +++ b/apps/web/src/components/chat/BackgroundWorkDetails.tsx @@ -76,30 +76,31 @@ export function BackgroundWorkDetails(props: { const itemId = task.itemId ?? (item?.type === "command_execution" ? item.id : undefined); const childThreadId = task.kind === "subagent" ? task.childThreadId : undefined; - const heading =

{title}

; const status = backgroundWorkHoldsCompletion([task]) ? gt("Waiting", { $context: "status of background work" }) : gt("Running", { $context: "status of background work" }); return (
{childThreadId ? ( - +

+ +

) : (
- {heading} +

{title}

{status}
)}