Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
launch: avoid inherited service-tier warnings in Codex (#18879)
Eva Hc2b7368d4156
diff --git a/cmd/launch/codex.go b/cmd/launch/codex.goindex 95078aa10..21d2a67d0 100644--- a/cmd/launch/codex.go+++ b/cmd/launch/codex.go@@ -44,6 +44,7 @@ func (c *Codex) args(model, modelCatalogPath string, extra []string) ([]string,for _, override := range codexManagedConfigOverrides(modelCatalogPath) {args = append(args, "-c", override)}+ args = append(args, "-c", `service_tier="default"`)if model != "" {args = append(args, "-m", model)}diff --git a/cmd/launch/codex_test.go b/cmd/launch/codex_test.goindex b0c8567a3..6155c84ec 100644--- a/cmd/launch/codex_test.go+++ b/cmd/launch/codex_test.go@@ -39,6 +39,7 @@ func TestCodexArgs(t *testing.T) {"-c", fmt.Sprintf("model_providers.%s.base_url=%q", codexProfileName, codexBaseURL()),"-c", fmt.Sprintf("model_providers.%s.wire_api=%q", codexProfileName, "responses"),"-c", fmt.Sprintf("%s=%q", codexRootModelCatalogJSONKey, catalogPath),+ "-c", `service_tier="default"`,}tests := []struct {@@ -50,6 +51,7 @@ func TestCodexArgs(t *testing.T) {{"with model", "llama3.2", nil, append(slices.Clone(managedArgs), "-m", "llama3.2")},{"empty model", "", nil, managedArgs},{"with sandbox flag", "llama3.2", []string{"--sandbox", "workspace-write"}, append(append(slices.Clone(managedArgs), "-m", "llama3.2"), "--sandbox", "workspace-write")},+ {"explicit tier", "llama3.2", []string{"-c", `service_tier="priority"`}, append(append(slices.Clone(managedArgs), "-m", "llama3.2"), "-c", `service_tier="priority"`)},}for _, tt := range tests {@@ -382,6 +384,8 @@ func TestCodexRestoreRemovesCLIProfileAndCatalogWithoutChangingUserRootConfig(t}userConfig := "" +`model = "gpt-5.5"` + "\n" ++ `model_reasoning_effort = "max"` + "\n" ++ `service_tier = "priority"` + "\n" +`model_provider = "openai"` + "\n\n" +"[model_providers.openai]\n" +`name = "OpenAI"` + "\n"