trae: #434's "max" is the app's 1M-window Max switch, not a level (comments)

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.
This commit is contained in:
yetone
2026-10-29 01:13:35 +08:00
parent f653369a77
commit dd260b4a3a
2 changed files with 9 additions and 5 deletions
+6 -3
View File
@@ -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,
+3 -2
View File
@@ -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"])