[macOS desktop] Fresh Local Full Access session runs managed workspace-write with network disabled; personal CLI works
Summary
On macOS 26.1 (Apple Silicon), selecting Full Access for a fresh Local session in the ChatGPT desktop app does not propagate to tool execution. The effective session profile is managed / workspace-write / restricted, with restricted network access and the repository's real .git directory protected as read-only.
A personal Codex CLI 0.170.0 session on the same Mac, with the same personal ChatGPT subscription and local corporate VPN connection, can successfully run with danger-full-access / on-request, resolve a private Git host, and use SSH git ls-remote. This suggests a desktop-specific permission propagation / session-initialization discrepancy, though the exact layer is not established.
Environment
- macOS 26.1, Apple Silicon
- ChatGPT desktop Local session, personal subscription
- Desktop tool execution originates from the Codex binary bundled inside ChatGPT.app
- Standalone personal Codex CLI: 0.170.0
- Observed/reproduced in a newly created Local session on November 22, 2026 (UTC+8)
- This is an independently reproduced issue; not simply an old thread inheriting permissions.
Expected
Choosing Full Access in the desktop UI should deliver an effective Full Access execution profile for the new Local session, or clearly explain any policy restriction. Local repository metadata and network access should not be blocked when Full Access is actually allowed.
Actual (desktop Local)
- UI selection: Full Access
- Effective
sandbox_mode = workspace-write permission_profile = managed(filesystem restricted;.gitexplicitly read-only)approval_policy = granular; elevation unavailable according to supplied session metadata- Network policy restricted; tool subprocess has
CODEX_SANDBOX_NETWORK_DISABLED=1 - DNS lookup of a private, VPN-reachable Git hostname fails with
socket.gaierror - SSH
git ls-remotefails at hostname resolution (exit 128) - Earlier desktop attempts to
git fetchalso failed trying to write.git/FETCH_HEAD(Operation not permitted). The fresh-session reproduction was read-only and did not attempt a write.
Here managed refers to the Codex sandbox profile, not evidence of MDM or corporate policy.
Control test: standalone personal CLI on the same Mac
- OpenAI provider, personal ChatGPT account; model request succeeded
- Effective permissions shown as
danger-full-access, approvalon-request - Corporate VPN active, private Git hostname resolves
- Non-interactive SSH
git ls-remotesucceeds - The Git metadata path passed access checks; no actual write-test was performed.
The CLI and desktop tests were not simultaneous and were performed in two different local Git checkout paths; no claim is made that the paths or exact runtime environments were identical. Nonetheless DNS was tested directly inside each tool environment, and the UI/runtime permission discrepancy is independently observed.
Reproduction
- Open the personal ChatGPT desktop application on macOS.
- Create a new Local session for a local Git checkout and explicitly select Full Access.
- Ask the session to report actual runtime permission metadata and execute a read-only DNS lookup and
git ls-remotefor a private Git host accessible to the native terminal. - Observe that the effective tool policy is managed
workspace-write, network restricted, andCODEX_SANDBOX_NETWORK_DISABLED=1, despite UI Full Access.
Requested investigation
Please correlate, for the same request:
- Permission selection submitted by desktop UI.
- Permission values accepted at session initialization / restoration.
- Effective permission profile delivered to the first tool call, and the source of any override.
We have not established whether the mismatch comes from UI transmission, initialization, or runtime policy merge. No evidence has established contamination by a separate enterprise login, either.
Related reports
- #55922 (similar macOS desktop Full Access vs managed workspace-write discrepancy)
- #62408 (similar Windows desktop symptom)
Private hostname, username, exact local project paths, IP addresses, session identifiers and credentials deliberately omitted. Sanitized runtime diagnostics can be supplied if needed.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #63033
- #61989
- #62408
- #61995
- #62967
Powered by Codex Action
I reproduced this on macOS (Apple Silicon) with Codex Desktop 26.1117.41037 on November 22, 2026. Full Access was selected and ~/.codex/config.toml contained sandbox_mode = "danger-full-access". The desktop session ran with workspace-write and restricted networking. The Codex extension in VS Code has full access to the same repository on the same Mac.
- Creating and deleting a temporary file in the working tree succeeded.
- Creating a temporary file inside
.gitfailed withOperation not permitted. git ls-remote originfailed withCould not resolve host: github.com, before authentication.
In-app feedback ID: e5d474b9-9df9-46e9-b117-dbe9ba80aef0.
Follow-up: local UI state persists Full Access; request-level propagation remains unproven (November 22, 2026)
Additional read-only investigation of the affected personal desktop setup has narrowed the discrepancy. This is not a claim that the root cause is known.
New evidence
At 13:15 China Standard Time (UTC+8), November 22, the desktop's persisted state file ~/.codex/.codex-global-state.json contained:
permission-selection-by-host-id.local = full-access
agent-mode-by-host-id.local = full-access
This confirms that the Local host's Full Access UI selection was saved. It does not establish what the UI transmitted for the failing thread, because the stored thread-level permission entry could not be correlated with that thread.
The fresh Local session was previously observed using effective permission metadata:
sandbox_mode = workspace-write
permission_profile = managed
filesystem = restricted (.git explicitly read-only)
approval_policy = granular
CODEX_SANDBOX_NETWORK_DISABLED = 1 (tool subprocess)
An existing log contained a TurnInput with permission_profile=managed at 10:50:48 CST that day, but it could not be tied to the affected diagnostic turn, so it should not be treated as proof of a bad request from the UI.
Evidence gap / precise request for maintainers
For the affected new Local session on Nov 22, 2026 around 10:50–10:53 CST (02:50–02:53 UTC), the observed tool subprocess had PID 52543 and parent PID 20165. Locally visible tool output identifiers were 77128d, abcc1c, and 53722a (process/repository identity, DNS, SSH read). These are output correlation hints, not established thread/turn/request IDs.
Could maintainers correlate a single thread/turn/request across:
- Desktop UI's submitted Full Access selection.
- Session initialization / restore permission values.
TurnInput/ requested settings overrides.- Config requirements and permission merge.
- Effective tool filesystem, network and approval policies?
This would distinguish UI request construction from initialization/restore or runtime merging. The current locally available diagnostics cannot distinguish those layers.
Network-control caveat
A native macOS terminal successfully resolved the private Git hostname at 13:19 CST. The desktop's failed DNS check was around 10:51 CST, so this is not a simultaneous network comparison. We are not asserting that all DNS failure is necessarily caused by sandboxing, although the desktop tool subprocess was marked network disabled.
What has not been shown
- No proof of enterprise-account configuration contamination or an MDM-enforced override.
- No identified request ID for the failing desktop turn.
- No identified component that transformed Full Access to
workspace-write. - No reason to assume clearing caches, deleting login state or reinstalling the application would fix the issue.
The observations are partially similar to #56663, but a shared cause is unconfirmed. All investigations were read-only. Sensitive hostnames, paths, addresses and credentials remain omitted.
Related independent macOS reproduction: another commenter on this issue reports Full Access becoming workspace-write with restricted DNS and .git write failures on Apple Silicon, even though VS Code's Codex extension has full access on the same machine.
macOS 26.1117.41037 — kernel-level evidence for the effective profile, plus a run-location UI regression
Same environment as the report: macOS 27.2.1 (Mac17,4, Apple silicon), ChatGPT.app 26.1117.41037 (build 29803), bundled codex-cli 0.171.0-alpha.13, ChatGPT auth.
The asymmetry, in one app, same account, same minute: a Codex conversation with Full access writes outside the workspace fine; a Work conversation with Full access is denied.
1. Kernel-level denials (Work surface only)
2026-11-23 10:51:27 Sandbox: zsh(24988) deny(1) file-write-create /Users/<user>/<project>/.codex_write_test_20261123
2026-11-23 11:25:43 Sandbox: Python(35778) deny(1) file-write-create /Users/<user>/codex_permission_probe_u89mh5ke
Those probe filenames appear in no local Codex transcript (~/.codex/sessions/**, ~/.codex/archived_sessions/**), so they were issued by the Work surface, not by a Codex conversation.
2. How the Work tool kernel is actually launched
ps -ww on the live Work kernel process:
codex sandbox -c shell_environment_policy.inherit="all" \
-c default_permissions="node_repl" \
-c permissions.node_repl={filesystem={":root"="read",
"<project>"="write","<project>/.git"="read","<project>/.codex"="read","<project>/.aws"="read",
"/workspace"="write",":tmpdir"="write",":slash_tmp"="write"},network={enabled=false}} \
-- <node> .../kernel.js --working-dir <project>
This is the concrete counterpart of the "managed / workspace-write / restricted network" that others report from session metadata: :root = "read" is unconditional and the composer's Full access selection never reaches this profile.
3. Codex conversation in the same app (control)
"sandbox_policy": {"type": "danger-full-access"},
"active_permission_profile": {"id": ":danger-full-access"}
<permission_profile type="disabled"><file_system type="unrestricted" /></permission_profile>
4. New: the Work run-location control disappears between builds
This is the part I have not seen reported and it may point at the mechanism.
- On an earlier build, the Work chat's execution environment had silently been switched to cloud, which produced the same "everything runs sandboxed" behaviour. Switching it back to "On your computer" fixed it immediately.
- After a recent update, the Work run-location switcher disappeared entirely — the Codex-mode switcher is still there, the Work one is gone — and the sandboxed behaviour came back.
Persisted state on this machine confirms the preference is stranded:
work-run-location-v1 = "local"
cloudSelectionSource = "user" # the manual switch was recorded
codexCloudAccess = "enabled_needs_setup"
legacy-cloud-settings-environments-v1 … hasEnvironments: false
So: the stored run location says local, cloud is not even provisioned for this account, the UI control that used to fix this is absent, and the session still runs in the restricted profile.
That suggests the effective permission profile may be resolved along a path that no longer consults the (now hidden) run-location / permission selection — consistent with the "profile resolved from conversation-creation instead of the composer" hypothesis in #62926 / #41410.
Question for maintainers: is the removal of the Work run-location selector intentional rollout, or a regression? That determines whether to chase profile resolution or the missing control.
Full write-up with logs: #63270. Reproduced independently on the same build by @andreas-nachtigall and @gzrunkey in #63033, and by @royhenengel / @lllleonardotao above.
I’m seeing this intermittently on macOS as well. Full Access is selected, but some new sessions behave as if access is restricted.
Same issue on our side (27 Nov 2026, macOS, ChatGPT desktop 26.1117, Business workspace). In Work chats Codex commands show CODEX_SANDBOX_NETWORK_DISABLED=1 and cannot resolve api.anthropic.com after enabling Work network access, Configuration > Network access, Sandbox = Workspace write, config.toml network_access = true and a full restart, in a new chat. The Keychain is also unreadable from commands, and a trusted Stop hook never runs (cloud orchestration). The same script works from Terminal. Please confirm a fix version.