Skip to content

network_access permission not working #3454

Closed

Description

@davidak

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.

Image

Additional information

No response

Activity

  1. added
    bug
    on Sep 11, 2025
  2. davidak commented on Sep 14, 2025

    @davidak
    Author

    @xiang i got the non-working config from there. what did work for you?

  3. dylan-hurd-oai commented on Oct 16, 2025

    @dylan-hurd-oai
    Contributor

    @davidak is this still happening on recent versions of codex? and does it still happen if you specify

    approval_policy = "on-request"
    

    instead? on-failure is probably not the behavior you're looking for in this case

  4. added
    sandbox
    on Nov 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions