Skip to content

Windows Store Codex app fails to start for Windows usernames containing non-ASCII characters. #13553

@fosJoddie

Description

@fosJoddie

What version of the Codex App are you using (From “About Codex” dialog)?

26.304.1528.0

What subscription do you have?

Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

First start of Codex fails with error dialog (full copy below)

From what I can figure, it's getting confused by the non ascii first letter of my username: ø being garbled into .
You can thank Windows default user folder naming scheme for this (it takes your first name from the MS account)

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
Error: EPERM: operation not permitted, mkdir 'C:\Users\�rer.codex\sqlite'
at mkdirSync (node:fs:1349:26)
at t.mkdirSync (node:electron/js2c/node_init:2:17243)
at gb (C:\Program Files\WindowsApps\OpenAI.Codex_26.304.1528.0_x64__2p2nqsd0c76g0\app\resources\app.asar.vite\build\main.js:49:1090)
at Object. (C:\Program Files\WindowsApps\OpenAI.Codex_26.304.1528.0_x64__2p2nqsd0c76g0\app\resources\app.asar.vite\build\main.js:326:23989)
at Module._compile (node:internal/modules/cjs/loader:1769:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1902:10)
at Module.load (node:internal/modules/cjs/loader:1488:32)
at Module._load (node:internal/modules/cjs/loader:1307:12)
at c._load (node:electron/js2c/node_init:2:17999)
at node:electron/js2c/browser_init:2:139583

[OK]

What steps can reproduce the bug?

As far as I am able to gather:

  1. Have a windows account with a username that causes the user folder to have or start with a non ascii letter like 'æøå`
  2. Install Codex from Microsoft Store
  3. Attempt to start application

What is the expected behavior?

Normal first startup of the Codex app

Additional information

Musings, please do not take seriously:

This takes me back to 2001, when even attempting to use non ascii characters inside comments of your scripts was dangerous. A time when most build tools would famously fail on my computer because my ignorant self made a username with non-ascii characters. /home/?rer/ Never heard of the place!

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions