on main help sign in
Revert "fix: prevent filename insertion when dragging attachments" (#1773)
commitbf39639c3d152196384fc139161719202f04f2f8 authorChristian Rocha <christian@rocha.is> dateMon 5 Jan 2026, 18:54 (9 months ago) parent56f1b37
1 file changed+1
internal/tui/components/chat/editor/editor.go+1
internal/tui/components/chat/editor/editor.go+1
@@ -247,6 +247,7 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) {
247247 if !attachment.IsText() && !attachment.IsImage() {
248248 return m, util.ReportWarn("Invalid file content type: " + mimeType)
249249 }
250+ m.textarea.InsertString(attachment.FileName)
250251 return m, util.CmdHandler(filepicker.FilePickedMsg{
251252 Attachment: attachment,
252253 })