zeta: Respect x-zed-minimum-required-version header (#24771)

This PR makes it so Zeta respects the `x-zed-minimum-required-version`
header sent back from the server.

If the current Zed version is strictly less than the indicated minimum
required version, we show an error indicating that an update is required
in order to continue using Zeta:

<img width="472" alt="Screenshot 2025-02-12 at 6 15 44 PM"
src="https://github.com/user-attachments/assets/51b85dff-23a0-464c-ae4b-5b8f46b5915c"
/>

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-02-12 18:58:38 -05:00 committed by GitHub
parent 0e42a69490
commit 277fb54632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 132 additions and 19 deletions

6
Cargo.lock generated
View file

@ -16852,9 +16852,9 @@ dependencies = [
[[package]]
name = "zed_llm_client"
version = "0.4.0"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "614669bead4741b2fc352ae1967318be16949cf46f59013e548c6dbfdfc01252"
checksum = "1bf21350eced858d129840589158a8f6895c4fa4327ae56dd8c7d6a98495bed4"
dependencies = [
"serde",
"serde_json",
@ -17076,6 +17076,7 @@ dependencies = [
"postage",
"project",
"regex",
"release_channel",
"reqwest_client",
"rpc",
"serde",
@ -17085,6 +17086,7 @@ dependencies = [
"telemetry",
"telemetry_events",
"theme",
"thiserror 1.0.69",
"tree-sitter-go",
"tree-sitter-rust",
"ui",