Skip to content

Support model catalog permission messages#33147

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

Support model catalog permission messages#33147
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cd5ed3aee3155dca0e7b2358c0f09bae73236856

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Support model catalog permission messages

What changed

  • Add per-sandbox-mode permission messages to ModelMessages and preserve them when applying model configuration overrides.
  • Use the selected catalog message in permission instructions, substituting {{ network_access }} with the active network policy. Fall back to the existing sandbox text when no override is provided, and allow an empty override to omit only the sandbox section.
  • Apply catalog permission messages when a session starts and when its model changes.

Testing

  • Cover catalog deserialization, mode selection, network substitution, fallback and empty-message behavior, remote model catalogs, and model changes.

## What changed

- Add per-sandbox-mode permission messages to `ModelMessages` and preserve them when applying model configuration overrides.
- Use the selected catalog message in permission instructions, substituting `{{ network_access }}` with the active network policy. Fall back to the existing sandbox text when no override is provided, and allow an empty override to omit only the sandbox section.
- Apply catalog permission messages when a session starts and when its model changes.

## Testing

- Cover catalog deserialization, mode selection, network substitution, fallback and empty-message behavior, remote model catalogs, and model changes.

GitOrigin-RevId: cd5ed3aee3155dca0e7b2358c0f09bae73236856
@copyberry copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cd5ed3aee3155dca0e7b2358c0f09bae73236856 branch from 199028c to eb80df0 Compare July 14, 2026 20:15
@copyberry copyberry Bot merged commit eb80df0 into main Jul 14, 2026
14 of 32 checks passed
@copyberry copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cd5ed3aee3155dca0e7b2358c0f09bae73236856 branch July 14, 2026 20:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 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