Repository navigation
Conversation
xushulong-solo
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 2, 2026 13:20
复审发现两处新守卫行为已变但无用例钉住,摘掉后全部测试仍绿: - currentCodexObservedPid 保留活脚本 PID 的分支里,wired 是未回收 zombie 时不得保留:补 zombie 探测在原生 leaf 尚未 fork 时被换为活 wrapper 的用例。 - startCodexLauncherPidResolve 的重试门必须喂 spawn 时捕获的稳定 launcher pid:Herdr/ZMX 的 getChildPid() 别名可变 cliPid,同步解析 先把 cliPid 改成 leaf,首 tick 的同 pid 检查会永久杀死重试循环。 补 VM wiring 用例(同步/延迟 PID 两形状)并在生产代码注释该旁路 是有意的,跨代安全仍由 backend 身份护栏负责。 两处变异在 vitest 与 bun:test 双引擎均精准咬红。 Co-Authored-By: Claude Code <[email protected]>
Owner
|
感谢贡献!已合入 master(squash 为 5756a6e),保留了你的作者署名。 这个修复解决的问题:启动包装器先跑 合入前验证:当前 head CI 首跑全绿(含 bun-test、4 个 test shard、三平台二进制构建);新增真实 worker 用例覆盖「探测退出后连续两轮各采集一次」;关键守卫均经变异验证(摘掉过滤/稳定根/补发等守卫后相关用例确实失败)。 另有两条不阻断的后续建议,欢迎在后续 PR 继续:
再次感谢! |
|
🚀 Released in v3.57.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.
启动包装器先运行
codex debug models、再启动交互 CLI 时,按进程名发现会选中短命探测进程。探测结束后仍沿用这个 PID,导致 history 已有本轮输入、rollout 已有完整回复,采集器却一直无法证明记录归属,最终发出“本轮未采集”告警;零注入会话的最终回答因此丢失。基于主线
39328f093,已核对开放 PR 的文件差分;现有 #1772、#2401、#2381 处理的启动器发现、rollout 延迟和受限进程检查仍未覆盖此路径。改动
debug、版本查询等非交互命令,并跳过已退出但尚未回收的进程。ps args的空格分词结果不用于命令分类,原有 executable-discovery 回退保持可用。getChildPid()返回可变 ownership PID 的 Herdr/ZMX,以及仍由脚本进程持有记录的启动方式。继续要求匹配到的 history SID 属于当前进程打开的 rollout 集合,不按 cwd、最新文件或相同正文猜测归属;不改变用户输入及零注入语义。
验证
bun run build:通过,包含 TypeScript、脚本/测试 mock 类型检查、前端构建及制品审计。关键验证命令:
本地 Linux 测试使用 Bash 与较短 TMPDIR,避免隔离 HOME 下的 zsh 首次配置向导及 Unix socket 路径长度影响夹具。
影响面与异常场景
过滤只作用于 Codex,公共 BFS 的其它 CLI 行为有回归验证。managed spawn 使用稳定根;adopt 继续沿用原有绑定。Linux 下真实进程与 PTY/tmux 已验证;Herdr/ZMX 使用实际后端方法及可控探针,未启动其服务。procfs 不可用路径使用真实
ps回退验证,未在 macOS 真机运行。