codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS] ChatGPT Work ignores Full access — tool kernel always runs with a generated workspace-only Seatbelt profile (26.1117.41037)

Open Vincent1826 opened this issue 1 week ago • 11 comments

Summary

On macOS desktop app 26.1117.41037, a ChatGPT Work conversation with Full access selected in the composer still executes every command inside a Seatbelt sandbox whose write permission is limited to the conversation's workspace roots (plus :tmpdir / :slash_tmp). Any write elsewhere under $HOME fails with Operation not permitted.

On the same build, same machine, same account:

  • a Codex conversation with Full access runs unsandboxed (writes outside the workspace succeed),
  • the bundled CLI (codex exec -s danger-full-access, codex-cli 0.171.0-alpha.13) also runs unsandboxed.

So the Full access selection appears not to propagate to the Work execution path.

Environment

macOS 27.2.1 (Mac17,4, Apple silicon)
App ChatGPT.app 26.1117.41037 (CFBundleVersion 29803)
Bundled engine codex-cli 0.171.0-alpha.13
Auth ChatGPT sign-in, locale zh-CN
Collected 2026-11-23, Asia/Shanghai

Not involved: no MDM profile, no managed/requirements config, codex doctor reports no sandbox issue, and the app is not App-Sandboxed (com.apple.security.app-sandbox = false), so this is not an OS privacy (TCC) or entitlements problem.

Steps to reproduce

  1. Start a Work conversation and select Full access in the permission picker.
  2. Ask it to run: printf ok > ~/probe-$RANDOM.txt && cat ~/probe-$RANDOM.txt
  3. Result: Operation not permitted (see kernel denials below).
  4. Start a Codex conversation in the same app, select Full access, repeat step 2 → succeeds.

Actual behavior

The Work tool kernel is always spawned with an inline, generated permission profile that reads the whole filesystem but only writes to workspace roots:

codex sandbox -c shell_environment_policy.inherit="all" \
  -c default_permissions="node_repl" \
  -c permissions.node_repl={filesystem={":root"="read",
      "/Users/<user>/.codex/.chatgpt-projects/<project>"="write",
      "/workspace"="write",":tmpdir"="write",":slash_tmp"="write"},network={enabled=false}} \
  -- <node> .../kernel.js --working-dir /Users/<user>/.codex/.chatgpt-projects/<project>

The composer's Full access selection does not change :root = "read", and network = {enabled = false} is unconditional. Writes to any path outside the listed workspace roots are denied by the kernel.

Expected behavior

Full access should apply to Work tool execution exactly as it does to Codex conversations in the same app — i.e. no filesystem restriction — or the composer should not offer Full access for Work conversations if the intent is that Work is always workspace-scoped.

Evidence

A. Kernel-level denials (Work surface only)

2026-11-23 10:51:27  Sandbox: zsh(24988)    deny(1) file-write-create /Users/<user>/<company-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
2026-11-23 11:19:39  Sandbox: Python(33174) deny(1) file-write-mode   /Users/<user>/.agent-reach/browser-locks

The command strings that produced these probes do not appear in any local Codex thread transcript (~/.codex/sessions/**, ~/.codex/archived_sessions/**), i.e. they were issued by the Work surface, not by a Codex conversation.

B. Codex conversation in the same app is unrestricted

Turn context of a Codex conversation on the same build:

"sandbox_policy": {"type": "danger-full-access"},
"active_permission_profile": {"id": ":danger-full-access"}

world_state:

<permission_profile type="disabled"><file_system type="unrestricted" /></permission_profile>

In that conversation, a command writing to $HOME outside the workspace returned exit_code=0, and a write to a directory outside the workspace followed by git commit also succeeded.

C. CLI cross-check

codex exec -s danger-full-access ...   # workdir outside the workspace
→ sandbox: danger-full-access ; printf E2E_OK > /Users/<user>/zzz-codex-e2e.txt  → success

Related reports

  • #62926 — Windows, same build 26.1117.41037: Work chats ignore Full access, only write to a synthetic chat folder.
  • #63078 — macOS: Full Access not propagated to tool execution (managed workspace-write, network disabled); personal CLI fine.
  • #59528 — macOS Work 26.1027.61615: Full access selected but effective permissions restricted.
  • #56688 — Work Cloud: executor switches from danger-full-access to managed read-only (regression observed from 2026-10-24).

Taken together this looks like a permission-propagation regression in the Work execution path that is older than 26.1117.41037, not a single-build regression.

Workarounds that work today

  1. Add the target directory to the Work conversation's workspace roots (write permission is derived from that list).
  2. Do cross-directory writes in a Codex conversation or via the CLI.

Separate observation (possibly unrelated)

The Local Work executor repeatedly fails its rendezvous registration with http_status=401 rejection_reason="expired" (16 incidents between 2026-11-22 and 2026-11-23, retry counter up to 25, process.exit_code=137). Restarting the app clears it (first connection succeeds on connectionAttempt=1). Reported here only because it affects the same Work execution path.

Vincent1826 avatar Nov 23 '26 06:11 Vincent1826

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

  • #63078
  • #63111
  • #63033
  • #62926
  • #61995

Powered by Codex Action

github-actions[bot] avatar Nov 23 '26 06:11 github-actions[bot]

I’m also seeing this intermittently in ChatGPT Work on macOS. Some sessions start with restricted access even when Full Access is selected.

fantamp avatar Nov 23 '26 10:11 fantamp

I ran into this on macOS with desktop build 26.1117.41037. After updating, the app switched from Codex mode to ChatGPT mode without any indication that the mode had changed. The session showed restricted permissions (workspace-write) even though I had selected Full access.

I manually switched the app back to Codex mode, and Full access worked again. If you hit this after updating, check which mode the app is in.

FBRAA avatar Nov 23 '26 20:11 FBRAA

Same issue here on an Apple Silicon Mac running 26.1117.41037 (build 29803). In a new ChatGPT Work conversation, I can select Full access before sending the first message. As soon as I send it, the permission picker disappears. The session ends up in workspace-write with networking disabled, and my SSH check fails before it gets to authentication.

The mode switch mentioned above worked for me too. I clicked ChatGPT in the top-left corner and switched to Codex, and Full access worked again there. That gets me unstuck, but I can still reproduce the issue in ChatGPT Work on the same build.

Could you check why Work lets me select Full access if the new conversation starts with restricted permissions?

lichen1015 avatar Nov 24 '26 03:11 lichen1015

This comment was AI-generated by GPT-6.2 Sol Medium in Codex on my instruction:

I can reproduce this on the same macOS build (26.1117.41037). Despite selecting Full access and setting sandbox_mode = "danger-full-access" in ~/.codex/config.toml, Work sessions still receive a managed workspace-write profile with CODEX_SANDBOX_NETWORK_DISABLED=1.

Even localhost connections (127.0.0.1:8000) fail with EPERM. Starting a new session didn’t help.

Maxim-Mazurok avatar Nov 24 '26 03:11 Maxim-Mazurok

I saw this after updating to 26.1117.41037 on an Apple silicon Mac on November 24. Two ChatGPT Work conversations on the same machine show different behavior:

  1. Reopen a Work conversation created before the update. Its composer still shows 完全访问 (Full access) next to the + button.
  2. Start a new Work conversation and select 完全访问 before sending the first message. After entering the conversation, the permission control disappears. Both composers are labeled 使用 ChatGPT Work.
  3. In the new conversation, test -w "$(git rev-parse --absolute-git-dir)" returned false for the local repository. The session reported workspace-write.

I expected the new conversation to retain and display the selected mode. If a policy prevents Full access, it would help to show the effective mode and the reason it changed. The older conversation provides a UI comparison on the same build.

neoericnet avatar Nov 24 '26 04:11 neoericnet

Disclosure: this comment was written by an AI agent (DeepSeek Harness) on the issue author's instruction. All measurements below were collected on his machine; he reviewed them before posting.

Where the five reports converge

Observation Reported by
Full access selected, effective profile is workspace-write all five
Network disabled (CODEX_SANDBOX_NETWORK_DISABLED=1) @lichen1015, @Maxim-Mazurok, @neoericnet
Permission picker disappears after the first message @lichen1015, @neoericnet
Switching to Codex mode restores Full access @FBRAA, @lichen1015
sandbox_mode = "danger-full-access" in config.toml does not help @Maxim-Mazurok

Two competing explanations

A. The app silently changed mode. @FBRAA: after updating, the app moved from Codex mode to ChatGPT mode without notice, and switching back restored Full access.

B. The profile is resolved at conversation creation. @neoericnet: on the same machine and same build, a Work conversation created before the update still shows 完全访问, while a new Work conversation loses the control after the first message — both labelled 使用 ChatGPT Work. #63111 reports the same "new chats broken, older chats fine" split.

B is the stronger hypothesis, because it is a comparison between two Work conversations under the same mode; A cannot explain why the older Work conversation keeps working. A and B may share a cause, but B is the one that constrains where to look.

Separately, @Maxim-Mazurok's observation that even 127.0.0.1:8000 returns EPERM rules out an outbound-proxy explanation for the network restriction — the network is cut wholesale, not proxied wrongly.

The actual profile behind the reported workspace-write

Nobody has posted this yet, so here is the generated profile from ps -ww on the live Work tool kernel:

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>

and the matching kernel-side denials:

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 paths appear in no local Codex thread transcript (~/.codex/sessions/**), so they were issued by the Work surface, not by a Codex conversation.

For contrast, a Codex conversation on the same build and machine: sandbox_policy = danger-full-access, active_permission_profile = :danger-full-access, world_state shows <permission_profile type="disabled"><file_system type="unrestricted"/></permission_profile>, and writes outside the workspace succeed.

So the workspace-write that everyone is reading in session metadata is this inline profile, and the composer selection is not reaching it.

One more data point: the Work run-location selector

On this machine, the same symptom appeared once before with a different trigger:

  • An earlier build silently reset the Work execution environment to cloud; switching it back to "On your computer" fixed it.
  • After a later update, the Work run-location switcher disappeared (the Codex-mode one is still present) and the restricted behaviour returned.

Persisted state, while the session is still restricted:

work-run-location-v1   = "local"
cloudSelectionSource   = "user"            # the manual switch was recorded
codexCloudAccess       = "enabled_needs_setup"
legacy-cloud-settings-environments-v1 … hasEnvironments: false

The stored preference is local, cloud is not provisioned for this account, the control that used to fix it is gone, and the session is still workspace-scoped.

Questions

  1. Is the disappearing permission picker (and the Work run-location selector) intentional rollout, or a regression?
  2. If Work is deliberately always workspace-scoped, why does the composer still offer Full access before the first message? (@lichen1015 asked the same — this is the part that makes it look like a UI/behaviour mismatch rather than a documented policy.)

Full logs and reproduction steps are in the issue body.

Vincent1826 avatar Nov 24 '26 06:11 Vincent1826

Thanks, @lichen1015, for writing up the reproduction steps. That’s exactly what I ran into too. I selected Full access before the first message in a new local chat, then the permission picker disappeared, the session ended up in workspace-write, and SSH failed before authentication.

fantamp avatar Nov 24 '26 13:11 fantamp

I am experiencing a potentially related regression in ChatGPT Work on macOS (Apple Silicon), reported on November 23, 2026. After a recent desktop app update, Work tasks remain in progress indefinitely, while Codex remains usable on the same machine. The distinction between the Work and Codex execution paths in this report is consistent with my experience.

I have not independently verified the effective sandbox profile or established that the hanging tasks have the same root cause as the Full access regression. Adding this report to follow the investigation and any corrective release.

fakepooh avatar Nov 25 '26 12:11 fakepooh

Adding a same-machine comparison collected Nov 25, 2026 (America/New_York; some diagnostic logs are dated Nov 26 UTC). This comment was prepared and posted by a Codex agent at my request. The failing Work results below were supplied from the affected session; the successful comparison commands were independently rerun in the current Codex session.

Work versus Codex: same local checkout, binaries, and remote

Item Affected ChatGPT Work session Current Codex session
Execution location Local macOS checkout Same local checkout
Effective sandbox workspace-write danger-full-access
Effective permission profile managed; project writable but <repo>/.git explicitly read-only disabled; filesystem unrestricted
Network Restricted Enabled
Sandbox escalation sandbox_approval disabled; escalation rejected Not needed for these checks
Codex executable/version /opt/homebrew/bin/codex, 0.172.0 Identical
gh executable /opt/homebrew/bin/gh Identical

Both sessions target the same GitHub SSH origin. Repository details are omitted here.

The exact read-only checks, run from the repository:

test -w .git

GIT_TERMINAL_PROMPT=0 \
GIT_SSH_COMMAND='ssh -o BatchMode=yes -o ConnectTimeout=5' \
git ls-remote --exit-code origin refs/heads/main

gh api repos/<owner>/<repo> --jq '{full_name,permissions}'

Results:

  • Work: writability check failed; Git exited 128 with Could not resolve hostname github.com: nodename nor servname provided, or not known; gh exited 1 with error connecting to api.github.com.
  • Codex: all three exited 0. Git returned the main branch ref, establishing successful DNS, SSH authentication, and repository read access through this session. The gh API returned repository permissions including push: true and admin: true.
  • The Work SSH failure happened before authentication, so it provides no evidence of invalid credentials.
  • No Git write or push was attempted. test -w is a writability check, not proof that every Git write operation would succeed.

Local configuration and version evidence

Read-only inspection found:

# ~/.codex/config.toml
sandbox_mode = "danger-full-access"
approval_policy = "never"

# The repository's project entry:
trust_level = "trusted"

No project/ancestor .codex/config.toml override was found between this checkout and /Users. The following checked paths were absent:

  • ~/.codex/requirements.toml
  • ~/.codex/managed_config.toml
  • /etc/codex/config.toml
  • /etc/codex/requirements.toml
  • /etc/codex/managed_config.toml

I am the administrator and did not configure the restrictive Work policy. These file checks alone do not rule out remotely supplied or app-generated policy, and the label managed does not establish who assigned it.

The installed /Applications/ChatGPT.app/Contents/Info.plist reports 26.1117.31558, build 29513. This differs from the issue's 26.1117.41037/build 29803. That is the on-disk bundle version checked during diagnosis; it is not independently verified as the version that launched the affected Work session.

Desktop logs include a separate [tpp-local-executor] component and “Starting Local Work executor” / “Local Work executor spawned; awaiting rendezvous.” Searches of those logs did not expose the affected session's profile-construction arguments or explain the policy selection. We have not independently captured the inline sandbox command shown by the issue author.

What this narrows down, and requested diagnostics

This comparison supports a difference in the effective execution policy between Work and Codex, rather than a repository credential problem or different Homebrew executable versions. It does not yet identify the exact failing assignment.

Please trace the permission selection through Work conversation creation/resume → local executor request → generated sandbox profile. In particular:

  1. Is Full Access dropped, defaulted, or intentionally replaced with a managed profile on the Work path?
  2. Which component supplies the explicit .git read-only rule, disabled networking, and disabled sandbox approval? Can the UI expose that policy's source and reason?
  3. Can a diagnostic include the selected permission mode, resolved profile, policy provenance, executor/build identity, and redacted final sandbox arguments under one correlation ID?
  4. A regression check should compare fresh Work and Codex conversations using the same local repo and Full Access selection, then test Git metadata access and GitHub connectivity. If Work intentionally cannot honor Full Access, the composer should explain that before execution.

Related: #63033. No configuration, credentials, repository files, or access settings were changed during this comparison.

zvory avatar Nov 26 '26 01:11 zvory

I’m seeing similar symptoms in ChatGPT Work on my Mac. The affected sessions can read my local Documents folder and mounted Google Drive folder, but creating a test file in either returns Operation not permitted. Writing inside the project workspace works. I’ve seen this in more than one Work project. If this is the same issue, please let us know which desktop build fixes it. Thanks.

davidsella604-glitch avatar Nov 26 '26 15:11 davidsella604-glitch