Skip to content

Allow GPT-6 Luna, GPT-6 Sol and GPT-6.1 Sol for Codex - #132

Merged
abhishekgahlot2 merged 2 commits into
useagenthq:mainfrom
coolestnick:add-codex-gpt-6-models
Oct 13, 2026
Merged

abhishekgahlot2 merged 2 commits into
useagenthq:mainfrom
coolestnick:add-codex-gpt-6-models

Conversation

@coolestnick

@coolestnick coolestnick commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Adds three Codex models to the policy allowlist and the picker labels:

  • gpt-6-luna
  • gpt-6-sol
  • gpt-6.1-sol

Screenshot

image
  • Codex model picker on app.useagent.org before this change. GPT-6 Luna, GPT-6 Sol and GPT-6.1 Sol show under "Discovered" as blocked by deployment policy, although my connected ChatGPT account can use them.

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_MODELS in backend/src/runs/model-policy.ts only 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:luna and model:sol are 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-luna and 6-sol also 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:sol as its example, which no longer resolves on Codex, so it now suggests model:terra (one match on both Codex and OpenCode). If you would rather keep luna and sol pointing 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_MODELS environment variable.

Checks

  • bun run typecheck at the root: passes.
  • Frontend: bun run test 1682 pass, 0 fail. bun run lint exits 0.
  • Backend: bun run test 3481 pass, 3 skip, 1 fail. The one failure is src/artifacts/harvest.test.ts ("real GNU find ..."), which shells out to gfind; 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.ts 118 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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

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.
@abhishekgahlot2
abhishekgahlot2 merged commit fcf3fd2 into useagenthq:main Oct 13, 2026
19 checks passed
@abhishekgahlot2

Copy link
Copy Markdown
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.

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.

2 participants