今天遇到一个很典型的问题:
Windows 版 Codex 桌面端里,Computer Use 插件不可用,chrome@openai-bundled 和 computer-use@openai-bundled 都没正常恢复。
我没有先重装,也没有手动乱改配置。
我做的事情很简单:把“要修什么、先查什么、哪些不能动、最后怎么验证”写成一段提示词,直接交给 Codex 自己处理。
核心方法就三步:
1. 先让 Codex 只读检查,不要马上改配置。 2. 明确安全边界:先备份,不改 WindowsApps 权限,不删除整个 .codex。3. 让它修完后必须运行插件列表命令验证结果。
下面是我当时输入的提示词(来自小红书,没找到具体的作者),可以直接参考。
我现在使用的是 Windows 版 Codex 桌面端,Computer Use 插件无法正常使用。请你帮我诊断并修复本机 Codex 的 openai-bundled 插件源问题。我的目标是让以下插件恢复正常:chrome@openai-bundledcomputer-use@openai-bundled请按下面要求操作:1. 先只读检查,不要直接修改配置。2. 检查 codex plugin marketplace list、codex plugin list,以及 openai-bundled 插件源是否存在。3. 检查 Codex 桌面版安装目录中是否存在 resources/plugins/openai-bundled。4. 修复前必须备份 ~/.codex/plugins、~/.codex/config.toml、~/.codex/codex-global-state.json。5. 不要修改 WindowsApps 目录权限,不要接管 WindowsApps 所有权。6. 如果 openai-bundled 位于 WindowsApps 或类似受保护目录,请把 resources/plugins/openai-bundled 复制到用户目录下,例如 ~/.codex/openai-bundled-fixed。7. 复制时尽量使用安全方式,避免 WindowsApps 权限导致 os error 6000。8. 复制完成后,重新注册这个本地插件源。9. 然后安装或启用 chrome@openai-bundled 和 computer-use@openai-bundled。10. 最后运行 codex plugin list 和 codex plugin list --marketplace openai-bundled 验证结果。请每一步都告诉我你要执行什么命令,以及这个命令的作用。不要删除整个 .codex 目录,不要覆盖我的全部配置。最后 Codex 按这个提示词完成了检查、备份、复制、注册、启用和验证。
夜雨聆风