From c83618ab2098525d343df2160d98b2449dca6d5d Mon Sep 17 00:00:00 2001 From: Winston Howes Date: Fri, 19 Jun 2026 09:00:44 -0700 Subject: [PATCH] Use cached and live web access terminology (#29095) ## Summary - Rename the string-valued external web access enum variants from `Offline` / `Online` to `Cached` / `Live`. - Align the transport names with the existing `web_search = "cached"` / `"live"` configuration vocabulary. Existing behavior is unchanged: `WebSearchMode::Cached` and `WebSearchMode::Live` continue to send the backward-compatible boolean values `false` and `true`; `Indexed` remains the only mode currently sent as a string. ## Validation - `just fmt` - `just test -p codex-api` (127 passed) --- codex-rs/codex-api/src/search.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/codex-api/src/search.rs b/codex-rs/codex-api/src/search.rs index b896186af..7219684af 100644 --- a/codex-rs/codex-api/src/search.rs +++ b/codex-rs/codex-api/src/search.rs @@ -214,9 +214,9 @@ pub enum SearchResponseLength { #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, JsonSchema)] #[serde(rename_all = "snake_case")] pub enum ExternalWebAccessMode { - Offline, + Cached, Indexed, - Online, + Live, } #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, JsonSchema)]