---
title: "Zed: background model catalogue loading in Rust | VulCode"
description: "A fix to the Zed editor in Rust: a slow ChatGPT subscription model catalogue loads in the background, so account models stay and sign-in does not wait."
url: "https://vulcode.com/en/opensource/contributions/zed"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/contributions)

zed-industries/zed

# Zed

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

[See the repository](https://github.com/zed-industries/zed) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: Rust
- **GitHub stars**: 95,562
- **Merged changes**: 1
- **Project site**: [zed.dev](https://zed.dev)

## What we changed

A slow ChatGPT subscription model catalogue now keeps loading in the background for up to 60 seconds, so the account's models no longer vanish from the selector, while sign-in still waits at most 5 seconds.

### What this work shows

- Background async tasks in Rust

- HTTP request timeouts

- Testing asynchronous code

What was broken

### A slow model catalogue hid the account's models

For some accounts the model catalogue 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, leaving the built-in list.

How we fixed it

### 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. A test checks that a response after 30 seconds replaces the built-in list.

[#64925](https://github.com/zed-industries/zed/pull/64925)

## Merged change 1

- [#64925 openai_subscribed: Keep loading slow model catalogs in the background Merged 1 October 2026](https://github.com/zed-industries/zed/pull/64925)

## What it taught us

A slow network request must neither block sign-in nor silently swap real data for defaults. We separate the timeout the user waits on from the background request's timeout, and check it with a test whose response arrives after 30 seconds.

[More about this technology: Rust](https://vulcode.com/en/technologies/rust)

## Other projects we write code for

- [**uv** Rust · 92,647 stars An extremely fast Python package and project manager written in Rust. It creates projects, installs dependencies and manages virtual environments.](https://vulcode.com/en/opensource/contributions/uv)

- [**ripgrep** Rust · 70,186 stars A command line tool that recursively searches directories for a regex pattern while respecting your .gitignore. Written in Rust.](https://vulcode.com/en/opensource/contributions/ripgrep)

- [**Alacritty** Rust · 66,271 stars A cross-platform terminal emulator rendered with OpenGL, written in Rust and configured with a TOML file.](https://vulcode.com/en/opensource/contributions/alacritty)

- [**Gleam** Rust · 22,083 stars A friendly programming language for building type-safe, scalable systems. Its compiler is written in Rust.](https://vulcode.com/en/opensource/contributions/gleam)

- [**Sonic** Rust · 21,387 stars A lightweight full-text search backend in Rust, an alternative to Elasticsearch that runs in a few megabytes of RAM.](https://vulcode.com/en/opensource/contributions/sonic)

- [**Pagefind** Rust · 5,575 stars A Rust search engine for static sites that indexes the built site and only sends the needed parts of the index to the browser.](https://vulcode.com/en/opensource/contributions/pagefind)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
