feat: improve file attachment pasting (#1704)
This commit is contained in:
committed by
GitHub
parent
7bbc643600
commit
81a3e02474
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user