Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

routing: Codex's composer predictions story says their model is picked in Codex's row on the Agents page (#3425, chiperman)

yetone00d44d6928bc
diff --git a/internal/cli/model_cli.go b/internal/cli/model_cli.go
index 68522f4ff..ed32d5c9b 100644
--- a/internal/cli/model_cli.go
+++ b/internal/cli/model_cli.go
@@ -86,9 +86,10 @@ const modelUsage = `usage:
272K: on, as by default, for a model of a longer window (in
Claude Code, a Claude model runs to its own); off, at the
model's whole window, 1M for a [1m] one; a size such as 500k
- compacts there instead. The app's Settings → Long
- conversations is the same switch; a provider's own Compact
- at (its editor) comes before it
+ compacts there instead. The app's Long conversations,
+ in Codex's and Claude Code's settings on the Agents page,
+ is the same switch; a provider's own Compact at (its
+ editor) comes before it
Each is looked for in this order: this model, then <provider id>/*, then the provider's own
list, then models.dev. --reset removes only the first, and says so when a <provider id>/* value
diff --git a/internal/gateway/codex_backend.go b/internal/gateway/codex_backend.go
index 31e1bf45a..b12f61288 100644
--- a/internal/gateway/codex_backend.go
+++ b/internal/gateway/codex_backend.go
@@ -272,16 +272,16 @@ func sealedTaskError(model, lead, earlier string) string {
}
// sealedWayOut is the way to subagents on any model from a lead on
-// Codex's own models (#2245): Settings' "Codex subagents on any model"
-// (settings.CodexAgentsV1, #141) has the lead hand its subagents their
-// tasks as text. Off, the refusal names it; on, a thread still sealing
-// its tasks is on V2 all the same: begun before it was on, or held there
-// by Codex's own features.multi_agent_v2.
+// Codex's own models (#2245): "Codex subagents on any model", in Codex's
+// settings on the Agents page (settings.CodexAgentsV1, #141), has the
+// lead hand its subagents their tasks as text. Off, the refusal names
+// it; on, a thread still sealing its tasks is on V2 all the same: begun
+// before it was on, or held there by Codex's own features.multi_agent_v2.
func sealedWayOut() string {
if settings.Load().CodexAgentsV1 {
- return ` "Codex subagents on any model" is on in magpie's Settings, but this thread runs Codex's multi-agent V2, whose tasks are sealed: it began before the setting was turned on, or Codex's own features.multi_agent_v2 is on in its config. Start a new thread, with features.multi_agent_v2 off.`
+ return ` "Codex subagents on any model" is on in Codex's settings on magpie's Agents page, but this thread runs Codex's multi-agent V2, whose tasks are sealed: it began before the setting was turned on, or Codex's own features.multi_agent_v2 is on in its config. Start a new thread, with features.multi_agent_v2 off.`
}
- return ` For subagents on any model while the lead is on a ChatGPT model, turn on "Codex subagents on any model" in magpie's Settings and start a new thread: the lead then hands its subagents their tasks as text.`
+ return ` For subagents on any model while the lead is on a ChatGPT model, turn on "Codex subagents on any model" in Codex's settings on magpie's Agents page and start a new thread: the lead then hands its subagents their tasks as text.`
}
// sealedTaskItself says what a sealed task is (#1855): spawn_agent's
diff --git a/internal/gateway/codex_predictions_test.go b/internal/gateway/codex_predictions_test.go
index 13fbd2030..2c1c85bcb 100644
--- a/internal/gateway/codex_predictions_test.go
+++ b/internal/gateway/codex_predictions_test.go
@@ -113,6 +113,11 @@ func TestCodexPredictionsSetting(t *testing.T) {
if u.Provider == "magpie" && (!u.IsRejected() || u.Status != 200) {
t.Errorf("an answered-here prediction %+v", u)
}
+ // and says where the setting is: Codex's row on the Agents page
+ // since f1e4516d, not Settings (#3425)
+ if u.Provider == "magpie" && !strings.Contains(u.Error, "in Codex's settings on magpie's Agents page") {
+ t.Errorf("an answered-here prediction says %q", u.Error)
+ }
}
want := "openai:composer_predictions magpie:composer_predictions fake:composer_predictions openai:"
if got := strings.Join(kinds, " "); got != want {
diff --git a/internal/gateway/codex_titles.go b/internal/gateway/codex_titles.go
index 2deebfd0a..b092112a0 100644
--- a/internal/gateway/codex_titles.go
+++ b/internal/gateway/codex_titles.go
@@ -262,7 +262,7 @@ func (s *Server) codexShaped(w http.ResponseWriter, r *http.Request, body []byte
func (s *Server) codexPrediction(w http.ResponseWriter, r *http.Request, body []byte, to string) {
if to == "off" {
s.sentNowhere(w, r, body, "Predictions off",
- "Codex composer predictions are off in magpie's Settings: answered with no prediction, sent nowhere", []any{predictionItem(fmt.Sprintf("resp_magpie_%d", time.Now().UnixNano()), noSuggestion)})
+ "Codex composer predictions are off in Codex's settings on magpie's Agents page: answered with no prediction, sent nowhere", []any{predictionItem(fmt.Sprintf("resp_magpie_%d", time.Now().UnixNano()), noSuggestion)})
return
}
body, _ = codexInput(body, true)
@@ -497,7 +497,7 @@ func noTitle(said string) string {
// no {"title": …} in it, sets none). The Routing and Usage views have it
// as the title request it was, answered by magpie and sent to no one.
func (s *Server) codexTitleOff(w http.ResponseWriter, r *http.Request, body []byte) {
- s.sentNowhere(w, r, body, "Titles off", "Codex titles are off in magpie's Settings: answered with no title, sent nowhere", nil)
+ s.sentNowhere(w, r, body, "Titles off", "Codex titles are off in Codex's settings on magpie's Agents page: answered with no title, sent nowhere", nil)
}
// sentNowhere answers a hidden turn of Codex's that a setting turned off
diff --git a/internal/gateway/codex_titles_test.go b/internal/gateway/codex_titles_test.go
index c74a75737..49ef1b4dd 100644
--- a/internal/gateway/codex_titles_test.go
+++ b/internal/gateway/codex_titles_test.go
@@ -135,6 +135,11 @@ func TestCodexTitlesSetting(t *testing.T) {
if u.Provider == "magpie" && (!u.IsRejected() || u.Status != 200) {
t.Errorf("an answered-here title %+v", u)
}
+ // and says where the setting is: Codex's row on the Agents page
+ // since f1e4516d, not Settings (#3425)
+ if u.Provider == "magpie" && !strings.Contains(u.Error, "in Codex's settings on magpie's Agents page") {
+ t.Errorf("an answered-here title says %q", u.Error)
+ }
}
want := "openai:thread_title magpie:thread_title magpie:thread_title magpie:thread_title_reconsideration fake:thread_title openai:"
if got := strings.Join(kinds, " "); got != want {
diff --git a/internal/gateway/sealed_fork_none_test.go b/internal/gateway/sealed_fork_none_test.go
index f22704a3c..edac872e3 100644
--- a/internal/gateway/sealed_fork_none_test.go
+++ b/internal/gateway/sealed_fork_none_test.go
@@ -113,7 +113,7 @@ func TestSealedTaskNamesSubagentsOnAnyModel(t *testing.T) {
}
return got.Error.Message
}
- if msg := refusal(); !strings.Contains(msg, `turn on "Codex subagents on any model" in magpie's Settings and start a new thread`) {
+ if msg := refusal(); !strings.Contains(msg, `turn on "Codex subagents on any model" in Codex's settings on magpie's Agents page and start a new thread`) {
t.Fatalf("the refusal doesn't name the setting: %s", msg)
}
st := settings.Load()
@@ -121,7 +121,7 @@ func TestSealedTaskNamesSubagentsOnAnyModel(t *testing.T) {
if err := settings.Save(st); err != nil {
t.Fatal(err)
}
- if msg := refusal(); !strings.Contains(msg, `"Codex subagents on any model" is on`) || !strings.Contains(msg, "features.multi_agent_v2") || strings.Contains(msg, "turn on") {
+ if msg := refusal(); !strings.Contains(msg, `"Codex subagents on any model" is on in Codex's settings on magpie's Agents page`) || !strings.Contains(msg, "features.multi_agent_v2") || strings.Contains(msg, "turn on") {
t.Fatalf("with the setting on, the refusal doesn't say why the thread is still sealed: %s", msg)
}
}
diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js
index 0e0bb8d0a..4cadf6a49 100644
--- a/internal/gui/assets/app.js
+++ b/internal/gui/assets/app.js
@@ -10168,9 +10168,7 @@ function nativeCompactionField(show) {
// compactField is the editor's Compact at (#876): where Codex and Claude
// Code compact a conversation on its models when their window is longer,
-// one for all of them and model=size for one, as the window is set. Empty
-// follows Settings → Long conversations; one at or above a model's window
-// runs it to the whole window.
+// one for all of them and model=size for one, as the window is set.
function compactField() {
const cp = input(draft.compacts || "", t("e.g. 500k · or deepseek-v4-flash=272k, comma separated"));
cp.classList.add("compacts");
@@ -10190,7 +10188,7 @@ function compactField() {
light();
const wrap = el("div", "cxfield");
wrap.append(cp, row);
- return field(t("Compact at"), wrap, t("Where Codex and Claude Code compact a long conversation on these models; empty follows Settings → Long conversations, and a size at or above a model's window runs it to its whole window"));
+ return field(t("Compact at"), wrap, t("Where Codex and Claude Code compact a long conversation on these models; empty follows Long conversations, in their settings on the Agents page (else in Settings), and a size at or above a model's window runs it to its whole window"));
}
function compactError(ed, v) {
diff --git a/internal/gui/assets/i18n.js b/internal/gui/assets/i18n.js
index 59af24716..15e79d680 100644
--- a/internal/gui/assets/i18n.js
+++ b/internal/gui/assets/i18n.js
@@ -1505,7 +1505,7 @@ const I18N = {
"Max output: {v} is not a number of tokens like 32k": "最大输出:{v} 不是 32k 这样的 token 数",
"Compact at": "压缩阈值",
"e.g. 500k · or deepseek-v4-flash=272k, comma separated": "如 500k · 或 deepseek-v4-flash=272k,逗号分隔",
- "Where Codex and Claude Code compact a long conversation on these models; empty follows Settings → Long conversations, and a size at or above a model's window runs it to its whole window": "Codex 和 Claude Code 在这些模型上压缩长对话的位置;留空按「设置 → 长对话」,大于等于模型窗口则用完整窗口",
+ "Where Codex and Claude Code compact a long conversation on these models; empty follows Long conversations, in their settings on the Agents page (else in Settings), and a size at or above a model's window runs it to its whole window": "Codex 和 Claude Code 在这些模型上压缩长对话的位置;留空按 Agent 页里它们设置中的「长对话」(否则在「设置」里),大于等于模型窗口则用完整窗口",
"Compact at: {v} is not a number of tokens like 272k": "压缩阈值:{v} 不是 272k 这样的 token 数",
"add a model: filter, or type provider/model…": "添加模型:筛选,或输入 provider/model…",
"No provider serves {id} now; it is skipped": "现在没有供应商提供 {id},会跳过它",
@@ -5458,7 +5458,7 @@ const I18N = {
"Max output: {v} is not a number of tokens like 32k": "最大輸出:{v} 不是 32k 這樣的 token 數",
"Compact at": "壓縮閾值",
"e.g. 500k · or deepseek-v4-flash=272k, comma separated": "如 500k · 或 deepseek-v4-flash=272k,逗號分隔",
- "Where Codex and Claude Code compact a long conversation on these models; empty follows Settings → Long conversations, and a size at or above a model's window runs it to its whole window": "Codex 和 Claude Code 在這些模型上壓縮長對話的位置;留空按「設定 → 長對話」,大於等於模型視窗則用完整視窗",
+ "Where Codex and Claude Code compact a long conversation on these models; empty follows Long conversations, in their settings on the Agents page (else in Settings), and a size at or above a model's window runs it to its whole window": "Codex 和 Claude Code 在這些模型上壓縮長對話的位置;留空按 Agent 頁裡它們設定中的「長對話」(否則在「設定」裡),大於等於模型視窗則用完整視窗",
"Compact at: {v} is not a number of tokens like 272k": "壓縮閾值:{v} 不是 272k 這樣的 token 數",
"add a model: filter, or type provider/model…": "新增模型:篩選,或輸入 provider/model…",
"No provider serves {id} now; it is skipped": "現在沒有供應商提供 {id},會跳過它",
@@ -9388,7 +9388,7 @@ const I18N = {
"Max output: {v} is not a number of tokens like 32k": "最大出力:{v} は 32k のようなトークン数ではありません",
"Compact at": "圧縮しきい値",
"e.g. 500k · or deepseek-v4-flash=272k, comma separated": "例:500k · または deepseek-v4-flash=272k(カンマ区切り)",
- "Where Codex and Claude Code compact a long conversation on these models; empty follows Settings → Long conversations, and a size at or above a model's window runs it to its whole window": "Codex と Claude Code がこれらのモデルで長い会話を圧縮する位置です。空欄なら「設定 → 長い会話」に従い、モデルのウィンドウ以上ならウィンドウ全体を使います",
+ "Where Codex and Claude Code compact a long conversation on these models; empty follows Long conversations, in their settings on the Agents page (else in Settings), and a size at or above a model's window runs it to its whole window": "Codex と Claude Code がこれらのモデルで長い会話を圧縮する位置です。空欄ならエージェントページのそれぞれの設定にある「長い会話」(なければ「設定」)に従い、モデルのウィンドウ以上ならウィンドウ全体を使います",
"Compact at: {v} is not a number of tokens like 272k": "圧縮しきい値:{v} は 272k のようなトークン数ではありません",
"add a model: filter, or type provider/model…": "モデルを追加:絞り込み、または provider/model を入力…",
"No provider serves {id} now; it is skipped": "現在 {id} を提供しているプロバイダはないため、スキップされます",
@@ -13348,7 +13348,7 @@ const I18N = {
"Max output: {v} is not a number of tokens like 32k": "Max. Ausgabe: {v} ist keine Token-Zahl wie 32k",
"Compact at": "Komprimieren ab",
"e.g. 500k · or deepseek-v4-flash=272k, comma separated": "z. B. 500k · oder deepseek-v4-flash=272k, durch Kommas getrennt",
- "Where Codex and Claude Code compact a long conversation on these models; empty follows Settings → Long conversations, and a size at or above a model's window runs it to its whole window": "Wo Codex und Claude Code eine lange Unterhaltung bei diesen Modellen komprimieren; leer folgt Einstellungen → Lange Unterhaltungen, ein Wert ab dem Fenster des Modells nutzt das ganze Fenster",
+ "Where Codex and Claude Code compact a long conversation on these models; empty follows Long conversations, in their settings on the Agents page (else in Settings), and a size at or above a model's window runs it to its whole window": "Wo Codex und Claude Code eine lange Unterhaltung bei diesen Modellen komprimieren; leer folgt Lange Unterhaltungen in ihren Einstellungen auf der Seite Agenten (sonst unter Einstellungen), ein Wert ab dem Fenster des Modells nutzt das ganze Fenster",
"Compact at: {v} is not a number of tokens like 272k": "Komprimieren ab: {v} ist keine Token-Zahl wie 272k",
"add a model: filter, or type provider/model…": "Modell hinzufügen: filtern oder provider/model eingeben…",
"No provider serves {id} now; it is skipped": "Derzeit stellt kein Anbieter {id} bereit; es wird übersprungen",
diff --git a/internal/gui/assets/plugins/routing/client.js b/internal/gui/assets/plugins/routing/client.js
index 9ce8378bb..b608c5596 100644
--- a/internal/gui/assets/plugins/routing/client.js
+++ b/internal/gui/assets/plugins/routing/client.js
@@ -2417,7 +2417,7 @@ function routingPage(part) {
? t("{agent} requested a subagent; magpie selects its model within this routing group.", { agent })
: t("{agent} requested a subagent on {model}.", { agent, model: r.model });
if (purposeOf(r.kind) === "kind:ambient_suggestions") return t("{agent} drafted the suggested prompts on its home page by itself, in the background, searching the project's files and connected apps, and checked them for safety. Not a turn of the conversation; Codex's Settings › Configuration › Suggested prompts turns it off.", { agent });
- if (purposeOf(r.kind) === "kind:composer_predictions") return t("{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Settings › General › Codex composer predictions picks its model, and Codex's Settings › General › Show predictions turns it off.", { agent });
+ if (purposeOf(r.kind) === "kind:composer_predictions") return t("{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Codex composer predictions, under Settings in Codex's row on the Agents page, picks its model, and Codex's Settings › General › Show predictions turns it off.", { agent });
if (r.kind === "luna_reserve") return t("{agent} sent this turn on Luna Reserve, which it turns to once the plan's own allowance is used up; it picks the model itself.", { agent });
// the searcher asked first failed or found nothing, and this one
// searched in its place: say which and why, not just who searched
diff --git a/internal/gui/assets/plugins/routing/i18n.js b/internal/gui/assets/plugins/routing/i18n.js
index e1c7eb188..6d9dfd738 100644
--- a/internal/gui/assets/plugins/routing/i18n.js
+++ b/internal/gui/assets/plugins/routing/i18n.js
@@ -27,7 +27,7 @@ magpie.strings({
"Names in agents’ lists": "Agent 列表里的名称",
"Whether “· routing group” follows a group’s name in the agents’ lists: one setting for every group, and for the provider after each model’s name, as on Settings.": "Agent 的模型列表里,路由组名后面是否带「· routing group」。这是所有路由组共用的一个设置,也决定模型名后面是否带供应商,和「设置」里的是同一个。",
"“· routing group” is set for every group above": "是否带「· routing group」在上方统一设置,对所有路由组生效",
- "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Settings › General › Codex composer predictions picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} 自行为输入框猜测你的下一条消息,每次都把整段对话重读一遍。不属于对话轮次;在 设置 › 常规 › Codex 输入框预测 里选它用的模型,在 Codex 的 设置 › 常规 › 显示预测内容 里可以关掉。",
+ "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Codex composer predictions, under Settings in Codex's row on the Agents page, picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} 自行为输入框猜测你的下一条消息,每次都把整段对话重读一遍。不属于对话轮次;在 Agent 页 Codex 那一行的设置里,用 Codex 输入框预测 选它用的模型,在 Codex 的 设置 › 常规 › 显示预测内容 里可以关掉。",
"{name} is switched off: the group skips it until it is on again": "{name} 已关闭:开启前这个组会跳过它",
"Off: agents aren't offered {name} and a request to it is turned away. Click to switch it on": "已关闭:Agent 列表里没有 {name},发给它的请求会被拒绝。点击打开",
"On: agents may pick {name}. Click to switch it off and keep it as it is": "已打开:Agent 可以选用 {name}。点击暂时关闭,组的设置原样保留",
@@ -560,7 +560,7 @@ magpie.strings({
"the name its User-Agent begins with": "User-Agent 開頭的名稱",
"heard from in the last 30 days": "近 30 天有請求",
"The subagent effort set in magpie is {effort}; the model's supported levels and a routing group's fixed member effort still apply.": "magpie 為子代理設定的推理強度是 {effort};仍按模型支援的等級適配,並保留路由群組成員的固定強度。",
- "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Settings › General › Codex composer predictions picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} 自行為輸入框猜測你的下一則訊息,每次都把整段對話重讀一遍。不屬於對話輪次;在 設定 › 常規 › Codex 輸入框預測 裡選它用的模型,在 Codex 的 設定 › 一般 › 顯示預測內容 裡可以關掉。",
+ "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Codex composer predictions, under Settings in Codex's row on the Agents page, picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} 自行為輸入框猜測你的下一則訊息,每次都把整段對話重讀一遍。不屬於對話輪次;在 Agent 頁 Codex 那一列的設定裡,用 Codex 輸入框預測 選它用的模型,在 Codex 的 設定 › 一般 › 顯示預測內容 裡可以關掉。",
"{agent}'s call to magpie's web_search MCP tool": "{agent} 對 magpie 的 web_search MCP 工具的呼叫",
"{agent}'s {model}": "{agent} 的 {model}",
"a model that can't search the web by itself": "一個自己不能聯網搜尋的模型",
@@ -1131,7 +1131,7 @@ magpie.strings({
"Names in agents’ lists": "エージェントの一覧での名前",
"Whether “· routing group” follows a group’s name in the agents’ lists: one setting for every group, and for the provider after each model’s name, as on Settings.": "エージェントの一覧でグループ名の後に「· routing group」を付けるかどうか。すべてのグループに共通の設定で、モデル名の後のプロバイダ名にも効きます(「設定」と同じものです)。",
"“· routing group” is set for every group above": "「· routing group」を付けるかは上で全グループ共通に設定します",
- "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Settings › General › Codex composer predictions picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} が入力欄に表示する次のメッセージの予測を自分で行い、そのたびに会話全体を読み直しました。会話のターンではありません。設定 › 一般 › Codex の入力予測 でモデルを選べ、Codex の 設定 › 一般 › 予測候補を表示 でオフにできます。",
+ "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Codex composer predictions, under Settings in Codex's row on the Agents page, picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} が入力欄に表示する次のメッセージの予測を自分で行い、そのたびに会話全体を読み直しました。会話のターンではありません。エージェントページの Codex の行にある設定の Codex の入力予測 でモデルを選べ、Codex の 設定 › 一般 › 予測候補を表示 でオフにできます。",
"{name} is switched off: the group skips it until it is on again": "{name} はオフです。オンに戻すまでグループはスキップします",
"Off: agents aren't offered {name} and a request to it is turned away. Click to switch it on": "オフ:{name} はエージェントに表示されず、届いたリクエストは断られます。クリックでオン",
"On: agents may pick {name}. Click to switch it off and keep it as it is": "オン:エージェントは {name} を選べます。クリックで一時的にオフ(設定はそのまま)",
@@ -1684,7 +1684,7 @@ magpie.strings({
"Names in agents’ lists": "Namen in den Listen der Agenten",
"Whether “· routing group” follows a group’s name in the agents’ lists: one setting for every group, and for the provider after each model’s name, as on Settings.": "Ob in den Listen der Agenten „· routing group“ auf den Namen einer Gruppe folgt: eine Einstellung für alle Gruppen, und für den Anbieter nach jedem Modellnamen, wie in den Einstellungen.",
"“· routing group” is set for every group above": "„· routing group“ wird oben für alle Gruppen eingestellt",
- "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Settings › General › Codex composer predictions picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} hat deine nächste Nachricht für sein Eingabefeld selbst vorhergesagt und dafür das ganze Gespräch erneut gelesen. Kein Zug des Gesprächs; unter Einstellungen › Allgemein › Codex-Eingabevorhersagen wählst du das Modell, in Codex unter Einstellungen › Allgemein › Textvorschläge anzeigen schaltest du es ab.",
+ "{agent} guessed your next message for its composer by itself, reading the whole conversation again. Not a turn of the conversation; Codex composer predictions, under Settings in Codex's row on the Agents page, picks its model, and Codex's Settings › General › Show predictions turns it off.": "{agent} hat deine nächste Nachricht für sein Eingabefeld selbst vorhergesagt und dafür das ganze Gespräch erneut gelesen. Kein Zug des Gesprächs; das Modell wählst du mit Codex-Eingabevorhersagen unter Einstellungen in der Zeile von Codex auf der Seite Agenten, und in Codex unter Einstellungen › Allgemein › Textvorschläge anzeigen schaltest du es ab.",
"{name} is switched off: the group skips it until it is on again": "{name} ist ausgeschaltet: Die Gruppe überspringt es, bis es wieder eingeschaltet ist",
"Off: agents aren't offered {name} and a request to it is turned away. Click to switch it on": "Aus: Agents wird {name} nicht angeboten, eine Anfrage daran wird abgewiesen. Klicken zum Einschalten",
"On: agents may pick {name}. Click to switch it off and keep it as it is": "An: Agents können {name} wählen. Klicken zum Ausschalten – die Gruppe bleibt, wie sie ist",
diff --git a/internal/gui/tests/compact-at.test.cjs b/internal/gui/tests/compact-at.test.cjs
index 86b332c3b..8d4d66f96 100644
--- a/internal/gui/tests/compact-at.test.cjs
+++ b/internal/gui/tests/compact-at.test.cjs
@@ -7,7 +7,8 @@
// anything is sent. Long conversations, in Codex's and Claude Code's
// settings on their opened rows (here Claude Code's), takes a size of its own
// beside Compact at / Full window; a typed size posts settings/full-context
-// with it, and no click or typing scrolls the page.
+// with it, and no click or typing scrolls the page. The editor's Compact at
+// says that is where its empty value follows (#3425).
// English and Chinese, Chromium and WebKit; no backend, the API is faked here.
const assert = require("node:assert/strict");
const fs = require("node:fs/promises");
@@ -58,8 +59,8 @@ function serve(lang, posts) {
}
const words = {
- en: { field: "Compact at", save: "Save", bad: "Compact at: lots is not a number of tokens like 272k", at: (n) => `Compact at ${n}`, full: "Full window" },
- zh: { field: "压缩阈值", save: "保存", bad: "压缩阈值:lots 不是 272k 这样的 token 数", at: (n) => `${n} 时压缩`, full: "完整窗口" },
+ en: { field: "Compact at", save: "Save", bad: "Compact at: lots is not a number of tokens like 272k", at: (n) => `Compact at ${n}`, full: "Full window", follows: "empty follows Long conversations, in their settings on the Agents page (else in Settings)", notSettings: "Settings → Long conversations" },
+ zh: { field: "压缩阈值", save: "保存", bad: "压缩阈值:lots 不是 272k 这样的 token 数", at: (n) => `${n} 时压缩`, full: "完整窗口", follows: "留空按 Agent 页里它们设置中的「长对话」(否则在「设置」里)", notSettings: "设置 → 长对话" },
};
for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {
@@ -82,6 +83,10 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
const { page, errors, posts } = await open(t, "providers");
await page.locator('.row.provider[data-id="deepseek"]').click();
assert(await page.getByText(w.field, { exact: true }).isVisible(), "the field is there");
+ // empty follows Long conversations, which is in the agents' rows on
+ // the Agents page, not in Settings, while one of them is here (#3425)
+ assert(await page.getByText(w.follows).isVisible(), "says where Long conversations is");
+ assert.equal(await page.getByText(w.notSettings).count(), 0, "not Settings → Long conversations");
const box = page.locator("input.compacts");
assert.equal(await box.inputValue(), "500k, deepseek-v4-flash=272k", "what is set is shown");
// not a number of tokens: refused, nothing sent
diff --git a/internal/gui/tests/routing-kind.test.cjs b/internal/gui/tests/routing-kind.test.cjs
index b7fde8d71..446bb16af 100644
--- a/internal/gui/tests/routing-kind.test.cjs
+++ b/internal/gui/tests/routing-kind.test.cjs
@@ -112,6 +112,10 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
await page.locator(".rt-req").nth(kinds.indexOf("composer_predictions")).click();
await page.waitForTimeout(300);
assert.match(await story.textContent(), lang === "zh" ? /设置 › 常规 › 显示预测内容/ : /Settings › General › Show predictions/);
+ // magpie's own setting is in Codex's row on the Agents page since
+ // f1e4516d, not in Settings › General (#3425, chiperman)
+ assert.match(await story.textContent(), lang === "zh" ? /Agent 页 Codex 那一行的设置里/ : /under Settings in Codex's row on the Agents page/);
+ assert.doesNotMatch(await story.textContent(), lang === "zh" ? /设置 › 常规 › Codex 输入框预测/ : /Settings › General › Codex composer predictions/);
assert.match(await story.textContent(), lang === "zh" ? /Codex 输入框预测/ : /Codex composer predictions/);
// a turn has no tag in its story
await page.locator(".rt-req").nth(kinds.length - 1).click();