稳定 BG26 的 case-local synthetic 429 replay,验证 provider 原始错误进入 background subagent failed notification、失败 hover 与 snapshot restore。BG26 不新增或修改产品侧主模型 retry、queue、stream recovery 语义。
早期失败 run desktop-e2e-20260721-110945-241 中,child attempt 1~6 到达 replay server,attempt 7 只有 model.request.started / model.network.started;其它 run 的停点会漂移。下列实验均被真实 E2E 否定:
desktop-e2e-20260721-121455-420 收到第一个 429,却在 attempt 2 发送前卡住。desktop-e2e-20260721-122552-864 已记录 child attempt=1/maxAttempts=1,但首个物理请求仍未到 replay server。因此失败不在 projection、hover、snapshot restore 或产品错误转换。BG26 作为 projection case 同时继承了产品默认 retry 和进程级 global fetch 通道;父请求完成后,child 请求在该共享测试通道上可能停在 replay server 之前。把 retry 降为一次只能缩小 case 语义,不能单独隔离不稳定通道。
旧链路
parent title / launch / ACK
-> 进程级 global fetch 通道
child 429(默认还会 retry)
-> 某次或首个 attempt 只有 network.started
-X-> replay server
-> child 无 terminal failed
-> 父 notification 永不到达
目标链路
BG26 worker
-> retry = 0
-> ZCODE_HTTP_PROXY = 当前 replay server
-> Node http + 当前请求独立 ProxyAgent
-> 1 次真实 429
-> child terminal failed
-> parent failed notification
-> live hover
-> 切换任务后的 snapshot restore
采用 case-local worker 隔离,不修改产品网络代码:
beforeSession 根据当前 worker specs 判断 BG26,仅该 worker 设置 ZCODE_MODEL_RETRY_MAX_RETRIES=0。ZCODE_HTTP_PROXY 为该 server 的 base URL,并清空显式 ZCODE_NO_PROXY。ProxyAgent 会发送 absolute-form HTTP URL,而 replay server 已支持该格式。429 AccountRateLimitExceeded、原始 provider message 和 retry-after: 0,删除不属于本 case 合同的 retry fixture。该边界与 conversation case catalog 中 BG26 的已确认语义一致:429 只作为真实失败代表,不定义主模型 retry/queue 语义。产品默认 retry 仍由 adapters focused tests 覆盖。
apps/zcode-cli、packages/ui、product-projection.ts、conversation projection 或 E2E timeout。continuous 与手机 web-remote-replayable 的运行态、snapshot 和恢复边界均不改变。8 passed。5 fixtures,通过。desktop-e2e-20260721-123822-673desktop-e2e-20260721-124220-804429;Agent 日志记录 attempt=1/maxAttempts=1/statusCode=429,随后出现 turn.failed、subagent.background.failed 和父 notification 请求,原始 provider message 保留。