Repository navigation
fix(config): honor selected profile approval policy - #530
Merged
mldangelo-oai merged 5 commits intoOct 17, 2026
Merged
mldangelo-oai merged 5 commits into
mldangelo-oai merged 5 commits into
Conversation
sylvesterkaczmarek
force-pushed
the
fix/profile-approval-policy-precedence
branch
from
October 1, 2026 09:16
e9d0738 to
a98755b
Compare
Contributor
Author
|
Rebased onto current main today; the branch is now 0 behind and GitHub Verified. TypeScript build:ci passes, both focused approval-policy tests pass, Prettier is clean, and git diff --check passes. Could a maintainer review the refreshed head when convenient? |
Contributor
Author
|
Could a maintainer approve CI and review the selected-profile approval-policy fix? There has been no review since the last refresh. |
mldangelo-oai
approved these changes
Oct 17, 2026
mldangelo-oai
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for fixing this! Profile overrides now behave consistently with the other settings, and the fallback and Deep Scan worker cases are covered. All required checks passed.
The separate Invoice Desk smoke test stopped before running because its CI environment is missing an API key. That's unrelated to this change.
Merged
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An explicitly selected Codex profile could not override a root
approval_policy = "never"with"on-request". The SDK kept denying permission requests even though the selected profile requested automatic approval review. Resolve the selected profile first, consistent with model and provider settings. Fixes #528.Changes
null, which the TOML writer treats as absent.neveroverride for fresh and resumed Deep Scan workers.83564c957into the branch.Testing
Validated head
54ef007f1f2against main83564c957:Risk and rollout
The behavior changes when an explicitly selected profile provides a policy that differs from the root. A selected
on-requestpolicy now enables automatic approval review even if the root saysnever. Missing or null profile values still inherit the root policy. Deep Scan workers retain their explicitneverpolicy. No new CLI flags or dependencies.Public disclosure review