From c91b9173836481fd44bfdc65cfa5abce2b720c38 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Tue, 21 Apr 2026 16:55:08 +0200 Subject: [PATCH] agent_ui: Sort thread import agents by display name (#54417) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A --- crates/agent_ui/src/thread_import.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/agent_ui/src/thread_import.rs b/crates/agent_ui/src/thread_import.rs index a8bd95916a7111afe4a7a75f11ff78f3547b4398..4e98ec404211f2a851941c1b7404d889d4e95472 100644 --- a/crates/agent_ui/src/thread_import.rs +++ b/crates/agent_ui/src/thread_import.rs @@ -11,6 +11,7 @@ use gpui::{ App, Context, DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, MouseDownEvent, Render, SharedString, Task, WeakEntity, Window, }; +use itertools::Itertools as _; use notifications::status_toast::StatusToast; use project::{AgentId, AgentRegistryStore, AgentServerStore}; use release_channel::ReleaseChannel; @@ -138,6 +139,7 @@ impl ThreadImportModal { icon_path, } }) + .sorted_unstable_by_key(|entry| entry.display_name.to_lowercase()) .collect::>(); Self {