feat(tui): parse for file attachments when exiting EDITOR (#1117)

This commit is contained in:
Timo Clasen
2025-07-18 11:47:20 +02:00
committed by GitHub
parent 571aeaaea2
commit df33143396
2 changed files with 103 additions and 60 deletions

View File

@@ -334,7 +334,7 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
cmds = append(cmds, cmd)
case app.SetEditorContentMsg:
// Set the editor content without sending
a.editor.SetValue(msg.Text)
a.editor.SetValueWithAttachments(msg.Text)
updated, cmd := a.editor.Focus()
a.editor = updated.(chat.EditorComponent)
cmds = append(cmds, cmd)