From 4b513a767f313995bb8b8b2c6b35f33db249e366 Mon Sep 17 00:00:00 2001 From: maria-rcks Date: Mon, 21 Sep 2026 00:59:12 +0000 Subject: [PATCH 1/2] fix(web): render queued image previews without raw context links --- .../src/components/chat/QueuedRunsControl.tsx | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/apps/web/src/components/chat/QueuedRunsControl.tsx b/apps/web/src/components/chat/QueuedRunsControl.tsx index 3670d1dd7ac3..b3edbf9492cd 100644 --- a/apps/web/src/components/chat/QueuedRunsControl.tsx +++ b/apps/web/src/components/chat/QueuedRunsControl.tsx @@ -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, @@ -282,6 +283,9 @@ export function QueuedRunsControl({ } 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; @@ -370,26 +374,38 @@ export function QueuedRunsControl({ ) : null} - + {isEditing ? Editing queued message: : null} - {item.pending ? ( - - ) : null} + + {item.pending ? ( + + ) : null} + {previewText ? ( + + }> + {previewText} + + + {previewText} + + + ) : null} + {item.thumbnails.length > 0 ? ( - + {item.thumbnails.map((thumbnail) => ( {thumbnail.url ? ( {thumbnail.name} ) : ( ) : null} - - }> - {item.text} - - - {item.text} - - {isEditing ? ( From 2f3ec0cb075c79666267d4ce183d11dadb0ab4b2 Mon Sep 17 00:00:00 2001 From: maria-rcks Date: Mon, 21 Sep 2026 01:18:54 +0000 Subject: [PATCH 2/2] fix(web): preserve the compact queue thumbnail layout --- .../src/components/chat/QueuedRunsControl.tsx | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/apps/web/src/components/chat/QueuedRunsControl.tsx b/apps/web/src/components/chat/QueuedRunsControl.tsx index b3edbf9492cd..6b0ccc525be9 100644 --- a/apps/web/src/components/chat/QueuedRunsControl.tsx +++ b/apps/web/src/components/chat/QueuedRunsControl.tsx @@ -374,38 +374,26 @@ export function QueuedRunsControl({ ) : null} - + {isEditing ? Editing queued message: : null} - - {item.pending ? ( - - ) : null} - {previewText ? ( - - }> - {previewText} - - - {previewText} - - - ) : null} - + {item.pending ? ( + + ) : null} {item.thumbnails.length > 0 ? ( - + {item.thumbnails.map((thumbnail) => ( {thumbnail.url ? ( {thumbnail.name} ) : ( ) : null} + + }> + {previewText} + + + {previewText} + + {isEditing ? (