diff --git a/changelog.d/fixed-19036-codex-static-models-0170.md b/changelog.d/fixed-19036-codex-static-models-0170.md new file mode 100644 index 0000000000..5ad07654f5 --- /dev/null +++ b/changelog.d/fixed-19036-codex-static-models-0170.md @@ -0,0 +1 @@ +- Codex model dropdown fallback now matches the pinned Codex 0.170.0 catalog, so hosted hives without the binary offer GPT-6.2 Sol (the new default) and GPT-6.2 Astra ([#19036](https://github.com/hivecommons/hive/issues/19036)). diff --git a/src/pkg/dashboard/cli_model_lists_9804_test.go b/src/pkg/dashboard/cli_model_lists_9804_test.go index e1a07d189a..21f79cca06 100644 --- a/src/pkg/dashboard/cli_model_lists_9804_test.go +++ b/src/pkg/dashboard/cli_model_lists_9804_test.go @@ -43,10 +43,10 @@ func TestIssue9804ModelListRefresh(t *testing.T) { mustAbsent: []string{"gemini-3-pro-preview", "gemini-2.5-pro"}, }, { - name: "codex fallback matches the 0.165.0 snapshot", + name: "codex fallback matches the 0.170.0 snapshot", models: codexStaticModels, htmlConst: "CODEX_CLI_MODELS", - mustHave: []string{"gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna"}, + mustHave: []string{"gpt-6.2-sol", "gpt-6.2-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna"}, mustAbsent: []string{"gpt-5.4"}, }, { diff --git a/src/pkg/dashboard/cli_models.go b/src/pkg/dashboard/cli_models.go index c24e1b50eb..11c09dd48a 100644 --- a/src/pkg/dashboard/cli_models.go +++ b/src/pkg/dashboard/cli_models.go @@ -416,27 +416,29 @@ var bobStaticModels = []string{bobAutoModel} // models — Claude ids are rejected with a ChatGPT account ("model is not // supported when using Codex with a ChatGPT account"), so codex must never // fall through to the copilot list. The catalog is baked into the CLI binary -// (per-CLI-version, not per-account); this snapshot matches codex 0.166.0 -// and 0.167.0 (captured 2026-11-07 from live `codex app-server` model/list -// exchanges; the 0.159.0 capture was #9804): visible ids in -// picker order (GPT-6.1 Sol is the default and has been since at least -// 0.160.0; GPT-6.1 Terra arrived in 0.165.0; GPT-6 Sol and Luna arrived in +// (per-CLI-version, not per-account); this snapshot matches codex 0.170.0 +// (captured 2026-11-18 from a live `codex app-server` model/list exchange with +// no login; the 0.159.0 capture was #9804): visible ids in +// picker order (GPT-6.2 Sol is the default; GPT-6.2 Astra arrived after +// 0.167.0; GPT-6.1 Terra arrived in 0.165.0; GPT-6 Sol and Luna arrived in // 0.156.1, #8417), then the hidden ids — hidden entries are still valid // --model values (see orderCodexServedModels). gpt-5.2 and gpt-5.4-mini were // retired from the catalog in 0.155.0; gpt-5.4 was retired between 0.156.1 // and 0.159.0. // Keep in sync with CODEX_CLI_MODELS in static/index.html. var codexStaticModels = []string{ + "gpt-6.2-sol", + "gpt-6.2-astra", + "gpt-6.1-terra", "gpt-6.1-sol", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", - "gpt-6.1-terra", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.5", - // Hidden in the 0.166.0 and 0.167.0 pickers but still valid --model values. + // Hidden in the 0.170.0 picker but still valid --model values. "gpt-daybreak-blue-latest", "gpt-daybreak-red-latest", "codex-auto-review", diff --git a/src/pkg/dashboard/static-src/js/backends-tokens.js b/src/pkg/dashboard/static-src/js/backends-tokens.js index a637b0ffb4..f6c9abecb4 100644 --- a/src/pkg/dashboard/static-src/js/backends-tokens.js +++ b/src/pkg/dashboard/static-src/js/backends-tokens.js @@ -110,21 +110,23 @@ // using Codex with a ChatGPT account"), so codex must NOT fall through to // the copilot list. The server discovers the live catalog via // `codex app-server` model/list (per-CLI-version, baked into the binary); - // this is only the pre-discovery fallback. Snapshot of codex 0.166.0 and - // 0.167.0 (live model/list captures, 2026-11-07; the 0.159.0 capture was #9804): - // visible ids in picker order (GPT-6.1 Sol is the default; GPT-6.1 Terra - // arrived in 0.165.0; GPT-6 Sol and Luna arrived in 0.156.1, #8417), then + // this is only the pre-discovery fallback. Snapshot of codex 0.170.0 + // (live model/list capture, 2026-11-18; the 0.159.0 capture was #9804): + // visible ids in picker order (GPT-6.2 Sol is the default; GPT-6.2 Astra + // arrived after 0.167.0; GPT-6.1 Terra arrived in 0.165.0; GPT-6 Sol and Luna arrived in 0.156.1, #8417), then // hidden ids — hidden entries are still valid --model values. gpt-5.2 and // gpt-5.4-mini were retired in 0.155.0; gpt-5.4 was retired between // 0.156.1 and 0.159.0. // Keep in sync with codexStaticModels in cli_models.go. const CODEX_CLI_MODELS = [ + { value: 'gpt-6.2-sol', label: 'GPT-6.2 Sol' }, + { value: 'gpt-6.2-astra', label: 'GPT-6.2 Astra' }, + { value: 'gpt-6.1-terra', label: 'GPT-6.1 Terra' }, { value: 'gpt-6.1-sol', label: 'GPT-6.1 Sol' }, { value: 'gpt-6-astra', label: 'GPT-6 Astra' }, { value: 'gpt-6-sol', label: 'GPT-6 Sol' }, { value: 'gpt-6-luna', label: 'GPT-6 Luna' }, { value: 'gpt-5.6-sol', label: 'GPT-5.6 Sol' }, - { value: 'gpt-6.1-terra', label: 'GPT-6.1 Terra' }, { value: 'gpt-5.6-terra', label: 'GPT-5.6 Terra' }, { value: 'gpt-5.6-luna', label: 'GPT-5.6 Luna' }, { value: 'gpt-5.5', label: 'GPT-5.5' }, diff --git a/src/pkg/dashboard/static/index.html b/src/pkg/dashboard/static/index.html index a1606d5cfc..40416ace9f 100644 --- a/src/pkg/dashboard/static/index.html +++ b/src/pkg/dashboard/static/index.html @@ -39801,21 +39801,23 @@

All labels

// using Codex with a ChatGPT account"), so codex must NOT fall through to // the copilot list. The server discovers the live catalog via // `codex app-server` model/list (per-CLI-version, baked into the binary); - // this is only the pre-discovery fallback. Snapshot of codex 0.166.0 and - // 0.167.0 (live model/list captures, 2026-11-07; the 0.159.0 capture was #9804): - // visible ids in picker order (GPT-6.1 Sol is the default; GPT-6.1 Terra - // arrived in 0.165.0; GPT-6 Sol and Luna arrived in 0.156.1, #8417), then + // this is only the pre-discovery fallback. Snapshot of codex 0.170.0 + // (live model/list capture, 2026-11-18; the 0.159.0 capture was #9804): + // visible ids in picker order (GPT-6.2 Sol is the default; GPT-6.2 Astra + // arrived after 0.167.0; GPT-6.1 Terra arrived in 0.165.0; GPT-6 Sol and Luna arrived in 0.156.1, #8417), then // hidden ids — hidden entries are still valid --model values. gpt-5.2 and // gpt-5.4-mini were retired in 0.155.0; gpt-5.4 was retired between // 0.156.1 and 0.159.0. // Keep in sync with codexStaticModels in cli_models.go. const CODEX_CLI_MODELS = [ + { value: 'gpt-6.2-sol', label: 'GPT-6.2 Sol' }, + { value: 'gpt-6.2-astra', label: 'GPT-6.2 Astra' }, + { value: 'gpt-6.1-terra', label: 'GPT-6.1 Terra' }, { value: 'gpt-6.1-sol', label: 'GPT-6.1 Sol' }, { value: 'gpt-6-astra', label: 'GPT-6 Astra' }, { value: 'gpt-6-sol', label: 'GPT-6 Sol' }, { value: 'gpt-6-luna', label: 'GPT-6 Luna' }, { value: 'gpt-5.6-sol', label: 'GPT-5.6 Sol' }, - { value: 'gpt-6.1-terra', label: 'GPT-6.1 Terra' }, { value: 'gpt-5.6-terra', label: 'GPT-5.6 Terra' }, { value: 'gpt-5.6-luna', label: 'GPT-5.6 Luna' }, { value: 'gpt-5.5', label: 'GPT-5.5' },