Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/web/src/components/chat/QueuedRunsControl.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { scopeThreadRef } from "@t3tools/client-runtime/environment";
import { deriveThreadQueueWorkflowState } from "@t3tools/client-runtime/state/thread-workflows";
import { replaceComposerContextReferences } from "@t3tools/shared/composerContextReferences";
import type {
ChatAttachment as ContractChatAttachment,
EnvironmentId,
Expand Down Expand Up @@ -282,6 +283,9 @@ export function QueuedRunsControl({
<ComposerBanner.Scroll className={cn("max-h-32", !expanded && "hidden")}>
<ComposerBanner.Children render={<ol />} id={queueListId}>
{items.map((item) => {
const previewText = replaceComposerContextReferences(item.text, (reference) =>
reference.kind === "image" && item.thumbnails.length > 0 ? "" : reference.label,
).trim();
const rowRunId = item.runId;
const rowServerIndex = item.serverIndex;
const isEditing = rowRunId !== null && rowRunId === props.editingRunId;
Expand Down Expand Up @@ -403,10 +407,10 @@ export function QueuedRunsControl({
) : null}
<Tooltip>
<TooltipTrigger render={<span className="min-w-0 flex-1 truncate" />}>
{item.text}
{previewText}
</TooltipTrigger>
<TooltipPopup side="top" className="max-w-96 break-words">
{item.text}
{previewText}
</TooltipPopup>
</Tooltip>
</ComposerBanner.Content>
Expand Down
Loading