Allow gradle to run in sandbox
Resolved 💬 4 comments Opened Oct 15, 2025 by esafak Closed Apr 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.46.0
What subscription do you have?
Plus
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 24.6.0 arm64 arm
What issue are you seeing?
codex does not want to use gradle due to its sandbox.
What steps can reproduce the bug?
Ask codex to use gradle
What is the expected behavior?
_No response_
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I've added this into
~/.codex/config.tomlto solve this issue:Seems it's working for me
You are my hero @IRus 🙏
on Linux, with gradle installed via sdkman, this worked: (small modification in
writable_roots)One solution is to require Codex to specify
GRADLE_USER_HOMEwhen executing Gradle in AGENTS.md: