Skip to content

Support catalog messages for non-request approval policies#34434

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a0f8d41a08645f39b80093be53f200eeee18ca25
Jul 21, 2026
Merged

Support catalog messages for non-request approval policies#34434
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a0f8d41a08645f39b80093be53f200eeee18ca25

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Support catalog messages for non-request approval policies

What changed

  • Add model-catalog approval message variants for never and unless_trusted.
  • Select the catalog message that matches the active approval policy, while retaining the existing built-in text when that variant is absent.
  • Treat an explicitly empty variant as an instruction to suppress the built-in approval text, consistent with on_request messages.

Testing

  • Cover variant selection, fallback and empty-message behavior, catalog deserialization, and the initial permissions message sent to the model.

## What changed

- Add model-catalog approval message variants for `never` and `unless_trusted`.
- Select the catalog message that matches the active approval policy, while retaining the existing built-in text when that variant is absent.
- Treat an explicitly empty variant as an instruction to suppress the built-in approval text, consistent with `on_request` messages.

## Testing

- Cover variant selection, fallback and empty-message behavior, catalog deserialization, and the initial permissions message sent to the model.

GitOrigin-RevId: a0f8d41a08645f39b80093be53f200eeee18ca25
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a0f8d41a08645f39b80093be53f200eeee18ca25 branch from f72756b to 2be7d3b Compare July 21, 2026 00:23
@copyberry
copyberry Bot merged commit 2be7d3b into main Jul 21, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a0f8d41a08645f39b80093be53f200eeee18ca25 branch July 21, 2026 00:24
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 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