codearts 0.3.19: the mainland station gets no stop at all (#1120)

The mainland gateway (snap-access cn-north-4) now answers every non-empty
stop with InferHub.001001005.400, a string too: Glueo measured "x", "###",
"\n\n", "Observation:", "</block>" and ["x"] on five models, all refused,
and the same body without stop answered. 0.3.15's string-only rule
(magpie#6342) no longer holds. Claude Code's auto-mode classifier always
sends stop_sequences ["</block>"], so every classifier call on a mainland
account was refused.

normalizeStop now leaves stop out on the mainland; the international
station still takes a list (#998), unchanged.

Run: wsl-run bun test in packages/codearts, 211 pass. Broken by hand:
main's index.mjs under the new test, 1 fail. scripts/check.mjs codearts ok.
Not tried: a real mainland account here; the measurement is the reporter's.
This commit is contained in:
yetone
2026-11-14 11:13:50 +08:00
parent 5bb4194140
commit c490e2a85e
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@magpie-community/opencode-codearts-auth",
"version": "0.3.18",
"version": "0.3.19",
"description": "Huawei Cloud in OpenCode and magpie: CodeArts (码道) and OfficeAce (AgentArts), each from its own Huawei Cloud OAuth sign-in — models, credit rates, credit usage and the daily check-in (unofficial)",
"type": "module",
"main": "./opencode.mjs",