From dd260b4a3a3c24ca9c15fad2070699daa64818e7 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 29 Oct 2026 01:13:27 +0800 Subject: [PATCH] trae: #434's "max" is the app's 1M-window Max switch, not a level (comments) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hbw169 (#434) on trae 0.2.23, TRAE CN: magpie model efforts prints "low high xhigh" for deepseek-v4.1-flash and deepseek-v4.1-flash-max. Their screenshot of the TRAE CN app's DeepSeek V4.1 Flash card shows 思考强度 轻 / 高 / 极高 only (light / high / extra_high, the plugin's low / high / xhigh), and a separate 更大上下文 (Max) switch: "1M window, more credits". That switch is the plugin's deepseek-v4.1-flash-max model (maxModel, the list's __max entry with context_window_tokens.max), which the reporter already has. So the plugin offers exactly what the app does. Magpie's side passes a plugin model's variants through unchanged (internal/provider/plugins.go: c.Efforts = m.Variants; provider.Levels holds max), so it doesn't narrow anything either. 0.2.23's comments said the app offers DeepSeek V4.1 Flash max as a level. That was wrong; they now say what the screenshot shows. No code change, no version bump: LEVELS keeps medium/max for a list that names them. Run: packages/trae, HOME=$(mktemp -d) bun test on mote: 221 pass, 0 fail. Broken by hand: nothing; comment-only. Not tried: a real TRAE CN account's model list; the read rests on the reporter's screenshot and the client binary's field names (reasoning_effort_config, reasoning_effort_options, default_reasoning_effort, context_window_tokens), not a captured list. --- packages/trae/index.mjs | 9 ++++++--- packages/trae/reasoning.test.mjs | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/trae/index.mjs b/packages/trae/index.mjs index 397ada8..356daf9 100644 --- a/packages/trae/index.mjs +++ b/packages/trae/index.mjs @@ -2740,9 +2740,12 @@ const MAX = "-max" // same names, as reasoning_effort, so a level an agent picks is sent as Trae // spells it. OpenCode knows the three as low/high/xhigh, so the map goes both // ways. Trae's client names two more, medium and max (its bundle's -// reasoning_effort.{low,medium,high,extra_high,max}), handed out per model: -// its app offers DeepSeek V4.1 Flash max (#434), so they are spelled here too, -// and still offered only for a model whose entry names them. +// reasoning_effort.{low,medium,high,extra_high,max}), handed out per model, +// so they are spelled here too, and offered only for a model whose entry +// names them. No list seen yet names either: TRAE CN's app offers DeepSeek +// V4.1 Flash 轻/高/极高 (light/high/extra_high) alone, and its "Max" is the +// 更大上下文 (Max) 1M-window switch, which is the model id + MAX below, not a +// level (#434's screenshot). // // An entry without the config takes no level: Trae serves it at its own // default and nothing is sent. The plugin used to send none for every model, diff --git a/packages/trae/reasoning.test.mjs b/packages/trae/reasoning.test.mjs index 9ac1b8c..84cbf46 100644 --- a/packages/trae/reasoning.test.mjs +++ b/packages/trae/reasoning.test.mjs @@ -52,8 +52,9 @@ test("an entry's levels are offered as the variants agents pick, named as OpenCo // Trae's client names five levels (its bundle's // reasoning_effort.{low,medium,high,extra_high,max}), handed out per model. -// Its app offers DeepSeek V4.1 Flash max (#434, huajii); a list naming max -// beside light/high/extra_high lost it, so no agent could pick it. +// A list naming max beside light/high/extra_high lost it, so no agent could +// pick it. (#434's "max" turned out to be the app's 1M-window Max switch, +// deepseek-v4.1-flash-max; its levels are light/high/extra_high alone.) test("max and medium an entry names are offered and sent as Trae names them (#434)", async () => { expect(levelsOf({ reasoning_effort_config: { options: ["light", "high", "extra_high", "max"] } })).toEqual(["low", "high", "xhigh", "max"]) expect(levelsOf({ reasoning_effort_config: { options: ["light", "medium", "high"] } })).toEqual(["low", "medium", "high"])