fix: prevent filename insertion when dragging attachments (#1683)

Christian Rocha created

Change summary

internal/tui/components/chat/editor/editor.go | 1 -
1 file changed, 1 deletion(-)

Detailed changes

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,
 		})