Windows unified app 26.721.11231.0 crashes on startup: “Invalid weekday string: MON”
Description
Immediately after updating the Codex Windows app to the new unified
ChatGPT/Work/Codex desktop application, the application became unusable.
The main process crashes during every launch with:
SyntaxError: Invalid weekday string: MON
The system-tray process may remain running, but selecting “Open chat” does
nothing. Quitting through the tray and relaunching reproduces both error
dialogs.
Environment
- Platform: Windows x64
- Package/build visible in error stack:
OpenAI.Codex_26.721.11231.0_x64__2p2nqsd0c76g0
- Regional format at failure: English (United States)
- ChatGPT plan: Pro
Steps to reproduce
- Update the previous Codex desktop app to the unified ChatGPT desktop app.
- Launch ChatGPT/Codex.
- Observe “ChatGPT failed to start — Invalid weekday string: MON.”
- Dismiss that dialog.
- Observe “A JavaScript error occurred in the main process.”
- If “Check for Updates” is selected, the tray process may remain open, but
the interface still cannot be opened.
Troubleshooting already attempted
- Checked for additional updates.
- Fully quit and relaunched the tray process.
- Restarted Windows.
- Changed Regional format to English (United States).
- Verified that account automations use valid RFC weekday codes such as
TU and SA; none contains MON.
None resolved the problem.
Expected behavior
The unified ChatGPT desktop app should launch and provide access to existing
Codex projects and conversations.
Actual behavior
The main application window cannot open. Local Codex access is completely
blocked, and Codex is not selectable through the ChatGPT website.
Related issue
Possibly related at the parser level to #30411, but this is a distinct
Windows/English-locale regression in build 26.721.11231.0.
Additional information
The failing stack appears to pass the three-letter value MON into recurrence
parsing that expects the RFC 5545 two-letter value MO.
4 Comments
<img width="752" height="597" alt="Image" src="https://github.com/user-attachments/assets/bc9f956c-3fd6-4d86-9d7a-d5eef44ef960" />
<img width="1123" height="528" alt="Image" src="https://github.com/user-attachments/assets/fc547958-9d6b-40e8-8326-844f984c24db" />
Root cause confirmed and recovery verified
I isolated the exact local record causing this Windows startup crash.
Offending record
Relevant fields:
The three-letter weekday
MONis invalid for this RFC-style recurrence format; the expected value isMO. The exceptionSyntaxError: Invalid weekday string: MONmatches this stored value exactly.Diagnostic findings
MO,TU,WE,TH,FR,SA, andSU.MONmatch in the bounded application-state search.Verified repair
I preserved an unchanged evidence copy, then changed only:
to:
The repaired file SHA-256 is:
A byte comparison confirmed that the sole change was removal of the ASCII
N.After restoring the repaired
.codexdirectory, ChatGPT/Codex desktop build26.721.11231.0launched successfully with the prior projects and conversations restored. The startup crash is resolved.Suggested application fixes
MON→MO,TUE→TU,WED→WE,THU→TH,FRI→FR,SAT→SA, andSUN→SU.automation.toml.This confirms that the Windows/English-locale failure was caused by malformed local automation state, not Windows regional settings or the account-side ChatGPT scheduled tasks.
Thank you so much for documenting this so thoroughly — your post absolutely saved me!
I had the exact same startup crash, except my error was Invalid weekday string: THU. I found the offending automation.toml, changed BYDAY=THU to BYDAY=TH, restarted the app… and it opened immediately! 🎉
I had already tried restarting and checking for updates, so seeing the app finally launch again was such a huge relief. I was genuinely so happy when it worked.
I really appreciate how clearly you identified the root cause, preserved the original file, and explained the repair step by step. You didn’t just report the bug — you gave the rest of us a working rescue path.
Huge thanks. You seriously made my day!
I am happy to hear this helped you and others!