Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fixed-19036-codex-static-models-0170.md
Original file line number Diff line number Diff line change
@@ -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)).
4 changes: 2 additions & 2 deletions src/pkg/dashboard/cli_model_lists_9804_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
},
{
Expand Down
16 changes: 9 additions & 7 deletions src/pkg/dashboard/cli_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 7 additions & 5 deletions src/pkg/dashboard/static-src/js/backends-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
12 changes: 7 additions & 5 deletions src/pkg/dashboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39801,21 +39801,23 @@ <h2 class="config-title" id="activity-monitor-labels-title">All labels</h2>
// 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' },
Expand Down
Loading