CommunityCoding & Developmentgithub.com

JayHome137/Win-Codex-Fix

🧰 One-shot, evidence-driven post-update repair Skill for Windows Codex Desktop.

What is Win-Codex-Fix?

This skill provides a single, automated repair tool for Windows Codex Desktop after updates. It runs a quick verification script and, if issues are found, executes a targeted fix based on specific routes like `CliMirrorOnly`, `RuntimeOnly`, or `BrowserDiscoveryOnly`, without chaining multiple repairs or rerunning them. The skill is designed to be minimally invasive, defaulting to not closing or restarting any applications, and only prompting for a Codex exit if a file is locked. It supports platforms like Codex Desktop on Windows and uses PowerShell scripts from a maintenance project's `scripts` directory.

Works with~Claude Code✓Codex CLI~Cursor
npx skills add JayHome137/Win-Codex-Fix

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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.

Related Skills