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 code30indicates the target file is in use; wait for natural exit and rerun the same route.RuntimeOnly: Only fix thecua_node/node_replruntime.BrowserDiscoveryOnly: Only fix Browserlatestand.codex-plugindiscovery 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 reservedopenai-bundledmarketplace name, materialize the Chrome cache directly from the current AppX, and call the AppX's built-ininstallManifest.mjsto 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 thecua_noderuntime, 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.