From bf39639c3d152196384fc139161719202f04f2f8 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 5 Jan 2026 18:54:38 -0500 Subject: [PATCH] Revert "fix: prevent filename insertion when dragging attachments" (#1773) --- internal/tui/components/chat/editor/editor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 1623ba806cd9e93bd1544aabbdb6a7e3f6604bcc..014d662ce59d1de84f16cd17057aa158c80384a7 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -247,6 +247,7 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { if !attachment.IsText() && !attachment.IsImage() { return m, util.ReportWarn("Invalid file content type: " + mimeType) } + m.textarea.InsertString(attachment.FileName) return m, util.CmdHandler(filepicker.FilePickedMsg{ Attachment: attachment, })