Always have to approve file edits
Resolved 💬 6 comments Opened Oct 12, 2025 by nick-youngblut Closed Jan 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.46.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
Install the codex cli extension for Cursor. See the codex settings file (~/.codex/config.toml) to:
model = "gpt-5-codex"
model_reasoning_effort = "medium"
[tools]
web_search = true
[projects."/Users/MY_USER_NAME"]
trust_level = "trusted"
[optional] see trust_level = "trusted" for specific cursor projects.
Running codex in the extension. All file edits require the user to press the Allow this session button, which gets very annoying.
What is the expected behavior?
codex should edit files without baby siting.
What do you see instead?
Approval is always required
Additional information
_No response_
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Even when I include:
in the
config.toml, I'm still asked for approval for every file edit.What mode do you have set below your Composer? Agent should only rarely request for your approval for commands.
There is not currently a way to use a custom agent mode from your config.toml but a custom option which will respect that is launching very soon.
<img width="474" height="360" alt="Image" src="https://github.com/user-attachments/assets/c623efd9-6b0a-4e8c-830d-0005c29a879d" />
Closing old bugs.
@etraut-openai this is still the case in the latest Codex desktop app on macOS.
It asks for approval to do anything, any terminal command, any edit. There's only the "Default permission" and then the "Full access". Is there nothing in-between? I'd want the option to allow all edits during a session, without giving a permission to modify my entire filesystem.
@gunnartorfis, the "Default permission" gives the agent write access to your project directory and
/tmpdirectory but not other parts of your file system. Full access removes that limitation. If you're seeing behavior other than that, please find an active bug report or create a new one with details and repro steps.