Skip to content

fix: enable per-turn updates to web search mode#10040

Merged
sayan-oai merged 2 commits intomainfrom
dev/sayan/per-turn-web-search
Jan 28, 2026
Merged

fix: enable per-turn updates to web search mode#10040
sayan-oai merged 2 commits intomainfrom
dev/sayan/per-turn-web-search

Conversation

@sayan-oai
Copy link
Collaborator

web_search can now be updated per-turn, for things like changes to sandbox policy.

SandboxPolicy::DangerFullAccess now sets web_search to live, and the default is still cached.

Added integration tests.

in order to let sandbox policy determine websearchmode, we must be able to update websearchmode per turn (because sandbox policy can change per turn). in order to not override explicit user choices for websearchmode, we need to bring back the distinction between unset and explicitly set. this way we know not to override an explicit user choice when applying per-turn overrides
@sayan-oai
Copy link
Collaborator Author

@codex review this

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sayan-oai sayan-oai merged commit a90ab78 into main Jan 28, 2026
51 of 53 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/per-turn-web-search branch January 28, 2026 02:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants