### What version of Codex is running? 0.34.0 ### Which model were you using? gpt-5 ### What platform is your computer? Linux 6.12.45 x86_64 unknown ### What steps can reproduce the bug? I have this in my `config.toml`: ``` [projects."/home/davidak/code/agents4science-paper"] trust_level = "trusted" # allow network in workspace-write mode [sandbox_workspace_write] network_access = true # full-auto mode approval_policy = "on-failure" sandbox_mode = "workspace-write" ``` Then i run the prompt: > Write a haiku about being an AI Agent scientist and save it to a Markdown file. > It should contain the current lottery numbers (german Lotto 6aus49). ### What is the expected behavior? It should fetch the information from the internet. ### What do you see instead? It asks for permission to use networking. <img width="1162" height="1031" alt="Image" src="https://github.com/user-attachments/assets/872b66f9-63bf-42b7-b662-24cde30ff372" /> ### Additional information _No response_
Activity
xiang commentedon Sep 14, 2025
This was driving me crazy. I found the fix here: https://github.com/openai/codex/blob/main/docs/sandbox.md
davidak commentedon Sep 14, 2025
@xiang i got the non-working config from there. what did work for you?
dylan-hurd-oai commentedon Oct 16, 2025
@davidak is this still happening on recent versions of codex? and does it still happen if you specify
instead? on-failure is probably not the behavior you're looking for in this case