Revert "fix: prevent filename insertion when dragging attachments" (#1773)

Christian Rocha created

Change summary

internal/tui/components/chat/editor/editor.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

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