Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): clarify the waiting label for background work #28969

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/28969/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 2 changed files with 32 additions and 26 deletions.

x
0 of 2 viewed, 2 left
28 additions and 20 deletionsapps/web/src/components/chat/ThreadActivityBanners.tsxModified
View file
@@ -11,6 +11,7 @@
type RunStopPresentation,
} from "@t3tools/client-runtime/state/thread-execution";
import { childThreadInputsTitle } from "@t3tools/client-runtime/state/threads";
+import { commandDisplayText } from "@t3tools/client-runtime/work-log/command-label";
import { formatDuration } from "@t3tools/shared/orchestrationTiming";
import * as DateTime from "effect/DateTime";
import {
@@ -25,7 +26,6 @@
} from "lucide-react";
import { Fragment } from "react";
import { tickTextContent } from "~/lib/tickTextContent";
-import { cn } from "~/lib/utils";
import { Button, InlineButton } from "../ui/button";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import type { ComposerBannerStackItem } from "./ComposerBannerStack";
@@ -174,6 +174,16 @@
const subagent = item?.type === "subagent" ? item : undefined;
return {
task,
+ label:
+ item?.type === "command_execution" && commandDisplayText(item.input) === task.label ? (
+ <span className="font-mono in-data-[slot=popover-popup]:whitespace-pre-wrap">
+ {task.label}
+ </span>
+ ) : task.label.includes("\n") ? (
+ <span className="in-data-[slot=popover-popup]:whitespace-pre-wrap">{task.label}</span>
+ ) : (