Reported by @lusty lantern
Bug Report: Codex Desktop fails to start when Windows username contains non-ASCII characters
`Steps to Reproduce`
- Use Windows with a user account whose username contains non-ASCII characters (for example Chinese characters).
- Install and launch the Codex Desktop application.
- During startup, Codex attempts to create its local database directory.
- The application fails to start and displays an error message.
`Expected Result`
Codex Desktop should start normally and create its data directory under the user profile path, regardless of whether the Windows username contains Unicode characters.
`Actual Result`
Codex Desktop fails to start and shows the following error:
Codex failed to start.
EPERM: operation not permitted, mkdir 'C:\Users<username>.codex\sqlite'
In this case the Windows user profile path contains Chinese characters, for example:
C:\Users\小猫
The application appears unable to create the .codex/sqlite directory when the path contains non-ASCII characters.
`Environment`
OS: Windows 11 Shell: PowerShell 7.5.4 User profile path: C:\Users\小猫 Codex: Desktop application