Revert "feat: improve file attachment pasting (#1704)"

This reverts commit 81a3e02474.
This commit is contained in:
adamdotdevin
2025-08-11 18:36:15 -05:00
parent 04b51f2610
commit febf902dc4
3 changed files with 51 additions and 437 deletions

View File

@@ -382,9 +382,6 @@ 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.",