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
@@ -3444,6 +3444,7 @@ async fn hosted_web_search_and_standalone_image_generation_follow_runtime_gates(
standalone_web_search.assert_visible_lacks(&["web_search"]);
let bedrock_cached_web_search = probe(|turn| {
set_web_search_mode(turn, WebSearchMode::Cached);
use_bedrock_provider(turn);
update_turn_settings_for_test(turn, |settings| {
Arc::make_mut(&mut settings.model_info).web_search_tool_type = WebSearchToolType::Text;