Skip to content

fix(codex): set auto_review_model_override in the generated catalog - #115

Open
l33tdawg wants to merge 1 commit into
ZhiYi-R:mainfrom
l33tdawg:fix/codex-auto-review-model
Open

l33tdawg wants to merge 1 commit into
ZhiYi-R:mainfrom
l33tdawg:fix/codex-auto-review-model

Conversation

@l33tdawg

Copy link
Copy Markdown

Codex's automatic approval reviewer (approvals_reviewer = "auto_review", the desktop app default) uses the built-in model id codex-auto-review unless the model catalog overrides it. A Moon Bridge instance doesn't route that id, so the review request fails, and because the reviewer fails closed, every escalated action gets denied.

The generated models_catalog.json now sets auto_review_model_override to each entry's own slug, so review requests follow the same route as normal turns.

Two tests cover the builder and the written catalog, and go test ./... passes.

Upstream reports for the same behavior: openai/codex#31255 and openai/codex#47917.

Codex's automatic approval reviewer falls back to its built-in
"codex-auto-review" id when the catalog does not override it. Moon
Bridge does not route that id, so the reviewer fails closed and every
escalated action is denied. Point each catalog entry at its own slug so
review requests follow the same route as normal turns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant