Python
Subscription catalog: add the 5.6 tiers (Sol/Terra/Luna); Sol becomes the recommended model
Devika Verma19561abeb657
diff --git a/coworker/providers/matrix.py b/coworker/providers/matrix.pyindex 839458a0..e198b001 100644--- a/coworker/providers/matrix.py+++ b/coworker/providers/matrix.py@@ -60,6 +60,29 @@ MATRIX: dict[str, ModelEntry] = {# ChatGPT-subscription catalog (the `openai-codex` OAuth provider). Curated to the# ids the subscription backend actually serves; vision per the vendor's model docs,# PDF unverified over this backend → local fallback via pdf_support.py.+ # 5.6 tiers (Sol flagship / Terra balanced / Luna fast) serve over the subscription+ # backend by plan — Sol is rate-limited on Plus, full on Pro.+ "openai-codex:gpt-5.6-sol": ModelEntry(+ "GPT-5.6 Sol · ChatGPT plan",+ ModelCapabilities(+ tools=True, vision=True, parallel_tool_calls=True, streaming=True+ ),+ 400_000,+ ),+ "openai-codex:gpt-5.6-terra": ModelEntry(+ "GPT-5.6 Terra · ChatGPT plan",+ ModelCapabilities(+ tools=True, vision=True, parallel_tool_calls=True, streaming=True+ ),+ 400_000,+ ),+ "openai-codex:gpt-5.6-luna": ModelEntry(+ "GPT-5.6 Luna · ChatGPT plan",+ ModelCapabilities(+ tools=True, vision=True, parallel_tool_calls=True, streaming=True+ ),+ 400_000,+ ),"openai-codex:gpt-5.2-codex": ModelEntry("GPT-5.2 Codex · ChatGPT plan",ModelCapabilities(diff --git a/coworker/providers/registry.py b/coworker/providers/registry.pyindex bb91db4e..e4eaa37b 100644--- a/coworker/providers/registry.py+++ b/coworker/providers/registry.py@@ -366,7 +366,7 @@ DESCRIPTORS: list[ProviderDescriptor] = [needs_key=False,fields=[],build=_build_codex,- recommended_model="gpt-5.2-codex",+ recommended_model="gpt-5.6-sol",blurb="Sign in with your ChatGPT plan and run OpenAI models through your ""subscription — no API key. Tokens stay on this machine.",auth="oauth",diff --git a/coworker/server/manager.py b/coworker/server/manager.pyindex bd02ab2d..08dd74b3 100644--- a/coworker/server/manager.py+++ b/coworker/server/manager.py@@ -2958,7 +2958,7 @@ class SessionManager:self._refresh_provider("openai-codex")# Same convenience as set_provider: surface the recommended model right away,# and win the default when the current default's provider isn't usable.- added = "openai-codex:gpt-5.2-codex"+ added = "openai-codex:gpt-5.6-sol"self.add_model(added)if not self._provider_configured(self._model_provider(self.model)):self.set_default_model(added)diff --git a/surfaces/gui/e2e/fixtures.ts b/surfaces/gui/e2e/fixtures.tsindex e9ac104b..2d8e1925 100644--- a/surfaces/gui/e2e/fixtures.ts+++ b/surfaces/gui/e2e/fixtures.ts@@ -352,7 +352,7 @@ const PROVIDERS = [{ name: "ollama", title: "Ollama (local models)", needs_key: false, fields: [{ key: "base_url", label: "Endpoint", secret: false, required: false, help: "", placeholder: "http://127.0.0.1:11434", default: "http://127.0.0.1:11434" }], configured: true, values: {}, suggested_models: ["qwen3-coder:30b"], key_set_at: null, last_used_at: null },// openai-codex: the subscription OAuth provider — no key form; the gallery card and// form render sign-in state instead (auth: "oauth"). Starts signed out.- { name: "openai-codex", title: "ChatGPT (OpenAI subscription)", needs_key: false, auth: "oauth", signed_in: false, account: null, authorizing: false, last_error: null, blurb: "Sign in with your ChatGPT plan and run OpenAI models through your subscription — no API key. Tokens stay on this machine.", fields: [], configured: false, values: {}, suggested_models: ["gpt-5.2-codex"], key_set_at: null, last_used_at: null },+ { name: "openai-codex", title: "ChatGPT (OpenAI subscription)", needs_key: false, auth: "oauth", signed_in: false, account: null, authorizing: false, last_error: null, blurb: "Sign in with your ChatGPT plan and run OpenAI models through your subscription — no API key. Tokens stay on this machine.", fields: [], configured: false, values: {}, suggested_models: ["gpt-5.6-sol"], key_set_at: null, last_used_at: null },];/** Install the API + WebSocket mocks on a page. Returns handles for assertions/seed data. */diff --git a/tests/test_codex_provider.py b/tests/test_codex_provider.pyindex ba54782d..89abe6aa 100644--- a/tests/test_codex_provider.py+++ b/tests/test_codex_provider.py@@ -410,12 +410,15 @@ def test_matrix_curates_subscription_models():from coworker.providers.matrix import models_for_providerassert models_for_provider("openai-codex") == [+ "gpt-5.6-sol",+ "gpt-5.6-terra",+ "gpt-5.6-luna","gpt-5.2-codex","gpt-5.2","gpt-5.1-codex","gpt-5.1-codex-mini",]- caps = capabilities_for("openai-codex:gpt-5.2-codex")+ caps = capabilities_for("openai-codex:gpt-5.6-sol")assert caps.tools and caps.vision and caps.streaming@@ -470,7 +473,7 @@ def test_providers_list_shows_oauth_state(tmp_path):row = rows["openai-codex"]assert row["auth"] == "oauth"assert row["signed_in"] is False and row["configured"] is False- assert "gpt-5.2-codex" in row["suggested_models"]+ assert "gpt-5.6-sol" in row["suggested_models"]manager.secrets.put("provider:openai-codex",@@ -545,7 +548,7 @@ async def test_manager_signin_stores_and_promotes_model(tmp_path, monkeypatch):assert result["ok"] is Trueassert manager._codex_authorizing is Falsesettings = manager.get_settings()- assert "openai-codex:gpt-5.2-codex" in settings["models"]+ assert "openai-codex:gpt-5.6-sol" in settings["models"]async def test_manager_signin_failure_lands_in_status(tmp_path, monkeypatch):