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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user