Handle drag and drop in new agent threads (#35879)

This is a bit simpler than for the original agent thread view, since we
don't have to deal with opening buffers or a context store.

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-08-08 15:03:50 -04:00 committed by GitHub
parent 2cde6da5ff
commit f3a58b50c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 61 additions and 4 deletions

View file

@ -3187,8 +3187,10 @@ impl AgentPanel {
.detach();
});
}
ActiveView::ExternalAgentThread { .. } => {
unimplemented!()
ActiveView::ExternalAgentThread { thread_view } => {
thread_view.update(cx, |thread_view, cx| {
thread_view.insert_dragged_files(paths, added_worktrees, window, cx);
});
}
ActiveView::TextThread { context_editor, .. } => {
context_editor.update(cx, |context_editor, cx| {