fix: hide queue attachment action for messages without attachments

Derive attachment presence from saved queue inputs and only show the preview action when attachments exist. Cover queue metadata and button visibility with regression tests.

Release note: Queued messages without attachments no longer show the View attachments button.
This commit is contained in:
mesalogo
2026-09-23 23:44:08 +08:00
parent c71c0adf9e
commit d5f6dc6990
7 changed files with 44 additions and 2 deletions
+1
View File
@@ -200,6 +200,7 @@ export type ConversationAttachment = z.infer<
export const conversationQueueItemSchema = z
.object({
hasAttachments: z.boolean().optional(),
error: z.string().max(1000).optional(),
id: assistantIdSchema,
conversationId: assistantIdSchema,