我在 Windows 版 Codex 里遇到插件反复消失或不可用,重点是 chrome@openai-bundled 和 computer-use@openai-bundled。请帮我排查并尽量根治。 要求: 1. 先备份这些文件和状态: ~/.codex/config.toml ~/.codex/.codex-global-state.json ~/.codex/chrome-native-hosts.json ~/.codex/chrome-native-hosts-v2.json 当前 ~/.codex/plugins/cache/openai-bundled/*/latest 的目标 2. 检查 Codex CLI 入口: 优先使用 config.toml 里的 CODEX_CLI_PATH 如果 PATH 里的 codex.exe 是 WindowsApps 路径且报 Access is denied,不要卡住,改用本地 OpenAI Codex bin 里的 codex.exe 3. 检查: codex plugin marketplace list codex plugin list --json openai-bundled 是否存在 browser@openai-bundled、chrome@openai-bundled、computer-use@openai-bundled 是否 installed/enabled config.toml 里 [marketplaces.openai-bundled] 的 source 是否指向 .codex\.tmp\bundled-marketplaces 4. 检查插件文件完整性: chrome/latest/scripts/browser-client.mjs chrome/latest/extension-host/windows/x64/extension-host.exe chrome/latest/skills/control-chrome/SKILL.md computer-use/latest/scripts/computer-use-client.mjs computer-use/latest/skills/computer-use/SKILL.md 5. 如果发现 openai-bundled source 指向 .codex\.tmp,并且 latest 会被反复改回临时目录,请做稳定化修复: 自动发现 Codex App 自带的 resources/plugins/openai-bundled 目录 复制到 ~/.codex/stable-marketplaces/openai-bundled 修改 ~/.codex/config.toml,把 [marketplaces.openai-bundled].source 指向这个稳定目录 重建 browser/chrome/computer-use 的 latest junction,指向稳定目录里的对应插件 不要写死版本号,自动读取当前插件版本和路径 6. 检查 Chrome: native host manifest 是否正确 Chrome 是否运行 Codex Chrome Extension 是否在当前 Chrome profile 已安装且启用 如果扩展没装或没启用,不要伪装成已修好;告诉我需要打开 Chrome Web Store 页面让我手动安装/启用 7. 检查 Computer Use: 是否存在 codex-computer-use pipe 用插件官方 computer-use-client.mjs 做 list_apps() 轻量测试 不要用 PowerShell SendKeys 或其他方式绕过 Computer Use 8. 不要一开始就改 [windows] sandbox。 只有出现 os error 740 / 请求的操作需要提升,并确认和 sandbox 有关时,再判断是否需要改 sandbox = "unelevated"。 9. 修复后请告诉我: 根因 备份路径 改了哪些文件/链接 CLI 验证结果 Chrome 验证结果 Computer Use 验证结果 还有哪些需要我手动完成