Skip to content

Respect approval policies in temporary structured threads - #49912

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2d0a071d3687742c83ba933a7ef1357feea53403
Oct 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2d0a071d3687742c83ba933a7ef1357feea53403

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Respect approval policies in temporary structured threads

Why

Forcing approval_policy to never on temporary structured threads can trigger configuration warnings when managed requirements allow only on-request. These hidden threads also need to reject unexpected interaction requests without prompting the user.

What changed

Inherit the app server's approval policy when starting temporary structured threads. Reject their server requests before dynamic tool handling or interactive TUI routing.

Testing

Extend regression tests to verify inherited on-request approval without approval-policy warnings, and error responses for recap-thread approval and user-input requests even when the thread is marked active and primary.

## Why

Forcing `approval_policy` to `never` on temporary structured threads can trigger configuration warnings when managed requirements allow only `on-request`. These hidden threads also need to reject unexpected interaction requests without prompting the user.

## What changed

Inherit the app server's approval policy when starting temporary structured threads. Reject their server requests before dynamic tool handling or interactive TUI routing.

## Testing

Extend regression tests to verify inherited `on-request` approval without approval-policy warnings, and error responses for recap-thread approval and user-input requests even when the thread is marked active and primary.

GitOrigin-RevId: 2d0a071d3687742c83ba933a7ef1357feea53403
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2d0a071d3687742c83ba933a7ef1357feea53403 branch from db03ccd to 444da31 Compare October 1, 2026 07:08
@copyberry
copyberry Bot merged commit 444da31 into main Oct 1, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2d0a071d3687742c83ba933a7ef1357feea53403 branch October 1, 2026 07:08
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026

This branch was previously deployed

1 inactive deployment
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.