Skip to content

Use turn-scoped permissions for standalone web search - #58189

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e3b8598f2e491388b7e7d4840c849155ae95e88
Oct 29, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9e3b8598f2e491388b7e7d4840c849155ae95e88

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Use turn-scoped permissions for standalone web search

Why

Standalone web search must use the same permission mode as hosted search. Permission changes during a turn should take effect on the next turn, without changing web access for searches in the active turn.

What changed

Pass the turn's WebSearchMode to the web search extension and use it to determine tool availability and external_web_access, while retaining provider support checks and thread-level search settings.

Testing

Add an app-server regression test that switches from cached search to Full Access while a turn is paused. Searches before and after the update keep external_web_access disabled in that turn; the next turn enables it.

## Why

Standalone web search must use the same permission mode as hosted search. Permission changes during a turn should take effect on the next turn, without changing web access for searches in the active turn.

## What changed

Pass the turn's `WebSearchMode` to the web search extension and use it to determine tool availability and `external_web_access`, while retaining provider support checks and thread-level search settings.

## Testing

Add an app-server regression test that switches from cached search to Full Access while a turn is paused. Searches before and after the update keep `external_web_access` disabled in that turn; the next turn enables it.

GitOrigin-RevId: 9e3b8598f2e491388b7e7d4840c849155ae95e88
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9e3b8598f2e491388b7e7d4840c849155ae95e88 branch from 1e849e3 to 94d89c7 Compare October 29, 2026 23:24
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-29T23:24:40.884330Z 1e849e3 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 94d89c7 into main Oct 29, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9e3b8598f2e491388b7e7d4840c849155ae95e88 branch October 29, 2026 23:24
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 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.

1 participant