Repository navigation
[PR] test(e2e): scripted compress calls must use the single-string form (#4823 follow-up) - #4873
Conversation
#4823 narrowed the advertised compress schema to the single string form (content: string). Hosts validate tool arguments against the advertised schema client-side, so the scripted array-form calls die before reaching bili's lenient parser: - opencode native lane: 'Invalid arguments for tool compress: content: Expected string' -> e2e-native-opencode red on master - pi codex-responses WS lane: same family -> e2e-pi-codex-ws red on master - OpenCode V2 Responses WS lane: same scripted shape Switch the scripted calls to the canonical '<start>–<end> topic' header line with the summary on the following line (the format the parser requires). dsh-native keeps the array form on purpose: dsh does not client-validate, so that lane now doubles as coverage for the legacy array acceptance path.
📦 Built Package ArtifactBranch: Latest build — install this exact versionnpm install -g billion-context@0.0.6307-pr.4873.9571686This exact version is immutable and reproducible. The rolling Recent builds (commit → version)
Download artifact
tar xzf billion-context-pr4873.tgz
npm install -g packageInstall instructions are refreshed on each push. |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.865-master.23158db # this exact build
npm install -g billion-context@master # always the newest merged build
|
(ai: vllm-qwen/qwen3.8-27b) 查重: 不重复。 open+closed issue/PR 检索「compress Expected string / 数组形态 / e2e 脚本调用」无命中。相关条目各自独立:#4823(根因,schema 收窄,已合)、#4863/#4866(需要 rebase 拿本修复的下游 PR,非重复)。 标签: bug / opencode / pi / scope/ci / p2(CI 红缺陷,影响两条 e2e 流水线,对终端用户零影响,确定性噪音类)。 PR 已由 owner 于 16:22 UTC 合并(merge sha
CI 终态(PR head 判定:修复方向正确、范围干净、CI 全绿,已合并并发布;收工。 |
这是啥问题
master 上两条 e2e 流水线红着(e2e-native-opencode、e2e-pi-codex-ws):#4823 把 compress 工具的对外 schema 收窄成单一字符串形态后,这些测试里脚本化的假模型还在用旧的数组形态发起 compress 调用。opencode/pi 宿主会按声明出来的 schema 在客户端校验参数,数组还没到 bili 的宽容解析器就被挡下:"Invalid arguments for tool compress: content: Expected string",测试断言 compress 成功折叠,于是挂掉。
根因
#4823 只改了 schema 和提示词,没改这些 e2e 的脚本调用(它们当时没跑到/没红)。
改动
三处脚本改用规范字符串形态——首行
<start>–<end> 主题,摘要写在后续行:dsh-persona 故意保留数组形态:dsh 不做客户端校验,正好用它守住旧数组形态的宽容解析回归。
验证
关联
#4823(schema 收窄)。本 PR 合并后,#4863/#4866 需要 rebase 拿到这份修复,它们的 e2e 才会绿。