Repository navigation
Allow GPT-6 Luna, GPT-6 Sol and GPT-6.1 Sol for Codex - #132
Merged
abhishekgahlot2 merged 2 commits intoOct 13, 2026
Merged
Conversation
A connected ChatGPT account lists these three models, but the Codex policy allowlist left them out, so the picker showed them as discovered and blocked by deployment policy. Add them to the backend allowlist and the picker labels. With two Luna and three Sol models allowed, the Slack shorthands model:luna and model:sol no longer name one model. They now get the catalog reply; the full id, or a unique part such as 5.6-luna or 6.1, still resolves.
With three Sol models allowed, model:sol is ambiguous on Codex and gets the catalog reply, so the help text and doc comment no longer suggest it. terra names one model on both Codex and OpenCode.
Contributor
|
Thanks @coolestnick, good catch, and a careful one: you noticed luna and sol would turn ambiguous in the Slack directives. Merged, and it goes live on app.useagent.org with today's deploy. |
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.
What this changes
Adds three Codex models to the policy allowlist and the picker labels:
gpt-6-lunagpt-6-solgpt-6.1-solScreenshot
Why
With a ChatGPT account connected on app.useagent.org, the Codex model picker lists these three under "Discovered" as "Discovered for this account; blocked by deployment policy". The account can use them, but
CODEX_ALLOWED_MODELSinbackend/src/runs/model-policy.tsonly held Luna 5.6, Terra 5.6, Sol 5.6 and GPT-6 Astra.The ids come from the Codex CLI's own model catalog for the same account (
~/.codex/models_cache.json), where all three are listed and visible.One behaviour change to review
Slack model shorthands resolve only when the token is part of exactly one allowed id. With two Luna and three Sol models allowed:
model:lunaandmodel:solare now ambiguous and get the catalog reply instead of picking a model.The full id still works, and so does any unique part:
5.6-luna,6.1,terra,astra.GPT-6 Luna and GPT-6 Sol have no short form:
6-lunaand6-solalso match the 5.6 ids, so they need the full id (gpt-6-luna,gpt-6-sol).I left the resolver alone and updated its test and doc comment to match. The Slack help text suggested
model:solas its example, which no longer resolves on Codex, so it now suggestsmodel:terra(one match on both Codex and OpenCode). If you would rather keeplunaandsolpointing at the 5.6 models, I can change the resolver, or drop any of the three models from this pull request.If the shorter list was deliberate, feel free to close this. A deployment can also get the same result today with the
CODEX_ALLOWED_MODELSenvironment variable.Checks
bun run typecheckat the root: passes.bun run test1682 pass, 0 fail.bun run lintexits 0.bun run test3481 pass, 3 skip, 1 fail. The one failure issrc/artifacts/harvest.test.ts("real GNU find ..."), which shells out togfind; it is not installed on my Mac and the test does not touch this change. Because that stops the script early, I ran the second half by hand:test/slack.test.ts118 pass, 0 fail.Not verified
I have not run a live Codex turn on any of the three models. My local setup has no sandbox provider or connected Codex account, and the hosted app blocks them, which is the point of this change. The evidence here is the tests plus the ids from the Codex catalog. I will add a screenshot of the hosted picker showing the blocked models.
Need help on this PR? Tag
@codesmith-botwith what you need.