on main help sign in
fix: prevent filename insertion when dragging attachments (#1683)
commit41335547790de560fad7f33a69ef32d53591c41f authorChristian Rocha <christian@rocha.is> dateSun 21 Dec 2025, 11:20 (1 year ago) parentd6329f6
1 file changed−1
internal/tui/components/chat/editor/editor.go−1
internal/tui/components/chat/editor/editor.go−1
@@ -247,7 +247,6 @@ 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)
251250 return m, util.CmdHandler(filepicker.FilePickedMsg{
252251 Attachment: attachment,
253252 })