Skip to content

Codex App does not honor [sandbox_workspace_write] network_access = true from config.toml (works in CLI) #13373

Closed

Description

@sokolgood

What variant of Codex are you using?

Codex App - Version 26.228.1430 (760)

What feature would you like to see?

Problem

Official docs state that for Codex App / CLI / IDE, network in workspace-write can be enabled via:

config.toml

[sandbox_workspace_write]
network_access = true

Source: https://developers.openai.com/codex/security

In practice, Codex CLI behaves as expected, but Codex App does not reliably match this behavior.

Codex CLI behavior (expected)

With:

[sandbox_workspace_write]
network_access = true

CLI can run networked commands in workspace-write mode, including DNS-dependent requests to internal/corporate hosts.

Codex App behavior (observed)

In App sandboxed runs, behavior is different:

  • scutil --dns may return No DNS configuration available
  • CODEX_SANDBOX_NETWORK_DISABLED is often 1
  • DNS-dependent commands to internal/corporate hosts fail

To make the same tasks work in App, users currently need escalated/full-access execution.

Why this matters

This blocks efficient day-to-day engineering workflows in corporate environments:

  • running benchmarks/tests that depend on internal services
  • validating integrations against internal APIs
  • using Codex App as a practical replacement for CLI without over-privileging execution

Why current workaround is insufficient

Current workaround is to run with escalated permissions / full-access (or approve broad prefixes like make).
This works, but it is not least-privilege:

  • grants broader execution power than needed,
  • is policy-unfriendly for enterprise environments,
  • does not provide predictable network behavior for all tools/commands.

Proposal

Please add one of the following:

  1. CLI parity in App:
    Honor [sandbox_workspace_write] network_access = true in Codex App exactly as in CLI.

  2. Explicit App UI controls:

    • Filesystem sandbox: workspace-write
    • Network: enabled (same practical behavior users get in CLI with network_access=true)
  3. Clear docs:
    Document network behavior differences between CLI/App and sandbox/escalated/full-access modes, and clarify config scope in App.

Expected outcome

Users can keep strict filesystem sandboxing while still enabling required network access, without requiring Full Access.

Related

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    sandboxIssues related to permissions or sandboxing
    on Mar 3, 2026
  2. removed
    sandboxIssues related to permissions or sandboxing
    on Mar 5, 2026
  3. JHenzi commented on Mar 12, 2026

    @JHenzi

    Present on Mac desktop. Codex even wrote an app to write to the Click UP API but won't run it. This is going to make me cancel.

  4. mikemike396 commented on Mar 13, 2026

    @mikemike396

    With the latest build I was able to change the sandbox settings to workspace write and check the "allow network access". After restarting codex my automations can access the network!

    Image
  5. JHenzi commented on Mar 13, 2026

    @JHenzi

    Mac desktop, latest version, lacks that feature/option.

  6. sokolgood commented on Mar 18, 2026

    @sokolgood
    Author

    Updated to Codex App - Version 26.313.41514 (1043)

    The issue appears to be resolved. Codex now provides configuration directly in the UI, and it correctly respects values from config.yaml.

    Image

    Thanks for the improvement!

    Closing the issue.

  7. JHenzi commented on Mar 18, 2026

    @JHenzi

    You'd think this would be closed when users have it. I am running the latest client, I don't have that option.

  8. JHenzi commented on Mar 26, 2026

    @JHenzi

    Updated to Codex App - Version 26.313.41514 (1043)

    The issue appears to be resolved. Codex now provides configuration directly in the UI, and it correctly respects values from config.yaml.

    Image Thanks for the improvement!

    Closing the issue.

    This doesn't exist, why is this closed?

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

    appIssues related to the Codex desktop appbugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions