From 1702a05920327553e12667af62c08a73acf6a491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Houl=C3=A9?= <13155277+tomhoule@users.noreply.github.com> Date: Wed, 18 Feb 2026 20:30:40 +0100 Subject: [PATCH] cloud_llm_client: Delete unused variants of CompletionRequestStatus (#49516) Small clean up commit. Co-authored-by: Marshall Release Notes: - N/A --- crates/cloud_llm_client/src/cloud_llm_client.rs | 5 ----- crates/language_model/src/language_model.rs | 4 ---- 2 files changed, 9 deletions(-) diff --git a/crates/cloud_llm_client/src/cloud_llm_client.rs b/crates/cloud_llm_client/src/cloud_llm_client.rs index 20e4d49bb3e42e0e9ce92e61bb0dfa377d9c2ad6..f69c279b24718b76fe2ae10f066d57324fe03461 100644 --- a/crates/cloud_llm_client/src/cloud_llm_client.rs +++ b/crates/cloud_llm_client/src/cloud_llm_client.rs @@ -222,11 +222,6 @@ pub enum CompletionRequestStatus { /// Retry duration in seconds. retry_after: Option, }, - UsageUpdated { - amount: usize, - limit: UsageLimit, - }, - ToolUseLimitReached, /// The cloud sends a StreamEnded message when the stream from the LLM provider finishes. StreamEnded, #[serde(other)] diff --git a/crates/language_model/src/language_model.rs b/crates/language_model/src/language_model.rs index f9687a0c820b6df25d24370704de05e9b594c332..313a7a3b4d94726a2e6619eddd0fd14e5e4c30e4 100644 --- a/crates/language_model/src/language_model.rs +++ b/crates/language_model/src/language_model.rs @@ -111,10 +111,6 @@ impl LanguageModelCompletionEvent { } CompletionRequestStatus::Started => Ok(Some(LanguageModelCompletionEvent::Started)), CompletionRequestStatus::Unknown | CompletionRequestStatus::StreamEnded => Ok(None), - CompletionRequestStatus::UsageUpdated { .. } - | CompletionRequestStatus::ToolUseLimitReached => Err( - LanguageModelCompletionError::Other(anyhow!("Unexpected status: {status:?}")), - ), CompletionRequestStatus::Failed { code, message,