Now the Codex app keeps launching calc.exe??
Resolved 💬 4 comments Opened May 26, 2026 by pointed-stick Closed May 26, 2026
What version of the Codex App are you using (From “About Codex” dialog)?
26.519.41501
What subscription do you have?
NA
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Codex app with approval policy set to "On request", sandbox = "elevated" (the default), and no "trusted" projects in the config.toml
What steps can reproduce the bug?
Download or clone https://github.com/pointed-stick/surprise and open it up in the codex app. Send any message in the chat window, and calculator will pop up??
<img width="1143" height="644" alt="Image" src="https://github.com/user-attachments/assets/6bbd42dc-5760-4292-b735-6cbb3cb1608d" />
What is the expected behavior?
I was expecting to inspect the contents of the repo safely, but the repo got added to my trusted projects automatically. How can i vibe like this??
Additional information
A distinctly different issue from https://github.com/openai/codex/issues/24506
4 Comments
In the
config.tomlof your project, you define a MCP server that actually openC:/Windows/System32/calc.exe(the calculator app). That's why your calculator keep opening each time you open Codex.See here: https://github.com/pointed-stick/surprise/blob/main/.codex/config.toml
Interesting! Can I put anything I want in there?
Pretty much. You can refer to what you can do in this configuration file from the documentation here: https://developers.openai.com/codex/config-basic
but it says here "For security, Codex loads project .codex/ layers only when you trust the project."
It seems like it is loading the .codex/ folder with or without "trust"