Community编程与开发github.com

JayHome137/Win-Codex-Fix

🧰 Windows Codex Desktop 更新后的一次性、证据驱动快速修复 Skill|One-shot, evidence-driven post-update repair Skill for Windows Codex Desktop.

Win-Codex-Fix 是什么?

Win-Codex-Fix is a Codex agent skill that 🧰 Windows Codex Desktop 更新后的一次性、证据驱动快速修复 Skill|One-shot, evidence-driven post-update repair Skill for Windows Codex Desktop.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add JayHome137/Win-Codex-Fix

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Codex Desktop Quick Hotfix

Run Invoke-CodexDesktopQuickRepair.ps1 -Route Auto from the maintenance project's scripts directory.

Execute Auto only once per update: synchronize the current AppX CLI mirror, run the Quick verifier once; if it fails, choose a known route based on the output and perform the corresponding minimal check after that route. Stop if a route fails, do not chain other layers, and do not rerun.

Known routes:

  • CliMirrorOnly: Only fix the CLI mirror. Exit code 30 indicates the target file is in use; wait for natural exit and rerun the same route.
  • RuntimeOnly: Only fix the cua_node/node_repl runtime.
  • BrowserDiscoveryOnly: Only fix Browser latest and .codex-plugin discovery links.
  • BrowserCacheOnly: Only restore the current AppX Browser cache.
  • BrowserNativeHostOnly: Using the current AppX's multiple extension IDs as the true source, only fix legacy manifest, Chrome HKCU mapping, and two v2 manifests; default hotfix, do not close Codex, Chrome, or Edge. Keep rollback copies of the same transaction before writing; restore any failing step.
  • EdgeNativeHostOnly: Only fill in the Edge registry mapping when the target extension is indeed installed on the current Edge profile and the Edge-specific HKCU NativeMessagingHosts key is missing or drifted; do not modify Chrome keys, shared manifests, cache, runtime, or processes.
  • ChromeAppxBootstrapOnly: Bypass the reserved openai-bundled marketplace name, materialize the Chrome cache directly from the current AppX, and call the AppX's built-in installManifest.mjs to rebuild the sidecar, legacy manifest, HKCU mapping, then update the v2 manifest; do not touch the Browser/Computer Use cache, and do not close Codex, Chrome, or Edge.
  • ComputerUseCacheOnly: Bypass the marketplace, synchronize the Computer Use plugin cache and discovery links directly from the current AppX; do not modify the cua_node runtime, configuration, or other plugins.
  • TmpRuntimeMarketplaceOnly: Only fix the confirmed old temporary marketplace ownership issue.
  • Verify: Only run the Quick verifier once.

Do not manually chain multiple routes together. When Auto cannot identify a unique owner from the verifier output, it returns manual-required; do not guess or escalate to a full repair.

Close/Restart Rules

By default, do not close, kill, reload, or restart any applications. Only when pending-natural-exit (or exit code 20/30) is returned, and the target file is explicitly reported as being held by a process, ask once in the current session whether to authorize exiting Codex for automatic continuation. After explicit authorization, use the same route with -ArmAfterExit; it only records the current holder and creates a one-shot continuation, automatically rerunning once after waiting for that specific process to exit and cleaning itself up. Do not create tasks without authorization; a normal Codex close will not trigger it. Chrome/Edge do not require closing by default.

Boundaries

This package only contains the current official entry point, its direct dependencies, and the quick verification scripts. It does not contain machine-specific paths, IP addresses, accounts, audit snapshots, or run logs; the project root and Skill installation directory are derived from installation parameters or the Windows user environment.

相关技能