Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(agent): list Claude Opus 5.5 and GPT-6 Sol/Luna in the fallback catalogs (#8840)

Bohan Jiang12f8f3f31111
diff --git a/server/pkg/agent/models.go b/server/pkg/agent/models.go
index 4efcac37fe..f0dedff6a6 100644
--- a/server/pkg/agent/models.go
+++ b/server/pkg/agent/models.go
@@ -577,11 +577,15 @@ func discoveryCacheKey(providerType string, runtimeCmd Command) string {
// ── Static catalogs ──
// claudeStaticModels reflects the Claude Code CLI's accepted --model
-// values. Keep this list short and current; stale entries here
-// mislead users more than they help. Default = Sonnet because it's
-// the everyday workhorse (Opus is reserved for advisor-style flows).
+// values. It only fills the picker when live discovery fails and is never
+// validated against (Catalog.Verified), so listing a current model is cheap:
+// a CLI too old to know it reports that itself at launch. Add new models
+// here; drop entries only once the CLI stops accepting them. Default = Sonnet
+// because it's the everyday workhorse (Opus is reserved for advisor-style
+// flows).
func claudeStaticModels() []Model {
return []Model{
+ {ID: "claude-opus-5-5", Label: "Claude Opus 5.5", Provider: "anthropic"},
{ID: "claude-sonnet-5", Label: "Claude Sonnet 5", Provider: "anthropic"},
{ID: "claude-sonnet-4-6", Label: "Claude Sonnet 4.6", Provider: "anthropic", Default: true},
{ID: "claude-fable-5-1", Label: "Claude Fable 5.1", Provider: "anthropic"},
@@ -596,11 +600,12 @@ func claudeStaticModels() []Model {
}
// codexStaticModels is the fallback for Codex versions older than 0.122.0
-// and for failed/malformed live and bundled discovery calls. Keep it in
-// sync with the visible entries in the newest locally verified bundled
-// catalog, plus still-common models from older Codex releases. Each entry
-// carries its own reasoning catalog so old/offline CLIs retain the same model
-// + thinking picker contract as dynamic discovery. Service tiers are
+// and for failed/malformed live and bundled discovery calls. It lists the
+// visible entries of the newest locally verified live catalog — which can run
+// ahead of the bundled one (gpt-6-sol and gpt-6-luna were live-only on
+// codex-cli 0.155.1) — plus still-common models from older Codex releases.
+// Each entry carries its own reasoning catalog so old/offline CLIs retain the
+// same model + thinking picker contract as dynamic discovery. Service tiers are
// intentionally NOT guessed here: they are runtime/version/account-sensitive,
// so a discovery failure hides the speed picker. None of this is validated
// against — a saved model, effort, or tier reaches the CLI as-is while this
@@ -608,15 +613,12 @@ func claudeStaticModels() []Model {
func codexStaticModels() []Model {
// `Default` here is NOT a user-facing "default model" badge — the picker
// stopped rendering that (Multica follows the CLI config when the model is
- // unset). It only marks the current flagship for the "default must track
- // the latest release" catalog guard
- // (TestCodexStaticModelsMatchVerifiedFallbackCatalog,
- // multica#2009). It is deliberately NOT used to validate effort for an
- // empty (follow-CLI-config) model: that config can resolve to any model,
- // so ValidateThinkingLevel fails an empty codex model closed rather than
- // borrowing this entry's catalog (Astra/Sol/Terra advertise `ultra`; Luna
- // does not) — see ValidateThinkingLevel and MUL-4347. Keep exactly one
- // entry flagged.
+ // unset). It only marks the current flagship (multica#2009). It is
+ // deliberately NOT used to validate effort for an empty (follow-CLI-config)
+ // model: that config can resolve to any model, so ValidateThinkingLevel
+ // fails an empty codex model closed rather than borrowing this entry's
+ // catalog (Astra/Sol/Terra advertise `ultra`; Luna does not) — see
+ // ValidateThinkingLevel and MUL-4347. Keep exactly one entry flagged.
standardThinking := func(defaultLevel string, includeMax, includeUltra bool) *ModelThinking {
levels := []ThinkingLevel{
{Value: "low", Label: "Low", Description: "Fast responses with lighter reasoning"},
@@ -645,6 +647,8 @@ func codexStaticModels() []Model {
}
return []Model{
{ID: "gpt-6-astra", Label: "GPT-6 Astra", Provider: "openai", Default: true, Thinking: standardThinking("low", true, true)},
+ {ID: "gpt-6-sol", Label: "GPT-6 Sol", Provider: "openai", Thinking: standardThinking("medium", true, true)},
+ {ID: "gpt-6-luna", Label: "GPT-6 Luna", Provider: "openai", Thinking: standardThinking("medium", true, false)},
{ID: "gpt-5.6-sol", Label: "GPT-5.6 Sol", Provider: "openai", Thinking: standardThinking("low", true, true)},
{ID: "gpt-5.6-terra", Label: "GPT-5.6 Terra", Provider: "openai", Thinking: standardThinking("medium", true, true)},
{ID: "gpt-5.6-luna", Label: "GPT-5.6 Luna", Provider: "openai", Thinking: standardThinking("medium", true, false)},
diff --git a/server/pkg/agent/thinking.go b/server/pkg/agent/thinking.go
index 277ced198f..30b024bef1 100644
--- a/server/pkg/agent/thinking.go
+++ b/server/pkg/agent/thinking.go
@@ -430,6 +430,10 @@ func normalizeCodexModelLabel(id, label string) string {
switch id {
case "gpt-6-astra":
return "GPT-6 Astra"
+ case "gpt-6-sol":
+ return "GPT-6 Sol"
+ case "gpt-6-luna":
+ return "GPT-6 Luna"
case "gpt-5.6-sol":
return "GPT-5.6 Sol"
case "gpt-5.6-terra":
diff --git a/server/pkg/agent/thinking_test.go b/server/pkg/agent/thinking_test.go
index 76dbc0441e..9f2099c587 100644
--- a/server/pkg/agent/thinking_test.go
+++ b/server/pkg/agent/thinking_test.go
@@ -342,6 +342,30 @@ func TestParseCodexModelCatalog(t *testing.T) {
}
}
+// Codex reports the GPT-6 family as "GPT-6-Sol" and so on (codex-cli 0.155.1
+// `debug models`). The picker shows each one the way the static catalog
+// spells it, so a model reads the same whether discovery succeeded or not.
+func TestNormalizeCodexModelLabelMatchesStaticGPT6Family(t *testing.T) {
+ t.Parallel()
+ static := map[string]string{}
+ for _, m := range codexStaticModels() {
+ static[m.ID] = m.Label
+ }
+ for id, reported := range map[string]string{
+ "gpt-6-astra": "GPT-6-Astra",
+ "gpt-6-sol": "GPT-6-Sol",
+ "gpt-6-luna": "GPT-6-Luna",
+ } {
+ if static[id] == "" {
+ t.Errorf("%s missing from the static Codex catalog", id)
+ continue
+ }
+ if got := normalizeCodexModelLabel(id, reported); got != static[id] {
+ t.Errorf("normalizeCodexModelLabel(%q, %q) = %q, want %q", id, reported, got, static[id])
+ }
+ }
+}
+
func TestParseCodexModelCatalogMalformed(t *testing.T) {
t.Parallel()
if _, err := parseCodexModelCatalog([]byte("not json")); err == nil {