From 41335547790de560fad7f33a69ef32d53591c41f Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sun, 21 Dec 2025 11:20:28 -0500 Subject: [PATCH] fix: prevent filename insertion when dragging attachments (#1683) --- internal/tui/components/chat/editor/editor.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 014d662ce59d1de84f16cd17057aa158c80384a7..1623ba806cd9e93bd1544aabbdb6a7e3f6604bcc 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -247,7 +247,6 @@ 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, })