Add an opt-in indexed web search default (#62894)

## What changed

Add `features.web_search_indexed_default` to let restricted turns use
`indexed` search in place of the implicit `cached` default when the
provider and managed requirements allow it. Full-access turns still
prefer `live` search when allowed, and an explicit `indexed` selection
retains its existing precedence.

Forward the flag through the TUI and keep the default implicit when
launch overrides disable legacy search flags.

## Testing

Cover mode selection across permission profiles, explicit settings, and
managed requirements. Verify that the first model request advertises
indexed search and that permission changes take effect on the next turn.

GitOrigin-RevId: 08a6279c447c517c50b9e6a544ecdf681b81bf50
This commit is contained in:
Winston Howes
2026-11-21 04:05:41 +00:00
committed by copyberry
parent bfe3c82570
commit 4739e94260
17 changed files with 854 additions and 228 deletions
+8
View File
@@ -203,6 +203,8 @@ pub enum Feature {
/// Allow the model to request web searches that fetch cached content.
/// Takes precedence over `WebSearchRequest`.
WebSearchCached,
/// Prefer indexed search when the implicit cached default can be upgraded.
WebSearchIndexedDefault,
/// Expose the extension-backed standalone web search tool.
StandaloneWebSearch,
/// Request the legacy Landlock mode of the Linux sandbox.
@@ -1463,6 +1465,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Deprecated,
default_enabled: false,
},
FeatureSpec {
id: Feature::WebSearchIndexedDefault,
key: "web_search_indexed_default",
stage: Stage::Stable,
default_enabled: false,
},
FeatureSpec {
id: Feature::StandaloneWebSearch,
key: "standalone_web_search",