Repository navigation
Description
Summary
During ongoing work in a ChatGPT project, the user has experienced recurring Windows sandbox provisioning and permissions failures that prevent command execution and access to project files. Permissions repairs and restarting or rerunning setup have restored functionality temporarily, but problems have returned.
On October 4, a cloud-selected Work conversation executed through a Windows executor with outbound networking disabled. Exiting the desktop app and tray icon left a background sandbox process running. After the user force-closed it, the next turn in the SAME conversation used Linux cloud execution and successfully accessed the API. A subsequent turn selected Windows again; whether the desktop client or background process restarted is unknown.
These may be related failures involving sandbox provisioning, permissions persistence, or executor lifecycle. A common root cause has not been established.
Impact
Repeatedly blocks project work: running analysis, reading reference files, fetching API data, and accessing generated deliverables. Recovery has required permissions troubleshooting, rerunning setup, restarting clients, switching devices, and manually terminating background processes, with temporary or inconsistent results. Active execution environment and permissions are not sufficiently visible to determine which environment needs repair.
Earlier permissions and provisioning failures
Since approximately October 1, project work has repeatedly been interrupted by Windows sandbox/permissions problems, preventing command execution, project file access, and retrieval of generated deliverables.
Previously reported error:
failed to prepare fs sandbox:
failed to prepare windows sandbox wrapper:
sandbox provisioning failed
On October 1, the user backed up the security descriptor for the Windows .codex/.sandbox-bin directory and granted SYSTEM and Administrators Full Control on that directory only:
(Get-Acl -LiteralPath "$env:USERPROFILE\.codex\.sandbox-bin").Sddl |
Set-Content -LiteralPath "$env:USERPROFILE\sandbox-bin-permissions-backup.txt"
icacls.exe "$env:USERPROFILE\.codex\.sandbox-bin" /grant '*S-1-5-18:F' '*S-1-5-32-544:F'The command succeeded and the user reported that sandbox setup completed. The user had not knowingly changed those permissions before the failure. Subsequent conversations still encountered access problems; switching devices, restarting, and starting new contexts did not consistently restore access. The original ACL defect, what changed it, and whether every later failure involved the same permissions issue are unknown.
Environment
- ChatGPT Work, personal Plus account
- Windows runtime: Microsoft Windows NT 10.0.26200.0
- PowerShell: 7.6.5
- Local executor cwd: a user-local .codex/.chatgpt-projects project mirror
- Local config: [windows] sandbox = "elevated"
- Initial effective policy: workspace-write, restricted network, approval policy never
- Later Windows turn: workspace-write, restricted network, granular approval; sandbox approvals disabled
- Successful cloud runtime: Linux x86_64, kernel 6.18.44, glibc 2.39
- Cloud cwd: /workspace/scratch/
- Desktop app version: not captured
- A process named codex-command-runner-0.160.0 was observed; this is NOT established as the desktop app version.
- Date: October 4, 2026; times below Pacific (UTC-7)
Observed sequence
- Around 13:27, user started this context as cloud and closed the phone app.
- Shell still ran in Windows and could read local project files.
- PowerShell request to https://www.simcompanies.com/api/v4/0/resources-retail-info/ immediately failed with a socket permission error (below).
- Around 13:30, process inspection found multiple ChatGPT processes, codex, and codex-windows-sandbox-service.
- User confirmed the API command worked in normal PowerShell outside ChatGPT.
- User exited the Windows desktop client including its tray icon, observed that the Windows ChatGPT sandbox process remained running, and force-closed it. Exact PID/process name terminated was not recorded.
- Around 13:41, next turn in the existing conversation ran in Linux, without starting a new thread.
- First Python urllib request with its default User-Agent returned HTTP 403. Retry with User-Agent Mozilla/5.0 returned HTTP 200. A further request parsed valid underwear data (resource dbLetter 60).
- Around 13:43, report-preparation turn was supplied the Windows environment again, with Linux marked unavailable. No explanation of this transition was supplied.
Minimal request / error
Windows:
Invoke-WebRequest -Uri 'https://www.simcompanies.com/api/v4/0/resources-retail-info/' -TimeoutSec 25Observed exception:
System.Net.Http.HttpRequestException
An attempt was made to access a socket in a way forbidden by its access permissions. (www.simcompanies.com:443)
Inner: An attempt was made to access a socket in a way forbidden by its access permissions.
Cloud successful request:
import json, urllib.request
url = "https://www.simcompanies.com/api/v4/0/resources-retail-info/"
request = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
with urllib.request.urlopen(request, timeout=20) as response:
data = json.load(response)
print(response.status)
print(next(row for row in data if row.get("dbLetter") == 60)["saturation"])Result: HTTP 200, saturation 1.1103175249353003; latest daily record 2026-10-03.
Expected behavior
- Clearly indicate whether Cloud means cloud orchestration with local execution or execution in a cloud container.
- Offer a reliable cloud-only execution selection/disconnection mechanism.
- Exiting the desktop app should not leave a background executor eligible for new turns without a clearly communicated setting.
- A network-disabled local executor should not silently substitute for the cloud API workflow the user selected.
- Surface executor/permission transitions and explain why a previously usable cloud environment becomes unavailable.
Reproduction candidate
This is an observed single-session sequence, not a confirmed universal repro:
- Run ChatGPT desktop on Windows with the elevated sandbox.
- Start a cloud-selected Work conversation on web in a project.
- Ask for runtime details and an HTTPS API request.
- Exit the desktop app and tray icon; inspect whether a background executor remains.
- Stop the remaining executor and repeat in the same conversation.
- Observe environment selection and API behavior on subsequent turns.
Relationship between symptoms / requested investigation
The permissions/provisioning failures and network denial occurred in the Windows execution path. Moving to Linux cloud execution allowed the API request to succeed.
The October 4 network denial was consistent with effective policy disabling networking; it may be correct enforcement rather than broken Windows networking. Executor selection may have routed cloud-selected work into an unsuitable local environment. This should be distinguished from earlier provisioning failures.
Please investigate:
- Why sandbox setup required directory ACL repair and whether permissions remain stable across updates/restarts.
- Why a background executor remained after desktop app and tray exit.
- Why successive turns selected Windows, Linux, then Windows.
- Whether provisioning failures or stale executor state affect fallback and selection.
- A reliable cloud-only option and clear active-executor/network-permission visibility.
- Diagnostics to correlate sandbox setup, executor lifecycle, and session routing.
Limitations
Earlier permissions history is based on user reports and commands preserved in project conversation history, not independently reconstructed logs. Process termination coincided with Linux selection and successful API access; causality and the specific offending process are not proven. Desktop app version and complete sandbox logs were not captured. The cloud HTTP 403 resolved with a browser-style User-Agent is a separate response. No credentials, full user paths, private project contents, or sandbox secrets are included.
Related reports
- Windows Store version cannot access network: AppContainer blocks all outbound TCP #27137
- Codex IDE chat loses SSH/network access after idle/resume in same conversation #29866
Please route to the ChatGPT Work executor selection / Windows sandbox lifecycle team if this tracker is not the correct owner.
Activity
github-actions commentedon Oct 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action