Repository navigation
fix(launcher): exec-resume 尾部 -c 吞掉用户 -c model + 真codex persona e2e×2通道(URL/launcher) - #2282
Conversation
…-c model fix
- tests/e2e/e2e-codex-persona.test.ts: two lanes against the REAL codex
binary (pinned 0.147.0, fake upstream, zero tokens):
* URL lane (/bili/ prefix routing): grow+fold, then AGENTS.md edit +
gpt-5-codex switch, then a PURE gpt-5.1 switch — asserts fold state
survives both drifts on one session, persona carrier byte-stable per
model, switched model actually on the wire.
* launcher lane (bili codex overlay, #2197): same shape; pins the
exec-resume argv contract.
- src/launcher.ts codexRewriteInsertionIndex: insert the provider rewrites
BEFORE the resume subcommand — any -c after resume makes codex-cli
0.147.0 silently drop the user's earlier -c model=… (bisected against the
real binary; launcher drift turns used to revert to the config default
model without this).
- tests/e2e/fake-upstream.mjs: oracle rows gain insLen (additive).
- .github/workflows/ci-e2e-codex-persona.yml: dedicated lane, 15min,
ACP_TEST_E2E_FAKE=1, failure artifacts.
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.2406-pr.2282.b9821fdThis exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr2282.tgz
npm install -g packageInstall instructions are refreshed on each push. |
已按 [PR] 流程核对完成的工作(未重做):拉取分支 结构化七问
测试有效性:e2e 有牙——drift 轮 wire 模型断言(URL: diff 整洁度:干净,5 文件全部服务于本 PR 目的(+679/-3);我追加的第 2 commit 为纯注释/测试名修正。 本次处置(小问题直接修):代码注释与 5 个测试名引用的 判定:可合(需人工合并)。说明:本 PR 含新增 e2e + CI workflow(capability surface)及上述 fresh-exec argv 顺序变化,非纯 |
…ispatches (#2281) The new persona lane's upload-artifact step declared 'if-no-files-found' as a STEP-level key (sibling of uses/with) instead of an input under with/. That is not a valid Actions step property, so the workflow failed schema validation on every push and dispatched ZERO jobs (conclusion=failure, no steps ran) — the lane never actually executed even though it was green-absent from required checks. Move it under with/ (a documented upload-artifact input). No test or code change.
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.90-master.cb239d3 # this exact build
npm install -g billion-context@master # always the newest merged build
|
Closes #2281
内容
1. 修复 launcher
-c model=被吞(src/launcher.ts)codexRewriteInsertionIndex:provider rewrites 插入点从"prompt 之前"改为"resume子命令之前"。直连真 codex 0.147.0 二分实证(见 issue 表格):任何出现在resume之后的-c都会让更早的-c model=…静默失效;rewrite 全部放在 resume 之前即规避。fresh exec 路径不变(无 resume → 旧的 prompt 前插入规则);--分隔符规则(#2260(D))不变。2. 真 codex 二进制 persona e2e ×2 通道(tests/e2e/e2e-codex-persona.test.ts)
bili codexoverlay,[Bug][Codex 0.160] -p profile 供应商未参与路由发现,bili codex 正常回答但请求绕过代理 #2197 契约):同形状;若 -c 修复回退,本测试的"drift 轮 wire 模型"断言立刻红(回归牙齿)。3. fake-upstream.mjs:oracle 行增
insLen(additive,既有 8 测试不依赖)。4. .github/workflows/ci-e2e-codex-persona.yml:独立 lane,15min,ACP_TEST_E2E_FAKE=1,失败 artifacts。
验证
codex 实测事实(0.147.0,进测试注释)