Skip to content

[macOS / ChatGPT Work] Terminal DNS and HTTPS fail despite network_access=true; Sites publishing blocked #55307

Closed

Description

@syleemk

App version

ChatGPT macOS app / Work mode. Installed app Info.plist: version 26.1013.40934, build 20770. This is a ChatGPT Work execution using Codex tools, not a standalone Codex CLI reproduction. Reporting here because it involves the Codex execution sandbox; please redirect if another tracker is appropriate.

Subscription

ChatGPT Plus.

Platform

macOS 27.0.1, Apple Silicon (arm64), zsh.

What issue are you seeing?

Repeated Sites publishing attempts in Work mode fail with DNS/network errors. Independent read-only probes inside the agent terminal also fail for both example.com and api.openai.com.

The user reports the network access toggle was already enabled. The user added the following to ~/.codex/config.toml, and the agent directly read and parsed that file with Python tomllib to confirm the value:

[sandbox_workspace_write]
network_access = true

The parsed value is {'network_access': True}. Top-level sandbox_mode and approval_policy are not explicitly set in that file. The active execution context nevertheless reports a workspace-write sandbox with restricted network access and a managed permission profile. Its granular approval policy disables sandbox approval, so the agent cannot request network escalation through that route.

This report does not establish whether ChatGPT Work is expected to honor this Codex config file, or whether a managed policy intentionally overrides it. The confusing behavior is that the UI/config changes do not produce working terminal connectivity or a clear explanation of the effective restriction.

Steps to reproduce / observed sequence

  1. Use the ChatGPT macOS app in Work mode with a local workspace.
  2. Ask the Sites plugin to publish a developer portfolio; repeated attempts fail with DNS/network errors (user-reported prior attempts).
  3. With the network toggle reportedly enabled, add the config block above.
  4. Ask the agent to check connectivity again. The following probe was executed on 2026-10-20 around 00:31 KST:
import socket
import urllib.request
import urllib.error

for host in ['example.com', 'api.openai.com']:
    try:
        addresses = sorted({r[4][0] for r in socket.getaddrinfo(
            host, 443, type=socket.SOCK_STREAM)})
        print(f'DNS {host}: OK {addresses}')
    except Exception as e:
        print(f'DNS {host}: FAIL {type(e).__name__}: {e}')
    try:
        with urllib.request.urlopen('https://' + host, timeout=10) as response:
            print(f'HTTPS {host}: OK HTTP {response.status}')
    except urllib.error.HTTPError as e:
        print(f'HTTPS {host}: CONNECTED HTTP {e.code}')
    except Exception as e:
        print(f'HTTPS {host}: FAIL {type(e).__name__}: {e}')

Actual output:

DNS example.com: FAIL gaierror: [Errno 8] nodename nor servname provided, or not known
HTTPS example.com: FAIL URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>
DNS api.openai.com: FAIL gaierror: [Errno 8] nodename nor servname provided, or not known
HTTPS api.openai.com: FAIL URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>

Expected behavior

If network access is permitted for this execution, DNS and outbound HTTPS should work. If a separate managed Work policy overrides the toggle or config, the UI should clearly identify the effective policy, why it takes precedence, and the supported way to allow network-dependent tasks such as Sites publishing.

Additional information / limitations

Activity

  1. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  2. added
    bug
    sandbox
    connectivity
    config
    on Oct 19, 2026
  3. syleemk commented on Oct 19, 2026

    @syleemk
    Author

    Update: I resolved the problem by switching the execution mode to Codex and enabling Full Access. After making both changes, the network access problem was resolved.

    Closing this issue as resolved for my setup. Since both settings were changed together, this does not isolate which change was responsible or establish a product bug.

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

    bugconfigconnectivitysandbox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions