From 591f55bef93ad53bdcbecb3d7e94ec8daf8d0d84 Mon Sep 17 00:00:00 2001 From: Shantur Rathore Date: Wed, 14 Jan 2026 21:35:18 +0000 Subject: [PATCH] fix(ui): render prompt attachments above input --- packages/ui/src/components/prompt-input.tsx | 96 +------------------ .../src/components/session/session-view.tsx | 21 +++- 2 files changed, 20 insertions(+), 97 deletions(-) diff --git a/packages/ui/src/components/prompt-input.tsx b/packages/ui/src/components/prompt-input.tsx index 5a56c0ff..f6295c37 100644 --- a/packages/ui/src/components/prompt-input.tsx +++ b/packages/ui/src/components/prompt-input.tsx @@ -1080,101 +1080,8 @@ export default function PromptInput(props: PromptInputProps) {
- 0}> -
- - {(attachment) => { - const isImage = attachment.mediaType.startsWith("image/") - const textValue = attachment.source.type === "text" ? attachment.source.value : undefined - const isTextAttachment = typeof textValue === "string" - return ( -
- - - - } - > - - - - - } - > - - - - - } - > - {attachment.filename} - - {isTextAttachment ? attachment.display : attachment.filename} - - - - - -
- {attachment.filename} -
-
-
- ) - }} -
-
-
+