This commit is contained in:
Sayan Sisodiya
2026-03-04 19:12:11 -08:00
parent 3472be1138
commit bcb5b8f703
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -96,6 +96,7 @@ impl ToolsConfig {
features.enabled(Feature::ImageGeneration) && supports_image_generation(model_info);
let include_agent_jobs = include_collab_tools && features.enabled(Feature::Sqlite);
let request_permission_enabled = features.enabled(Feature::RequestPermissions);
let include_web_search_image_support = features.enabled(Feature::WebSearchImageSupport);
let shell_command_backend =
if features.enabled(Feature::ShellTool) && features.enabled(Feature::ShellZshFork) {
ShellCommandBackendConfig::ZshFork
@@ -143,7 +144,7 @@ impl ToolsConfig {
allow_login_shell: true,
apply_patch_tool_type,
web_search_mode: *web_search_mode,
web_search_image_support: features.enabled(Feature::WebSearchImageSupport),
web_search_image_support: include_web_search_image_support,
image_gen_tool: include_image_gen_tool,
agent_roles: BTreeMap::new(),
search_tool: include_search_tool,
+4 -1
View File
@@ -238,7 +238,10 @@ async fn web_search_image_support_feature_sets_content_types() {
let mut builder = test_codex()
.with_model("gpt-5-codex")
.with_config(|config| {
config.features.enable(Feature::WebSearchImageSupport);
config
.features
.enable(Feature::WebSearchImageSupport)
.expect("test feature should satisfy constraints");
config
.web_search_mode
.set(WebSearchMode::Cached)