diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.tsx index 72ca70c2b16e..ee922daa902c 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,34 @@ export function BackgroundWorkDetails(props: { const itemId = task.itemId ?? (item?.type === "command_execution" ? item.id : undefined); const childThreadId = task.kind === "subagent" ? task.childThreadId : undefined; + 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 ? ( +

+ +

+ ) : ( +
+

{title}

+ {status} +
+ )} {command ? (
@@ -99,16 +118,6 @@ export function BackgroundWorkDetails(props: { />
) : null} - {childThreadId ? ( - { - setOpen(false); - props.onOpenThread(childThreadId); - }} - > - Open subagent - - ) : null}
); })}