thread_view: Fix issues with images (#36509)

- Clean up failed load tasks for mentions that require async processing
- When dragging and dropping files, hold onto added worktrees until any
async processing has completed; this fixes a bug when dragging items
from outside the project

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-08-19 15:14:43 -04:00 committed by GitHub
parent a91acb5f41
commit df9c2aefb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 85 additions and 61 deletions

View file

@ -3429,8 +3429,7 @@ impl AcpThreadView {
cx: &mut Context<Self>,
) {
self.message_editor.update(cx, |message_editor, cx| {
message_editor.insert_dragged_files(paths, window, cx);
drop(added_worktrees);
message_editor.insert_dragged_files(paths, added_worktrees, window, cx);
})
}