The list declared before an account's own config is read (a key whose CLI
reads no config, a config WorkBuddy doesn't answer) said output 0 for
every model, and magpie filled in models.dev's: 384000 for
deepseek-v4.1-flash, where WorkBuddy's /v3/config says maxOutputTokens
128000. Agents were told a 384000-token reply.
The declared tuples take a fifth field, the output, for every model a
real config in testdata names: deepseek-v4.1-flash and deepseek-v4-pro
128000 and glm-5.3-flash 131072 on workbuddy; default-model 24000,
fast-model 32000, primary-model 72000, hy3 64000, gemini-3.5-flash 65536,
glm-5.2 48000 and kimi-k3 32000 on workbuddy-ai. The rest stay 0 (left to
models.dev, as before). The live list already carried the config's value.
Run: HOME=$(mktemp -d) bun test packages/workbuddy/ on mote, 335 pass;
bun scripts/check.mjs ok. Broken by hand: with index.mjs back at 0.2.25,
the new test fails (hy3 64000 expected, 0 received; deepseek-v4.1-flash
0 for 128000). Not tried: a real WorkBuddy sign-in or key; the outputs of
models no saved config names (hy4-preview-f, glm-5.3, kimi-k3-1, ...).
Reported-by: sayagoodbyeplz (Discord)
0.2.7 capped deepseek-v4.1-flash's context at 100000 on the China build
(SITES.workbuddy.contextCap, contextOf) from one report's error text,
"prompt is too long: 100001 tokens > 100000 maximum", which I could not
check myself. It was wrong for every other account we have numbers for.
On 2026-10-31, on copilot.tencent.com with China Free-plan accounts
(#561):
- CNife: 110,041, 200,041, 500,041 and 900,041 prompt tokens, all 200;
a 900,077-token prompt with needles at 5/40/75/99.5% recalled all four.
- 1529119384: 82,767 to 992,389 tokens, all 200 with a needle at
position 0 recalled; 1,157,831 answered 400 "prompt is too long:
1157831 tokens > 1048576 maximum", the vendor's own ceiling. After the
0.2.7 update the cap hurt their compaction.
- UNscientific-9: 153,501 and 203,021 tokens, 200 on four accounts.
brickhao on Discord said 100k compacts far too often.
The cap and contextOf are gone: both sites list the config's
maxInputTokens (1000000) for it, as for every other model. #563's none
level from 0.2.7 stays.
No cap in its place: a prompt WorkBuddy does find too long is its own 400,
which the plugin already passes on as it came (explained leaves it alone,
X-Magpie-Sign-In kept). magpie's tooLongRe matches "prompt is too long",
so overflowed() makes it context_length_exceeded for the agent to compact,
and retryable() says false for it, so no account is rested or asked again.
The new tests hold that passthrough.
Run:
- deepseek-flash.test.mjs against 0.2.7's index.mjs on mote: 3 fail (the
China million, a 1048576 config listed as given, no site caps), 5 pass;
against this one: 8 pass.
- Broken by hand: explained() treating "too long" as credits exhausted
turns both passthrough tests red (2 fail).
- The workbuddy package on mote, HOME=$(mktemp -d) bun test: 299 pass,
0 fail.
- bun scripts/check.mjs on mote: ok.
Not tried: a real request on copilot.tencent.com (my CN sign-ins still
answer 401); the numbers above are the testers'. The passthrough test's
envelopes are WorkBuddy's {code, msg, extError} as it words other 400s
and the bare OpenAI shape; only the message text is the vendor's literal.
#563: deepseek-v4.1-flash and deepseek-v4.1-flash-sg list a "none"
level. Both sites' /v3/config call them onlyReasoning, so WorkBuddy's
own client hides the off switch and the plugin listed none of it. They
take it anyway. On WorkBuddy AI on 2026-10-31, reasoning_effort "none"
answered 200 with 0 reasoning tokens (twice on -flash, once on -sg).
"low" spent 1221 and 1127 reasoning tokens, and no effort (the plugin's
default high) spent 1219. glm-5.3-flash still lists no none. The
default effort stays the config's high.
#561: on the China build (copilot.tencent.com), deepseek-v4.1-flash's
context is capped at 100000 (SITES.workbuddy.contextCap, contextOf). A
smaller config value is kept. The reporter's vendor error was "prompt is
too long: 100001 tokens > 100000 maximum", seen 11 times on 2 accounts,
while glm-5.3-flash on the same endpoint takes 1M. The config says
1000000 on both sites. WorkBuddy AI's deepseek-v4.1-flash took 148,793-
and 181,887-token prompts, so that site keeps the million.
Run:
- deepseek-flash.test.mjs (new, against testdata/config-561.json, the
real configs cut to the models compared) and efforts.test.mjs,
against the old index.mjs on mote: 5 fail, 3 pass. The ones that
pass are the glm/no-none and unchanged-sibling checks.
- The workbuddy package on mote, HOME=$(mktemp -d) bun test: 297 pass,
0 fail.
- bun scripts/check.mjs on mote: ok.
- Real WorkBuddy AI account in a sandbox HOME, through the plugin loader:
the none/low/default and long-prompt numbers above.
Not tried: the China build itself. Both CN sign-ins I have (desktop on
this Mac and on the Windows box) answer 401 on chat, so the 100000 cap
rests on the reporter's literal error, not on a reply of my own.