Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

fix(models): display the bare gpt-5.6 row as GPT-5.6 Sol (#348)

Yaowei Zhengeee37daa8ef3
diff --git a/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.md b/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.md
new file mode 100644
index 00000000..2569a5f8
--- /dev/null
+++ b/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.md
@@ -0,0 +1,20 @@
+# The direct GPT-5.6 row displays the Sol variant it reaches
+
+- **Date:** 2026-08-19
+- **Type:** fix
+- **Scope:** `model-catalog`, `core`
+- **PR:** [#348](https://github.com/Prism-Shadow/penguin-harness/pull/348)
+
+[中文版](2026-08-19-gpt-5.6-sol-display-name.zh.md)
+
+The built-in catalog's direct OpenAI `gpt-5.6` row is shown as **GPT-5.6 Sol** instead of **GPT-5.6**, so its label names the variant the id actually reaches. The model id is untouched.
+
+## Details
+
+- The bare `gpt-5.6` id routes to `gpt-5.6-sol` upstream and is priced as that tier, while `gpt-5.6-luna`, `gpt-5.6-terra` and OpenRouter's `openai/gpt-5.6-sol` listing all displayed their codename already — this row was the only one whose name left the variant unsaid.
+- Only the display name changed. The row still sends `gpt-5.6`, and its pricing, context window, vision flag and client routing are as they were, so nothing about the request or the cost estimate moved.
+- The catalog test that pins one display name per model across a direct group and its gateway listing was extended to the three GPT-5.6 rows, which had been left out of it while the sol row's two names disagreed.
+
+## Compatibility
+
+A preset is copied into a Project's `.project_config.toml` without a `display_name`, and the field is resolved as the stored value falling back to the catalog, so an existing Project shows the new label straight away — no preset sync needed. A model whose name was edited by hand keeps that name, because the stored field still wins. Since the id never changed, a stored model and a default model set to `gpt-5.6` keep working either way.
diff --git a/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.zh.md b/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.zh.md
new file mode 100644
index 00000000..824c111d
--- /dev/null
+++ b/changelog/unreleased/2026-08-19-gpt-5.6-sol-display-name.zh.md
@@ -0,0 +1,20 @@
+# 直连 GPT-5.6 条目显示它实际抵达的 Sol 变体
+
+- **Date:** 2026-08-19
+- **Type:** fix
+- **Scope:** `model-catalog`, `core`
+- **PR:** [#348](https://github.com/Prism-Shadow/penguin-harness/pull/348)
+
+[English](2026-08-19-gpt-5.6-sol-display-name.md)
+
+内置模型目录中直连 OpenAI 的 `gpt-5.6` 条目不再显示为 **GPT-5.6**,而是 **GPT-5.6 Sol**,让展示名点明这个 id 实际抵达的变体。model id 未作改动。
+
+## 细节
+
+- 裸 `gpt-5.6` id 在上游路由到 `gpt-5.6-sol` 并按该档定价,而 `gpt-5.6-luna`、`gpt-5.6-terra` 以及 OpenRouter 的 `openai/gpt-5.6-sol` 条目本就都显示各自的代号——只有这一条的名字没有说明用户拿到的是哪个变体。
+- 改动仅限展示名。该条目发出的仍是 `gpt-5.6`,其价格、上下文窗口、视觉标记与客户端路由一如既往,请求与成本估算都没有移动。
+- 目录中那条「同一模型在直连分组与其网关条目之间只保持一个展示名」的测试扩展到了三个 GPT-5.6 条目;此前 sol 这一对的两个名字对不上,它们一直被排除在外。
+
+## 兼容性
+
+预设复制进 Project 的 `.project_config.toml` 时并不带 `display_name`,而该字段的取值是「存储值优先、缺失则回退到目录」,因此既有 Project 立刻就能看到新展示名,无需同步预设。手工改过名字的模型则保留自己的名字,因为存储值仍然优先。由于 id 从未改变,已存储的模型与设为 `gpt-5.6` 的默认模型在两种情况下都照常可用。
diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.ts
index 6e4fe635..06a50ca7 100644
--- a/packages/core/src/state/model-catalog.ts
+++ b/packages/core/src/state/model-catalog.ts
@@ -1088,12 +1088,14 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
},
// -- OpenAI (official USD pricing) --
{
- // The bare gpt-5.6 id routes to gpt-5.6-sol upstream and is priced as that tier; served
- // by AgentHub 0.4.2's native gpt-5.6 client. The three rows here mirror the openai/*
+ // The bare gpt-5.6 id routes to gpt-5.6-sol upstream and is priced as that tier, so the
+ // row names the Sol codename its siblings and the openai/gpt-5.6-sol row already show —
+ // the id stays bare, only the label says which variant this is; served by AgentHub
+ // 0.4.2's native gpt-5.6 client. The three rows here mirror the openai/*
// OpenRouter rows above, which carry the gateway's (currently discounted) rates instead
// of this list price.
modelId: "gpt-5.6",
- displayName: "GPT-5.6",
+ displayName: "GPT-5.6 Sol",
provider: "openai",
contextWindow: 1050000,
pricing: usd(0.5, 5, 30),
diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.ts
index fd72a904..990ba96c 100644
--- a/packages/core/test/model-catalog.test.ts
+++ b/packages/core/test/model-catalog.test.ts
@@ -458,8 +458,13 @@ describe("model-catalog", () => {
sonnet5.pricing!.cache_write,
sonnet5.pricing!.output,
]).toEqual([0.2, 2.5, 10]);
- // The same model resold by a gateway keeps one display name across groups.
+ // The same model resold by a gateway keeps one display name across groups. The bare
+ // `gpt-5.6` id is the same tier OpenRouter spells `openai/gpt-5.6-sol`, so it displays
+ // that codename too rather than leaving the variant unnamed.
for (const [directProvider, directId, gatewayProvider, gatewayId] of [
+ ["openai", "gpt-5.6", "openrouter", "openai/gpt-5.6-sol"],
+ ["openai", "gpt-5.6-luna", "openrouter", "openai/gpt-5.6-luna"],
+ ["openai", "gpt-5.6-terra", "openrouter", "openai/gpt-5.6-terra"],
["anthropic", "claude-fable-5", "openrouter", "anthropic/claude-fable-5"],
["anthropic", "claude-sonnet-5", "openrouter", "anthropic/claude-sonnet-5"],
["google", "gemini-3.5-flash-lite", "openrouter", "google/gemini-3.5-flash-lite"],
@@ -545,6 +550,9 @@ describe("model-catalog", () => {
expect([...gateway].sort()).toEqual(
[...direct.map((id) => (id === "gpt-5.6" ? "openai/gpt-5.6-sol" : `openai/${id}`))].sort(),
);
+ // Because it is that tier, the alias is labelled with the sol codename its siblings and
+ // its gateway listing carry; the id users send stays bare.
+ expect(catalogEntryFor("openai", "gpt-5.6")!.displayName).toBe("GPT-5.6 Sol");
// Direct rows are auto-routed by id (AgentHub 0.4.2's native gpt-5.6 client); only the
// gateway rows pin a protocol, and they pin Responses.
for (const m of MODEL_CATALOG.filter((m) => m.provider === "openai")) {