Repository navigation
Conversation
uestcwangci
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 25, 2026 09:07
deepcoldy
reviewed
Nov 25, 2026
deepcoldy
left a comment
Owner
There was a problem hiding this comment.
复审结论(b37dae2f):代码层面可合,无阻断项
主干与改动边界
- 已确认远端 PR head 为
b37dae2fbd09f12f830f601b69a5ec5d6993e410,本地 tree 为ea64c685a2287b428cf7217b7585e4857e2a2104。 - 复审时最新
origin/master已前进到9ba2e805f734d27a57442c810cb0c46f8355d27f:PR 为 1 ahead / 1 behind;新增 master 提交只修改 v3 workflow 文件,与本 PR 无文件交叠,git merge-tree --write-tree HEAD origin/master无冲突。 - 改动仅涉及
src/services/codex-browser-broker.ts与test/codex-browser-broker.test.ts,作用域是 Codex App 浏览器插件根发现;不改其它 CLI 适配器、PTY/tmux 后端、IM 或会话生命周期。
代码核对
src/services/codex-browser-broker.ts:540-553对 6 个既有桌面资源目录分别增加chrome、browser两个候选,原有 Chrome 路径及相对顺序保留。src/services/codex-browser-broker.ts:556-607的完整性过滤、数值版本比较与缓存优先策略原样复用:不完整的browser不会入选;只有完整且版本严格更高的候选才替换当前选择;最终仍从同一个 root 加载 client/service。src/services/codex-browser-broker.ts:521-537的显式绝对pluginRoot优先级及最终 realpath、双脚本校验未变。test/codex-browser-broker.test.ts:603-624覆盖“旧完整缓存 + 桌面 Chrome 缺 service + 新完整共享 Browser”及“共享 Browser 随后也不完整时回退缓存”两个关键方向。- 未发现的版本元数据仍沿用既有保守回退语义(
test/codex-browser-broker.test.ts:686-693),不是本 PR 引入的新回归。
实际验证
bun run test test/codex-browser-broker.test.ts test/codex-browser-node-service.test.ts:2 个文件、51/51 通过。bun run build:通过(含 typecheck、dist/资产审计)。git diff --check <base>...<head>:通过。- 变异复验:临时移除
browser候选后,新增用例精确失败,结果为 1 failed / 31 passed,实际选中旧缓存而非共享 Browser;还原后该文件 32/32 通过,且两个 PR 文件与b37dae2f无差异。
当前 GitHub 的 build、network-boundary、bun-binary-darwin 已通过;其余测试/二进制检查仍在排队。合并以剩余必需检查完成为准,本次复审未发现需要作者修改的问题。
Owner
|
感谢贡献,已合并。 评审中确认:
后续建议(不阻断):PR 描述里提到的真实 Chrome 页面快照(network policy 生效后的页面读取)建议在新版桌面端上补一次端到端确认;另外共享 browser bundle 的版本发现依赖 |
This was referenced Nov 25, 2026
|
🚀 Released in v3.59.33 |
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/ChatGPT 桌面端将匹配的浏览器客户端与服务一起放在共享的
plugins/browser目录,plugins/chrome可能只包含客户端。Botmux 只检查后者时,会退回旧缓存。旧缓存可以列出标签页,但新版扩展会拒绝缺少 network policy 的页面读取请求。修复
codexBrowser.pluginRoot的优先级,以及完整新版组件缺失时的缓存回退。客户端和服务仍从同一个插件根目录加载。验证
bun run test test/codex-browser-broker.test.ts test/codex-browser-node-service.test.ts:51 项通过。bun run build:通过。