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)
This commit is contained in:
Winston Howes
2026-06-19 09:00:44 -07:00
committed by GitHub
Unverified
parent 04483f4ce5
commit c83618ab20
+2 -2
View File
@@ -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)]