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.