增强 Windows Computer Use 启动前检查与 CDP 就绪判定#906
Open
YUANLITONGZAI wants to merge 6 commits into
Open
Conversation
Author
|
由于 upstream 已更新到 Codex++ 1.2.5,我基于 1.2.5 / 当前 upstream main 重新适配了 Windows Computer Use Guard,并新开了 Draft PR #918。 #906 可以作为早期实现记录保留;#918 更适合作为后续审查对象,因为它基于当前 upstream main,避免把旧基线差异带入审查。 补充说明:#918 已做本地 Windows/MSVC 命令行测试和 Linux 命令行回归测试,但还没有把 1.2.5 适配分支替换成本机安装版做 Windows GUI / 鼠标控制端到端测试,因此不应理解为完整运行时验收已经完成。后续如维护者需要,我可以继续补充测试结果或协助拆分实现。 |
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.
摘要
这个 Draft PR 为 Codex++ 增加 Windows-only 的 Computer Use 启动前检查和启动链路加固,目标是让 Computer Use 在 Codex++ 中更稳定地可用。
修复范围集中在启动前配置修复、bundled 插件可用性、CDP 目标判定、已有实例复用路径,以及 bundled runtime 的兼容性兜底。
相关问题/讨论:
主要改动
新增 Windows Computer Use 启动前 guard:
~/.codex/config.toml的 UTF-8 BOM。[features] js_repl = true。openai-bundled的 browser/chrome/computer-use 插件。notify = ["...codex-computer-use.exe", "turn-ended"]。在 Codex++ 写入 live relay config 时保留 Computer Use 必需配置,避免切换供应商后覆盖 guard 结果。
增加 OpenAI bundled marketplace 的修复/复用逻辑。
加强 CDP readiness 判断:
整理 launcher 生命周期:
增加 bundled
@oai/skyruntime exports 兼容性兜底:package.json exports暴露时,补充该 exact export。增加 post-launch retry:
范围说明
这个 PR 刻意不包含:
非 Windows 平台应保持 no-op,不改变现有行为。
验证
自动化验证
以下命令由 Codex 代理在本地 Windows 环境中执行,用户负责授权、复核执行范围和确认结果;不是 upstream CI 结果,也不代表维护者环境已经验证。
上述命令均通过。
运行时验证
运行时验证是在本地 Windows 安装版 Codex++ 上完成的,同等 Computer Use Guard / CDP / runtime exports 补丁已安装并验证通过。该结果用于说明方案在一个真实 Windows GUI 环境中可行,但仍建议维护者在自己的环境中复测。
已验证现象:
57321helper backend 返回 OK。9229/json返回 Codex page target,并包含 websocket。~/.codex/config.toml无 BOM,js_repl=true,Computer Use 所需 bundled 插件启用,notify指向有效的codex-computer-use.exe。list_apps成功。1 + 2 = 3成功。说明
这个 PR 的代码和验证过程主要由 Codex 代理协助完成,并由用户进行范围确认和结果复核。由于 Computer Use / CDP / bundled runtime 行为与本机运行环境相关,欢迎维护者进一步审查实现边界,并指出是否需要拆分 PR 或调整默认行为。
这是 Draft PR,主要用于让维护者评估方案方向、实现边界和是否需要拆分。当前实现避免在常规启动路径中强制杀进程;涉及清理残留进程的操作仍应保留给显式修复脚本或用户确认后的修复流程。