# Codex Desktop App hangs on startup when config.toml contains invalid TOML escape in MCP Windows path

**URL:** <https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631>\
**Category:** Bugs\
**Tags:** codex, codex-desktop-app, windows\
**Created:** [August 8, 2026, 7:56pm UTC](https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631 "2026-08-08T19:56:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferdi.comorgensen](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@ferdi.comorgensen](https://community.openai.com/u/ferdi.comorgensen)\
**Post date:** [August 8, 2026, 7:56pm UTC](https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631/1 "2026-08-08T19:56:06Z")

</div>

I want to report a Codex Desktop App startup issue on Windows.

**Summary**

The Microsoft Store version of ChatGPT/Codex can hang indefinitely on the startup/loading page when `C:\Users\\.codex\config.toml` contains an invalid TOML escape sequence in an MCP server Windows path.

In my case, reinstalling, repairing, and resetting the app did not fix the issue, because the broken user config file remained under the user profile.

**What happened**

Codex opened a normal app window, but stayed stuck on the loading/startup page and never entered the main UI.

The root cause was an MCP server config entry like this:

```auto
args = ["-NoLogo", "...", "-File", "F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1"]

```

In TOML double-quoted strings, `\d` is not a valid escape sequence. This caused the entire config parse to fail.

The log repeatedly showed:

```auto
failed to reload config: C:\Users\<user>\.codex\config.toml:150:77:
missing escaped value, expected `b`, `e`, `f`, `n`, `r`, `\`, `"`, `x`, `u`, `U`

```

**Impact**

After the config parse failed, multiple core functions appeared to be unavailable or blocked, including:

- `config/read`

- `plugin/list`

- `bundled_plugins_reconcile`

- `windowsSandbox/setupStart`

From the user perspective, the app simply looked frozen on startup, with no visible error message.

**Workaround**

Changing the Windows path to use forward slashes fixed the issue:

```auto
args = ["-NoLogo", "...", "-File", "F:/ChatGPT-projiect/deepseek-mcp-local/start-deepseek-mcp.ps1"]

```

Using TOML literal strings should also avoid this escape parsing problem:

```auto
args = ['-NoLogo', '...', '-File', 'F:\ChatGPT-projiect\deepseek-mcp-local\start-deepseek-mcp.ps1']

```

**Suggested improvements**

1. Codex should not block the entire desktop app startup when `config.toml` has a parse error.

2. It should enter a safe mode or fallback mode and skip the broken MCP section.

3. The UI should show a clear error message with the config file path and line number.

4. If Windows paths are written by the GUI, they should be automatically normalized to `/`, escaped as `\\`, or written as TOML literal strings.

5. Startup should perform a config health check before waiting on dependent RPC handlers.

**Environment**

- OS: Windows 10, Build 26100, x64

- App: ChatGPT / Codex Desktop, Microsoft Store version

- Package: OpenAI.Codex\_2p2nqsd0c76g0

- Version observed: 26.803.5235.0

---

<div class="post-metadata">

**Author:** ![VeitB](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/veitb/32/712987_2.png) [@VeitB](https://community.openai.com/u/VeitB)\
**Post date:** [August 8, 2026, 8:10pm UTC](https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631/2 "2026-08-08T20:10:43Z")

</div>

Yes, I have been there as well!

I see you already posted this as an GitHub issue.

> <https://github.com/openai/codex/issues/37616>
>
> \### What version of the Codex App are you using (From “About Codex” dialog)?
> 
> 2…6.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?
> 
> Microsoft Store 版 Codex 桌面应用启动后窗口可以打开，但一直卡在加载/启动页面，无法进入主界面。修复、重置、重装应用均无效。
> 本地排查发现，原因是用户目录下的 config.toml 存在 TOML 语法错误：MCP 配置中的 Windows 路径使用了 TOML 双引号字符串，但路径里的反斜杠没有转义。
> 示例：
> args = \["-NoLogo", "...", "-File", "F:\\ChatGPT-projiect\\deepseek-mcp-local\\start-deepseek-mcp.ps1"\]
> 在 TOML 双引号字符串中，\\d 是非法转义序列，导致整个配置解析失败。
> 日志反复出现：
> failed to reload config: C:\\Users\\\<user\>\\.codex\\config.toml:150:77:
> missing escaped value, expected \`b\`, \`e\`, \`f\`, \`n\`, \`r\`, \`\\\`, \`"\`, \`x\`, \`u\`, \`U\`
> 受影响功能看起来包括：
> \- config/read
> \- plugin/list
> \- bundled\_plugins\_reconcile
> \- windowsSandbox/setupStart
> 最终表现为 UI 无限等待，用户只能看到启动页卡死，没有明确错误提示。
> 
> \### What steps can reproduce the bug?
> 
> 1. 在 Windows 上安装 Microsoft Store 版 ChatGPT/Codex。
> 2. 在 C:\\Users\\\<user\>\\.codex\\config.toml 中添加一个 MCP server 配置。
> 3. 在 args 里使用 TOML 双引号字符串保存 Windows 路径，例如：
> args = \["-NoLogo", "...", "-File", "F:\\ChatGPT-projiect\\deepseek-mcp-local\\start-deepseek-mcp.ps1"\]
> 4. 重启 Codex。
> 5. Codex 窗口显示，但卡在加载/启动页，无法进入主界面。
> 临时修复：将路径改为正斜杠后可以正常启动：
> args = \["-NoLogo", "...", "-File", "F:/ChatGPT-projiect/deepseek-mcp-local/start-deepseek-mcp.ps1"\]
> 或者使用 TOML 单引号字符串：
> args = \['-NoLogo', '...', '-File', 'F:\\ChatGPT-projiect\\deepseek-mcp-local\\start-deepseek-mcp.ps1'\]
> 
> \### What is the expected behavior?
> 
> 1. config.toml 解析失败时，不应阻塞整个 Codex 应用启动。
> 2. Codex 应进入 safe mode / fallback，跳过损坏的 MCP 配置段。
> 3. UI 应显示明确错误，例如：“config.toml 第 150 行语法错误，MCP server deepseek 已跳过。”
> 4. 如果路径由 GUI 写入，应自动使用 /、\\\\，或 TOML 单引号字符串。
> 5. 启动阶段应先做配置健康检查，避免所有 RPC handler 因配置错误而不可用。
> 
> \### Additional information
> 
> 此问题对普通用户很难定位，因为重装、重置和修复应用都不会自动移除用户目录下损坏的 C:\\Users\\\<user\>\\.codex\\config.toml。建议启动失败时在 UI 中暴露具体配置文件路径、行号和可恢复操作。

Let’s hope the team will find a good solution to allow config editing going forward.

---

<div class="post-metadata">

**Author:** ![OpenAI\_Support](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/openai_support/32/561845_2.png) [@OpenAI\_Support](https://community.openai.com/u/OpenAI_Support)\
**Post date:** [October 9, 2026, 2:53pm UTC](https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631/3 "2026-10-09T14:53:52Z")

</div>

Hey @[ferdi.comorgensen](https://community.openai.com/u/ferdi.comorgensen), thanks for sharing the detailed findings and workaround.

Since some time has passed since your original report, could you confirm whether this behavior still occurs in the latest version of the Codex desktop app?

If it does, could you share your current Codex app version and confirm whether the same configuration error still causes the app to hang on startup?

- Moizz

---

<div class="post-metadata">

**Author:** ![mo\_izZ](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/mo_izz/32/776024_2.png) [@mo\_izZ](https://community.openai.com/u/mo_izZ)\
**Post date:** [November 2, 2026, 9:44pm UTC](https://community.openai.com/t/codex-desktop-app-hangs-on-startup-when-config-toml-contains-invalid-toml-escape-in-mcp-windows-path/1389631/4 "2026-11-02T21:44:44Z")

</div>

Closed on November 2, 2026, 9:44pm UTC


