feat: improve file attachment pasting (#1704)

This commit is contained in:
Dominik Engelhardt
2025-08-09 03:06:38 +02:00
committed by GitHub
parent 7bbc643600
commit 81a3e02474
3 changed files with 435 additions and 49 deletions

View File

@@ -382,6 +382,9 @@ func (a Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
a.app.Messages = []app.Message{}
case dialog.CompletionDialogCloseMsg:
a.showCompletionDialog = false
case chat.AttachmentInsertedMsg:
// Close completion dialog when the editor inserts an attachment
a.showCompletionDialog = false
case opencode.EventListResponseEventInstallationUpdated:
return a, toast.NewSuccessToast(
"opencode updated to "+msg.Properties.Version+", restart to apply.",