mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
feat: panic if Constrained<WebSearchMode> does not support Disabled
This commit is contained in:
@@ -91,15 +91,7 @@ async fn start_review_conversation(
|
||||
.web_search_mode
|
||||
.set(WebSearchMode::Disabled)
|
||||
{
|
||||
tracing::warn!(
|
||||
"failed to force review web_search_mode=disabled; falling back to a normalizer: {err}"
|
||||
);
|
||||
sub_agent_config.web_search_mode =
|
||||
Constrained::normalized(WebSearchMode::Disabled, |_| WebSearchMode::Disabled)
|
||||
.unwrap_or_else(|err| {
|
||||
tracing::warn!("failed to build normalizer for review web_search_mode: {err}");
|
||||
Constrained::allow_any(WebSearchMode::Disabled)
|
||||
});
|
||||
panic!("by construction Constrained<WebSearchMode> must always support Disabled: {err}");
|
||||
}
|
||||
|
||||
// Set explicit review rubric for the sub-agent
|
||||
|
||||
Reference in New Issue
Block a user