codex icon indicating copy to clipboard operation
codex copied to clipboard

Desktop Work Mode: reported Full Access task remains workspace-write, blocking Xcode services and Swift macros

Open AUsernameForYou opened this issue 1 month ago • 7 comments

Environment

  • ChatGPT desktop app (bundle ID com.openai.codex), version 26.1007.71326, build 20398, read directly from the installed app's Info.plist.
  • Work Mode with local Codex execution tools.
  • macOS 26.5.2 (25F84).
  • Xcode 26.6 (17F113); selected developer directory is /Applications/Xcode.app/Contents/Developer.
  • Observed 2026-10-16, approximately 09:55–12:53 America/Los_Angeles.

Issue

The user reports starting this new project session with Full Access after the preceding session was restricted. They have explicitly authorized ordinary, scoped iOS project development and validation. However, the effective policy supplied to this running task still says:

  • sandbox_mode: workspace-write
  • restricted network access
  • granular approval, with sandbox_approval, rules, and skill_approval disabled

The agent could not independently inspect the selected permission control. A UI/runtime permission mismatch is suspected, not proven. Please help distinguish stale task permissions, another controlling policy source, and intended Work Mode behavior.

Reproduction and actual results

  1. Start a local Work Mode project task after selecting Full Access (user-reported selection).
  2. Inspect the effective task policy: it remains restricted as described above.
  3. Run xcrun simctl list devices available.

Observed errors include:

CoreSimulatorService connection became invalid.
Error opening log file (...CoreSimulator...simctl.log): Operation not permitted
Unable to locate device set: ... Connection refused
  1. Typecheck a minimal Swift file:
import Observation
@Observable final class Probe { var value = 0 }

Using:

xcrun swiftc -typecheck -module-cache-path /tmp/probe-module-cache Probe.swift

Observed:

sandbox-exec: sandbox_apply: Operation not permitted
external macro implementation type 'ObservationMacros.ObservableMacro' could not be found
swift-plugin-server produced malformed response
  1. Attempt a normal unsigned generic-device Release build, with task-specific DerivedData under /tmp and CODE_SIGNING_ALLOWED=NO.

The build exits 65 in CompileAssetCatalogVariant:

No available simulator runtimes for platform iphonesimulator.
SimServiceContext supportedRuntimes=[]

Earlier read-only local evidence records installed iOS simulator runtime bundles. This is not proof that the services work outside this task.

Expected behavior

The permission UI and the task's effective execution policy should agree. If Full Access cannot apply in this mode or is overridden by a managed requirement, the UI/task should identify the controlling restriction and provide a supported way to reconcile it without discarding the chat or project state.

Scope and limitations

  • No successful unrestricted comparison has been performed; the root cause is unconfirmed.
  • These failures do not establish a project source defect or a system-wide Xcode failure.
  • A separate CLI configuration reportedly specifies full access, but that does not establish the effective permissions of this running desktop task.
  • No permission stores, services, signing settings, or access controls were changed.
  • Separately, the app's terminal-opening tool returns Codex app tool request failed; it is unknown whether this shares a cause.
  • OpenAI's official support chat received the selected error details but said it cannot create an internal case/reference number and directed tracked bug reports to this repository.

Only minimal technical examples and selected error text are included. No credentials, account email, private project paths, source repository, full logs, or screenshots are attached.

AUsernameForYou avatar Oct 16 '26 19:10 AUsernameForYou

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

  • #54031

Powered by Codex Action

github-actions[bot] avatar Oct 16 '26 20:10 github-actions[bot]

Fresh reproduction in a new projectless Work chat, October 16, 2026, approximately 15:14–15:30 America/Los_Angeles.

Impact: this continues to block iOS app validation and is delaying our App Store submission. Please investigate the effective permission policy and provide a supported recovery that preserves the chat and project.

New evidence beyond the original report:

  • The user supplied a screenshot of the composer before creating this chat, showing Full access selected and no project selected. The agent inspected the screenshot's extracted content. The user created the projectless chat specifically to test whether project association caused the restriction.
  • The agent independently read the relevant local configuration fields: approval_policy = "never" and sandbox_mode = "danger-full-access". This establishes the contents of that configuration, not that the desktop Work execution surface uses it.
  • The new chat's effective execution policy still limits filesystem writes to its workspace and designated scratch roots, with restricted network access and no usable elevation route.
  • xcrun simctl list devices booted again fails with CoreSimulatorService connection became invalid, Operation not permitted when opening its simulator log, and device-set initialization / connection-refused errors.
  • A fresh unsigned generic-iOS Release build with task-owned /tmp DerivedData and CODE_SIGNING_ALLOWED=NO exits 65 in CompileAssetCatalogVariant. Exact error:
    No available simulator runtimes for platform iphonesimulator.
    SimServiceContext supportedRuntimes=[]
    
    Earlier build-log lines again show denied CoreSimulator log writes.
  • Xcode opens to its welcome window through the supported native-app interface. This does not prove that CoreSimulator works outside the restricted command context.
  • Nineteen Python source/import checks and seven marketing checks passed on the current source checkpoint. No current iOS XCTest pass is claimed.
  • The native feedback route is inaccessible to the agent: Computer Use is not allowed to use the app 'com.openai.codex' for safety reasons.
  • The user additionally reports another permission prompt during this reporting workflow despite having selected Full access. Please clarify whether that particular prompt is expected; it may be separate from the execution-policy issue.

Environment remains Codex Desktop 26.1007.71326, macOS 26.5.2 (25F84), Apple Silicon; Xcode UI reports 26.6 and the selected developer directory points to the installed Xcode.

OpenAI Support's web chat received this updated reproduction but explicitly said it cannot append to an internal bug, escalate to a human, or issue a reference number, and directed us to /feedback or this issue tracker. We are therefore adding the evidence here to the existing tracked report.

Root cause remains unconfirmed. No permission stores, access controls, services, signing configuration, or project source were changed for these access checks. No credentials, account email, private project paths, source code, full logs, or screenshot bytes are included in this public comment.

AUsernameForYou avatar Oct 16 '26 22:10 AUsernameForYou

Follow-up after reboot and a new local Work task — October 17, 2026 (America/Los_Angeles).

The issue persists after the user restarted the Mac and explicitly requested a fresh local task for ordinary Xcode/Simulator discovery.

Verified environment:

  • Unified ChatGPT/Codex desktop app: 26.1013.31256 (20586), bundle ID com.openai.codex.
  • macOS 26.5.2 (25F84), Apple Silicon.
  • Xcode 26.6 (17F113); the existing selected developer directory points to the installed Xcode.

Fresh task result, 07:56:45–46 PDT:

  • Ordinary xcodebuild -version and developer-directory reads succeeded.
  • Ordinary xcrun simctl list devices runtimes executed and exited 1.
  • Sanitized errors:
    CoreSimulatorService connection became invalid.
    Error opening CoreSimulator log file: Operation not permitted
    Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused"
    Unable to locate device set / Failed to initialize simulator device set
    
  • A single ordinary discovery probe in the existing affected Work task at 07:57:23 PDT also failed. Both lanes stopped dependent native work.

Policy/context distinction:

  • The affected Work tasks continue to report an effective workspace-write sandbox with restricted network access.
  • The existing task records disabled escalation. The fresh task reports automatic escalation review; no escalation was requested. This fresh failure was an executed ordinary command, not a rejected elevation request.
  • Another local Codex execution context on the same Mac reported successful ordinary runtime/device discovery at 07:27 PDT, before the reboot. That is context-specific discovery evidence, not proof that native tests passed or that the affected Work executor/global Simulator service recovered.

The problem continues to prevent fresh iOS validation and genuine app-screen capture for App Store preparation. The root cause remains unconfirmed; these observations do not establish a source defect, a system-wide Xcode failure, or that a particular app update will fix it.

Please provide a supported way to identify and reconcile the controlling local Work executor policy while preserving existing chats/projects, and clarify the expected relationship between the Full access UI selection and the effective policy delivered to these tasks.

No service/runtime resets, permission-store edits, signing changes, alternate execution routes, or further native retries followed these failures. No private filesystem paths, source, credentials, account details, raw logs, screenshots or private task identifiers are included in this update.

AUsernameForYou avatar Oct 17 '26 15:10 AUsernameForYou

Additional matching Swift macro failures in a local desktop task. Environment versions were checked on 9 November 2026 (Asia/Manila):

  • ChatGPT desktop app 26.1103.41825, build 25679 (installed bundle metadata).
  • macOS 27.2 on Apple Silicon.
  • Xcode 27.2 (27B52); Apple Swift 6.4.2.

Earlier build and SwiftData type-check attempts in the same chat failed with:

sandbox-exec: sandbox_apply: Operation not permitted
external macro implementation type 'SwiftDataMacros.PersistentModelMacro' could not be found
swift-plugin-server produced malformed response

Macro-free Swift compilation succeeds. Full application compilation and native runtime validation have not passed. No fresh native build was attempted for this update; these failure observations come from the existing task logs.

The current task still receives a workspace-write policy with restricted network access and granular sandbox_approval, rules, and skill_approval disabled; request_permissions and mcp_elicitations are enabled. Scoped development-directory permission requests returned no grants and no detailed reason. The user reported selecting Ask for approval in the actual chat before the most recent failed retry; the agent could not independently verify the selected UI mode.

Please provide a supported way to identify the controlling policy and enable the Apple compiler tools for an authorized local build while preserving the current chat and project. This is a matching symptom, not proof of the same root cause. No unrestricted comparison has been performed and no permission stores or security controls were modified.

This update includes no private project name or paths, source code, personal content, credentials, screenshots, or full logs.

romilmartinez888-cloud avatar Nov 08 '26 16:11 romilmartinez888-cloud

Additional local Work occurrence — November 18, 2026

Posting at the affected user's explicit request rather than opening a duplicate Simulator-access report.

Environment verified during the diagnostic: installed macOS desktop bundle com.openai.codex 26.1111.21308 (27194); macOS 26.6.2 (25G83), arm64; Xcode 26.6 (17F113). These describe the installed environment at inspection, not an independently verified binary identity for every earlier command.

Observed evidence from the existing local iOS Work task:

  • Two machine-readable Simulator broker receipts record verdict=blocked, no candidate devices, and completion at 2026-11-18T19:41:34Z and 20:02:11Z.
  • Both failed in simctl device discovery, before acquiring a device or launching XCTest. Sanitized errors:
    CoreSimulatorService connection became invalid.
    Logging connection invalid / XPCErrorDescription=Connection invalid.
    Error opening CoreSimulator log file: Operation not permitted.
    Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused".
    Unable to locate device set / Failed to initialize simulator device set.
    
  • The same task records a supported elevated read-only request for xcrun simctl list devices --json being rejected before launch because sandbox_approval=false and request_permissions=false, despite the user's explicit authorization. This is a recorded policy rejection, not an unrestricted comparison.
  • The task also reports inability to create .git/index.lock, while source-file edits remain saved. No fresh Git write probe was performed for this report. A related current macOS report is #61297.

Post-restart comparison, same Mac: at 2026-11-18T20:09:50Z, read-only broker status and simctl discovery succeeded in a different authorized execution context. A new turn in the affected Work task, completed at 20:16:12Z, still received effective workspace-write with sandbox_approval=false and request_permissions=false; ordinary simctl discovery again failed with Operation not permitted / POSIX 61. The task policy therefore did not change on this resume. This comparison supports a context-specific access problem; it does not prove which policy source controls the affected executor or that native tests have passed elsewhere.

Impact and limits: native validation cannot proceed, and macOS-only deterministic logic tests do not establish iOS UI/device acceptance. The user restarted the desktop app and reported continued severe UI lag. Existing task inspection still returned an active/in-progress turn with recent command outputs and no recorded turn error; that does not prove the UI is responsive or the native access problem recovered. No successful same-task post-restart Simulator discovery or native test run is claimed. The user additionally reports that the permission-mode selector is missing in this affected chat and that they cannot switch permissions there. This is user-reported, not independently visually verified. A working selector or supported same-chat permission-recovery path is therefore also needed. This occurrence does not independently prove what permission mode was selected when the task was created.

The earlier local checkpoint mislabeled UTC-03:00 wall times as UTC and incorrectly said receipts were absent. The timestamps above come from the receipts' explicit completedAtUTC fields; the receipts do exist.

Please advise a supported way to identify the controlling policy of an existing local Work executor and restore authorized CoreSimulator access without losing the conversation or project state. A broker source defect, global Simulator-service outage and shared cause with UI lag have not been established.

This comment contains no private project/chat names or IDs, repository paths, account details, credentials, source code, screenshots, full logs or raw receipt attachments. The diagnostic did not reset services, modify permission stores, launch duplicate work, or change project code.

FoxsterDev avatar Nov 18 '26 20:11 FoxsterDev

Recurrence on desktop build 29030, with same-Mac A/B — Nov 20 UTC

The symptom in my Nov 18 report recurred after a desktop update. A local iOS audit reported that both the full Swift test suite and a critical UI scenario stopped at Simulator discovery, before the first test.

At about 00:28–00:29 UTC on Nov 20 (Nov 19 local), I independently tested the same read-only discovery command, xcrun simctl list devices booted -j, in both execution contexts on the same Mac:

Context Result
Normal managed Codex command Exit 1; CoreSimulatorService connection became invalid, NSPOSIXErrorDomain Code=61 "Connection refused"; device set could not initialize. This reproduces without the project broker or XCTest.
Same Codex session, approved execution outside its sandbox for that single command Exit 0; one already booted device returned. No service or device was restarted.

Installed environment at verification: desktop build 29030, macOS 27.2.1 (26B131), Xcode 27.2 (27B52). The user also reports that Claude accessed CoreSimulator successfully on the same Mac. That last observation is user-reported; I did not compare Claude's effective permissions.

The A/B isolates the failure to the managed execution context in this check, rather than a host-wide Simulator outage, a busy broker slot, or a test failure. It does not identify the exact policy rule, establish a Full Access UI mismatch on this turn, or establish that the full test suite passes. The scoped approval restored this discovery probe only; an earlier affected task did not offer approval.

Could the task show which policy blocks CoreSimulator and offer a supported scoped recovery for local iOS testing, or fail early with an explicit permission diagnostic? No private repository paths, device identifiers, or unredacted logs included.

FoxsterDev avatar Nov 20 '26 00:11 FoxsterDev

Same-Mac controlled recurrence on desktop build 29803 — November 22 UTC

Following up on my November 20 comparison. The user reported that a local iOS screenshot/capture task could not connect to CoreSimulator. I ran an independent, read-only A/B on the same Mac at approximately 01:20 UTC, using the identical command in both cases: xcrun simctl list devices available -j.

Command execution context Observed result
Ordinary managed Codex execution Exit 1: CoreSimulatorService connection became invalid, XPC Connection invalid, and POSIX 61 (Connection refused) during device-set initialization.
Same diagnostic session, scoped approval for this command outside the sandbox Exit 0: 58 available devices across 6 runtime groups; none booted.

Installed desktop 26.1117.41037 (29803), macOS 27.2.1 (26B131) arm64, Xcode 27.2 (27B52). No device boot, test, capture, broker invocation, service restart, or settings change was needed to reproduce the difference.

This reproduces the access failure before any project broker or XCTest code and shows that simulator discovery worked on the host outside the restriction at the time of the check. It does not prove which precise policy rule is responsible, what permission mode the affected task's UI showed, or that the approved read-only probe restores Simulator access in that task. Please surface the effective restriction and a supported, scoped way to recover CoreSimulator access for an existing local task without losing its state. No private paths, task identifiers, device identifiers, or raw logs included.

FoxsterDev avatar Nov 22 '26 01:11 FoxsterDev