Skip to content

[0.146] Backport safer cyber-model auto-review defaults - #37057

Merged
anp-oai merged 2 commits into
release/0.146from
codex/backport-cyber-auto-review-0.146
Aug 5, 2026
Merged

[0.146] Backport safer cyber-model auto-review defaults#37057
anp-oai merged 2 commits into
release/0.146from
codex/backport-cyber-auto-review-0.146

Conversation

@anp-oai

@anp-oai anp-oai commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Backport cyber-model auto-review defaults to the 0.146 stable release line.

Cherry-pick #37055. Omit precomputed schema artifacts that do not exist on release/0.146.

Validation: git diff --check.

won-openai and others added 2 commits August 5, 2026 08:08
- Propagate the optional `modelSpecialty` field through the model catalog and
  app-server `model/list` response.
- When a newly selected model has the `cyber` specialty, default an active TUI
  thread to workspace-write permissions with on-request approval. Use auto
  review when available, otherwise keep the user as reviewer, while respecting
  configured permission requirements.
- Show a notice when auto review is applied and strengthen the full-access
  warning for cyber models.
- Preserve explicitly selected permissions when only reasoning settings change.

- Cover auto-review defaults, requirement-aware fallback behavior, permission
  preservation across reasoning changes, and the new warning notice.

GitOrigin-RevId: 8f25b0082d3051d9ff91f7355921236d0f82f758

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 442ae3a7f0

ℹ️ 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".

Comment thread codex-rs/tui/src/app/thread_settings.rs
&workspace_profile,
);

if workspace_allowed && let Some(reviewer) = cyber_model_approval_reviewer(&self.config)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Don't gate approval defaults on workspace profile

When requirements disallow selecting :workspace but still allow on-request and the auto-review/user reviewer, this workspace_allowed && guard prevents sending any cyber-model safety defaults at all. In that managed-profile setup a user switching from a previous unsafe profile (for example full access with never) remains on the old approval policy/reviewer, even though the approval defaults are independently representable in ThreadSettingsUpdateParams; split the permission-profile override from the approval/reviewer overrides so the available safeguards still apply.

Useful? React with 👍 / 👎.

Comment thread codex-rs/tui/src/app/thread_settings.rs
Comment thread codex-rs/tui/src/app/thread_settings.rs
@anp-oai
anp-oai merged commit 7558bed into release/0.146 Aug 5, 2026
35 checks passed
@anp-oai
anp-oai deleted the codex/backport-cyber-auto-review-0.146 branch August 5, 2026 08:26
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 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