zed/crates/project/tests/integration
sunwukk990 fddfc3fbee
acp: Prevent registry loading from hanging indefinitely (#56108)
Helps #51567
Refs #54531

Summary:

- Add total timeouts for ACP Registry JSON fetches and icon fetches,
including response body reads.
- Download registry icons concurrently and keep icon failures non-fatal,
so a blocked icon CDN does not delay registry availability by one
timeout per agent.
- Surface the stored registry fetch error in the ACP Registry empty
state and add a retry action.

This addresses cases where the registry request, or one of the icon
requests, never finishes. It does not make blocked networks succeed, but
it prevents the UI from sitting on `Loading registry...` indefinitely
and gives the user something actionable instead.

Test plan:

- `git diff --check HEAD~1..HEAD`
- `cargo fmt --check --package project --package agent_ui`
- `cargo check -p project`
- `cargo check -p agent_ui`
- `cargo test -p project --features test-support registry_refresh_`

Release Notes:

- Fixed the ACP Registry getting stuck on loading when registry or icon
requests hang.

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-05-12 08:52:12 +00:00
..
agent_registry_store.rs acp: Prevent registry loading from hanging indefinitely (#56108) 2026-05-12 08:52:12 +00:00
bookmark_store.rs editor: Introduce Bookmarks (#54174) 2026-04-17 13:54:43 +02:00
color_extractor.rs
context_server_store.rs agent: Don't connect to MCP servers when AI is globally disabled (#47857) 2026-03-06 17:21:44 +01:00
debugger.rs git: Add create git worktree hook to task system (#51337) 2026-04-01 16:14:48 -04:00
ext_agent_tests.rs acp: Better handling of terminal auth on remote connections (#53396) 2026-04-08 18:21:02 +00:00
extension_agent_tests.rs acp: Better handling of terminal auth on remote connections (#53396) 2026-04-08 18:21:02 +00:00
git_store.rs Fix remote worktree path separators (#55486) 2026-05-06 00:06:51 +00:00
image_store.rs
lsp_command.rs
lsp_store.rs language_core: Introduce fallback highlights (#52575) 2026-04-02 12:52:42 +00:00
manifest_tree.rs
project_search.rs
project_tests.rs acp: Prevent registry loading from hanging indefinitely (#56108) 2026-05-12 08:52:12 +00:00
search.rs Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
search_history.rs Allow search/replace to span multiple lines (#50783) 2026-03-19 11:10:14 -06:00
signature_help.rs Use SharedString::new_static for string literals (#47865) 2026-01-28 15:12:48 +00:00
task_inventory.rs task: Skip .vscode tasks when .zed/tasks.json exists (#51797) 2026-03-24 15:18:49 +00:00
trusted_worktrees.rs
yarn.rs