Repository navigation
test(worker): 适配 #1755 后接线测试的 codex 进程归属依赖 - #1759
Merged
Merged
Conversation
1745 的 vm 切片测试在 #1755 落地后的主干上红 5 例:#1755 为 sandbox codex 新增了与 traex 对称的独立 bwrap 解析路径(resolveCodexOwnershipPid / codexLauncherActive / startCodexLauncherPidResolve),切片上下文缺少新自由变量;sandbox 场景的旧断言(findLaunchedCliPid 不被调用)随该语义演进过时——sandbox codex 现在本就应经独立 resolver 重锚 backend.cliPid。 注入缺失变量,并将 sandbox 断言改为按两条 resolver 的可观察差异区分:wrapper bridge resolver 在 sandbox 下保持 no-op(bridgeCliPid 不被重锚),#1755 的 codex bwrap resolver 正常运行(backend.cliPid 重锚)。 Co-Authored-By: Claude Code <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 9, 2026 07:35
|
🚀 Released in v3.38.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
#1745 合入后主干
test/find-launched-cli-pid.test.ts红 5 例(post-mergetest (2/3)failure)。#1745 基于 f1147ec 自身 CI 全绿;合入窗口内 master 先进了 #1755(68675adb4),两边 PR 各自绿、合成树红——纯文本 merge 无冲突,但 #1755 改了 #1745 vm 切片测试覆盖的 worker 接线区。根因
#1755 为 sandbox codex 新增了与 traex 对称的独立 bwrap 解析路径:
resolveCodexOwnershipPid(candidatePid, launcherActive);codexLauncherActive = outerBwrapActive与模块级lastSpawnCodexLauncherActive赋值;startCodexLauncherPidResolvekick。#1745 的测试用
vm.runInNewContext实跑 worker.ts 接线切片,上下文未提供这些新自由变量 →ReferenceError: resolveCodexOwnershipPid is not defined。同时旧断言「sandbox 下findLaunchedCliPid不被调用」随语义演进过时:sandbox codex 现在本就应经 #1755 的独立 resolver 重锚backend.cliPid。修改(仅测试,1 文件 +12/-2)
lastSpawnCodexLauncherActive与resolveCodexOwnershipPid(测试场景codexLauncherActive=false,stub 按真实函数语义原样返回 pid);bridgeCliPid不被重锚,这是 fix(runtime): 补齐无 owner 群输入绑定与 Codex wrapper 进程证明 #1745 gate 的语义),而 fix(bridge): 兼容结构化转录跨daemon重启恢复与Pi时间戳解析 #1755 的 codex bwrap resolver 正常运行(backend.cliPid重锚到 200)。不改任何产品代码。
验证
test/find-launched-cli-pid.test.ts:Node vitest 29/29、Bun vitest 29/29(修复前同环境 5 红);bun run build0 错。🤖 Generated with Claude Code