VulCode

Zed: our changes to an open source project

A fast code editor in Rust from the creators of Atom and Tree-sitter, with live multiplayer editing.

All contributions
Language
Rust
GitHub stars
91,587
Project site
zed.dev
1merged change
Merged on 1 October 2026.
The most stars of the 64 GitHub projects with our changes.

The change merged into Zed

A slow-loading ChatGPT model catalogue now loads in the background and no longer blocks signing in to the subscription.

How we tested it

We added test_slow_model_catalog_does_not_block_initial_load, with a fake HTTP client that holds the response back. The initial load finishes after 5 seconds with the built-in models, and a response arriving 30 seconds later replaces them with the account's models.

Rust

Our projects in this technology, their screens and when we choose it.

The bug, the fix and the lesson

A summary of our Tech news write-up: what was broken, what we changed and what it means for our own work.

What was broken

A slow model catalog hid the account's models

For some accounts the model catalog of a ChatGPT subscription answers after about 30 seconds, and Zed aborted the request after 5. The account's own models then disappeared from the selector.

What we changed

Two timeouts instead of one

Sign-in still waits at most 5 seconds, while the request keeps running in the background for up to 60 seconds and replaces the model list when it returns.

futures::select! {
result = refresh => log_model_catalog_error(result),
() = wait_timeout => {
cx.spawn(async move |_| log_model_catalog_error(refresh.await))
.detach();
}
}
What it taught us

A slow network request must not block signing in.

What is not needed right away gets loaded in the background.

Other projects with our changes: Rust

6 projects in this technology have our merged changes. The bar is the repository's stars, next to it the number of our changes. Each row leads to the project's page.

Questions about our changes to Zed

Where these changes come from, who merged them and whether we can fix something in your library.

Using Zed in your project?

If something in it does not work, we fix it at the source and leave a workaround until the release. We reply within an hour.