Skip to content

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

fix(core): the catalog names Dots3-Note Preview with ASCII parentheses (#996)

lmliheng71e7900e3967
diff --git a/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.md b/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.md
new file mode 100644
index 00000000..d38616f5
--- /dev/null
+++ b/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.md
@@ -0,0 +1,22 @@
+# TokenDance's Dots3-Note Preview is named with ASCII parentheses
+
+- **Date:** 2026-10-12
+- **Type:** fix
+- **Scope:** `core`
+
+[中文版](2026-10-12-dots-3-note-ascii-parens.zh.md)
+
+Ported from upstream PenguinHarness (#996, commit `0e207146`).
+
+The built-in catalog listed `dots-3-note-preview` as **Dots3-Note Preview(Free)** — the full-width
+parentheses were copied from the seller's Chinese listing, and since a catalog name is not
+translated per UI language, they showed as wide glyphs with no space before them in the English
+UI too. The words stay the seller's; only the punctuation changes, to the ASCII form every other
+parenthesised row uses (`Nemotron 3 Ultra (free)`, `Gemini 3.1 Pro (Preview)`).
+
+## Details
+
+- A Project that never renamed the row shows the new name at once: a preset model's display name
+ is read from the catalog and never written into a Project's configuration. A name the user set
+ themselves is stored, and is left alone.
+- No API, wire format or stored data changes.
diff --git a/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.zh.md b/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.zh.md
new file mode 100644
index 00000000..b0e17e24
--- /dev/null
+++ b/changelog/unreleased/2026-10-12-dots-3-note-ascii-parens.zh.md
@@ -0,0 +1,19 @@
+# TokenDance 的 Dots3-Note Preview 改用半角括号命名
+
+- **Date:** 2026-10-12
+- **Type:** fix
+- **Scope:** `core`
+
+[English](2026-10-12-dots-3-note-ascii-parens.md)
+
+移植自上游 PenguinHarness(#996,提交 `0e207146`)。
+
+内置目录把 `dots-3-note-preview` 列为 **Dots3-Note Preview(Free)**:全角括号沿用自卖方的中文目录,
+而目录里的模型名不随界面语言翻译,于是英文界面里也照样显示成一对贴着字的宽字形。用词仍按卖方的写法,
+只改标点,与目录里其他带括号的名称一致(`Nemotron 3 Ultra (free)`、`Gemini 3.1 Pro (Preview)`)。
+
+## 细节
+
+- 没改过该行名称的 Project 立即显示新名称:预设模型的显示名从目录读取,从不写进 Project 配置。用户自己
+ 起过的名称存在配置里,不受影响。
+- 接口、线上格式与已存数据都没有变化。
diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.ts
index 9cc98002..50bfeaad 100644
--- a/packages/core/src/state/model-catalog.ts
+++ b/packages/core/src/state/model-catalog.ts
@@ -1629,8 +1629,11 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
{
// Dots Studio's (rednote / Xiaohongshu) Dots3-Note Preview: an open-weight MoE, 280B total
// and 16B active, the lightest of the Dots 3 family. TokenDance lists it as "Dots3-Note
- // Preview(Free)", and the name is kept as the seller spells it, tag and full-width
- // parentheses included, as the OpenRouter `(free)` rows keep theirs. The price is a
+ // Preview(Free)": the words and the tag are kept as the seller spells them, as the
+ // OpenRouter `(free)` rows keep theirs, but the full-width parentheses are the typesetting
+ // of the seller's Chinese listing rather than part of the name, and a catalog name shows
+ // untranslated in every UI language — so it takes the ASCII " (" of every other
+ // parenthesised row, which reads right in both. The price is a
// genuine CNY 0 on every bucket, the same treatment as the OpenRouter `:free` rows, so
// costs compute to 0 and the free badge shows — over a 512,000-token context window, with
// openai:chat-completions and anthropic:messages as its supported_protocols (this group's
@@ -1639,7 +1642,7 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [
// vision flag records; no image request was sent to it. Read 2026-09-15 from the
// gateway's /models listing and tokendance.space/models/dots-3-note-preview.
modelId: "dots-3-note-preview",
- displayName: "Dots3-Note Preview(Free)",
+ displayName: "Dots3-Note Preview (Free)",
provider: "tokendance",
contextWindow: 512000,
pricing: cny(0, 0, 0),
diff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.ts
index 0598b2ff..03a4598b 100644
--- a/packages/core/test/model-catalog.test.ts
+++ b/packages/core/test/model-catalog.test.ts
@@ -836,10 +836,11 @@ describe("model-catalog", () => {
]);
}
// The one free row of the group: CNY 0 on every bucket, no discount decoration, a 512K
- // window, and the seller's own spelling of the name, its "(Free)" tag included, as the
- // OpenRouter "(free)" rows keep theirs.
+ // window, and the seller's own words for the name, its "Free" tag included, as the
+ // OpenRouter "(free)" rows keep theirs — in ASCII parentheses, not the listing's full-width
+ // ones.
const dots = td.find((m) => m.modelId === "dots-3-note-preview")!;
- expect(dots.displayName).toBe("Dots3-Note Preview(Free)");
+ expect(dots.displayName).toBe("Dots3-Note Preview (Free)");
expect(dots.contextWindow).toBe(512000);
expect(dots.discount).toBeUndefined();
expect([dots.pricing!.cache_read, dots.pricing!.cache_write, dots.pricing!.output]).toEqual([