You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex desktop app freezes on startup: MCP Windows path in config.toml triggers TOML parsing failure #37616
appIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatesmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems
What version of the Codex App are you using (From “About Codex” dialog)?
26.803.5235.0 (Microsoft Store / OpenAI.Codex)
What subscription do you have?
pro
What platform is your computer?
Windows 10 Build 26100 x64
What issue are you seeing?
The Microsoft Store version of the Codex desktop app opens its window after launch but remains stuck on the loading/startup screen and cannot reach the main interface. Repairing, resetting, and reinstalling the app do not resolve the issue.
Local investigation found that the cause is a TOML syntax error in config.toml under the user directory: a Windows path in the MCP configuration uses a TOML double-quoted string, but the backslashes in the path are not escaped.
Example:
args = ["-NoLogo", "...", "-File", "F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1"]
In a TOML double-quoted string, \d is an invalid escape sequence, causing the entire configuration to fail to parse.
The following repeatedly appears in the logs:
failed to reload config: C:\Users<user>.codex\config.toml:150:77:
missing escaped value, expected b, e, f, n, r, \, ", x, u, U
The affected functionality appears to include:
config/read
plugin/list
bundled_plugins_reconcile
windowsSandbox/setupStart
The result is that the UI waits indefinitely, and the user sees only a frozen startup screen with no clear error message.
What steps can reproduce the bug?
Install the Microsoft Store version of ChatGPT/Codex on Windows.
Add an MCP server configuration to C:\Users<user>.codex\config.toml.
In args, store a Windows path using a TOML double-quoted string, for example:
args = ["-NoLogo", "...", "-File", "F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1"]
Restart Codex.
The Codex window appears but remains stuck on the loading/startup screen and cannot reach the main interface.
Temporary workaround: changing the path to use forward slashes allows the app to start normally:
args = ["-NoLogo", "...", "-File", "F:/ChatGPT-projiect/deepseek-mcp-local/start-deepseek-mcp.ps1"]
Alternatively, use TOML single-quoted strings:
args = ['-NoLogo', '...', '-File', 'F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1']
What is the expected behavior?
A config.toml parsing failure should not block the entire Codex app from starting.
Codex should enter safe mode / fallback and skip the corrupted MCP configuration section.
The UI should display a clear error, such as: “Syntax error on line 150 of config.toml; MCP server deepseek was skipped.”
If the path is written by the GUI, it should automatically use /, \, or a TOML single-quoted string.
A configuration health check should be performed early in startup to prevent all RPC handlers from becoming unavailable because of a configuration error.
Additional information
This issue is very difficult for ordinary users to diagnose because reinstalling, resetting, or repairing the app does not automatically remove the corrupted C:\Users<user>.codex\config.toml from the user directory. When startup fails, the UI should expose the specific configuration file path, line number, and available recovery actions.
changed the title [-]Codex 桌面版启动卡死:config.toml 中 MCP Windows 路径触发 TOML 解析失败[/-][+]Codex desktop app freezes on startup: MCP Windows path in config.toml triggers TOML parsing failure[/+]on Aug 8, 2026
appIssues related to the Codex desktop appbugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updatesmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Aug 8, 2026
English translation:
What version of the Codex App are you using (From “About Codex” dialog)?
26.803.5235.0 (Microsoft Store / OpenAI.Codex)
What subscription do you have?
pro
What platform is your computer?
Windows 10 Build 26100 x64
What issue are you seeing?
The Microsoft Store version of the Codex desktop app opens its window after launch but remains stuck on the loading/startup screen and cannot reach the main interface. Repairing, resetting, and reinstalling the app do not resolve the issue.
Local investigation found that the cause is a TOML syntax error in config.toml under the user directory: a Windows path in the MCP configuration uses a TOML double-quoted string, but the backslashes in the path are not escaped.
Example:
args = ["-NoLogo", "...", "-File", "F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1"]
In a TOML double-quoted string, \d is an invalid escape sequence, causing the entire configuration to fail to parse.
The following repeatedly appears in the logs:
failed to reload config: C:\Users<user>.codex\config.toml:150:77:
missing escaped value, expected
b,e,f,n,r,\,",x,u,UThe affected functionality appears to include:
The result is that the UI waits indefinitely, and the user sees only a frozen startup screen with no clear error message.
What steps can reproduce the bug?
args = ["-NoLogo", "...", "-File", "F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1"]
Temporary workaround: changing the path to use forward slashes allows the app to start normally:
args = ["-NoLogo", "...", "-File", "F:/ChatGPT-projiect/deepseek-mcp-local/start-deepseek-mcp.ps1"]
Alternatively, use TOML single-quoted strings:
args = ['-NoLogo', '...', '-File', 'F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1']
What is the expected behavior?
Additional information
This issue is very difficult for ordinary users to diagnose because reinstalling, resetting, or repairing the app does not automatically remove the corrupted C:\Users<user>.codex\config.toml from the user directory. When startup fails, the UI should expose the specific configuration file path, line number, and available recovery actions.
[-]Codex 桌面版启动卡死:config.toml 中 MCP Windows 路径触发 TOML 解析失败[/-][+]Codex desktop app freezes on startup: MCP Windows path in config.toml triggers TOML parsing failure[/+]github-actions commentedon Aug 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action