Repository navigation
Description
Environment
- Codex Microsoft Store package: OpenAI.Codex_26.908.9136.0_x64__2p2nqsd0c76g0
- Windows 11, build 26200, x64
Problem
Settings > Pets > Create pet fails with the Chinese toast "无法开始创建虚拟宠物" (unable to start creating a virtual pet). Restarting the app does not resolve it. The Create/Upgrade entry points force a reinstall of the bundled hatch-pet skill; this removes an already restored working skill before the package copy fails.
Reproduction
- Launch the Store app on the affected Windows installation.
- Click Create pet in Pets settings.
- Observe the error toast and incomplete destination skill directory.
- Restore the bundled skill using read/write byte streams, then click the button again: the restored files are removed and installation fails again.
Sanitized log
At 2026-09-15T08:35:26.829Z:
[electron-fetch-handler] Failed to install recommended skill
UNKNOWN: unknown error, copyfile
'C:\Program Files\WindowsApps\OpenAI.Codex_26.908.9136.0_x64__2p2nqsd0c76g0\app\resources\skills\skills\.curated\hatch-pet\agents\openai.yaml'
-> 'C:\Users\<user>\.codex\skills\hatch-pet\agents\openai.yaml'
Local verification
- The source exists, is readable, and has the Encrypted file attribute.
- Node fs.copyFileSync on that packaged source fails with UNKNOWN, errno -4094.
- Reading the same source and writing its bytes to a normal temporary file succeeds. Native copy of that plain file also succeeds, with matching SHA-256.
- All 27 bundled skill files can be restored using byte-stream read/write; each destination hash matches its source and destinations are not encrypted.
- Inspection of the installed client shows Create/Upgrade request forceReinstall=true; the installer removes the destination before recursively copying from the bundled source.
This isolates the observed failure to local packaged-resource copying, not a confirmed sign-in or model-network failure. EFS/package protection is a suspected underlying mechanism, not fully established by these checks.
Expected behavior / suggested fix
- Install the bundled skill successfully when source contents are readable, using a byte-stream fallback where needed.
- Stage and validate an installation before replacing a known-good existing skill; preserve it if copying fails.
- Surface the local installation error instead of only a generic creation toast.
Workaround and limitations
Restore the exact bundled skill via byte-stream copying and invoke hatch-pet directly, avoiding Create/Upgrade buttons. File restoration is verified; end-to-end pet generation has not yet been verified. No WindowsApps ownership/ACL changes, app patches, credential removal, or sign-out were used.
Related packaged-copy reports: #32589 and #25220. This report adds the pet-specific force-reinstall data-loss/repeated-failure path.
Only sanitized diagnostic details are included; no credentials or conversation transcript.
Activity
Yue1666888 commentedon Sep 25, 2026
Additional reproduction on the current Store build, plus root-cause details from local inspection that may help prioritize a fix.
Environment
OpenAI.Codex_26.917.9434.0_x64__2p2nqsd0c76g0(app 153.0.8010.53)Reproduces exactly as described
Desktop log at each Create click:
Restoring all 27 files via byte-stream read/write works (SHA-256 matches source), but the next Create click wipes the destination again and fails identically.
Why the copy fails deterministically on this machine
The bundled source files carry the EFS
Application Protectedcompatibility level. Local tests:Copy-Itemofagents\openai.yamlfrom the bundled source to a plain directory →无法加密指定的文件(ERROR_FILE_ENCRYPT_FAILED) — same failure class as NodecopyFile.cipher /eitself returns "The request is not supported" on this Home edition box. So on Windows Home there is no destination state that makes aCopyFile-based copy of these sources succeed — the byte-stream fallback is the only viable path here.From read-only inspection of app.asar (26.917.9434.0)
The Pets create/upgrade flow calls
install-recommended-skillwith hardcoded params:Two compounding problems in the installer (
Ace):forceReinstall: truemakes itrm -rfthe destination before copying, so any user-restored skill is destroyed on every attempt (the data-loss path this issue is about).source: "bundled"skips the vendor-cache branch entirely —F9only consults~/.codex/vendor_imports/skillswhen no explicit source is given. So pre-populating the vendor cache (which would makefs.cpsucceed, since that copy is plain NTFS→NTFS) has no effect on the Pets flow.Also noting for completeness: per #25220 the encrypted-copy fallback only triggers on errno 6000 while the observed error surfaces as -4094/UNKNOWN, which likely explains why the existing fallback never rescues this path.
Workaround in use
Byte-stream restore of the 27 files into
~/.codex/skills/hatch-pet, then invoking thehatch-petskill from a regular thread instead of the Create/Upgrade buttons (which re-trigger the destructive reinstall).win9killer commentedon Sep 29, 2026
Still reproduces on Microsoft Store package
OpenAI.Codex_26.924.2738.0_x64__2p2nqsd0c76g0(2026-09-28), Windows 11 Home China 25H2, build 26200.Clicking Settings > Pets > Create pet immediately shows “Unable to start pet creation” and does not open a chat. The desktop log again reports
Failed to install recommended skillandUNKNOWN: unknown error, copyfilefor the bundledhatch-pet/agents/openai.yamlfromWindowsAppsto%USERPROFILE%\.codex\skills\hatch-pet\agents\openai.yaml(2026-09-28T14:24:55Z). The bundled source remainsEncrypted/Application Protected. A separately installed and enabledhatch-petskill at%USERPROFILE%\.agents\skills\hatch-petdoes not make the button work.I submitted in-app bug feedback with this reproduction and no full logs; feedback thread ID:
01a0eafb-20b7-7600-b1f7-796d1849c97a.