Repository navigation
Description
Summary
In Codex Desktop on Windows, a turn-scoped write permission request for the exact path F:\动漫\个人AI-Agent平台 returned an approved permission result. A subsequent PowerShell command failed when it attempted to create that previously nonexistent directory, returning Access to the path ... is denied.
The root cause is unknown. Existing records do not establish whether the grant was saved, read by the same execution environment, or included in the failed command's final filesystem policy. This report does not assume the failure was caused by Codex's sandbox, Windows ACLs, or any particular layer.
Environment
- Entry: Codex Desktop, with
functions.execinvokingtools.request_permissionsandtools.exec_command - Runtime version reported by the environment:
0.165.0-alpha.1.2; the installed Desktop build has not been independently confirmed - Shell: bundled PowerShell, version
7.6.5 - Initial execution context reported in the turn:
workspace-write - Target:
F:\动漫\个人AI-Agent平台(the directory did not exist before the attempted operation)
Expected behavior
If this entry point supports an exact-path, turn-scoped write grant for a directory that does not yet exist, the grant is applied to the actual execution environment, and Windows/system permissions otherwise allow creation, the directory should be created. Otherwise, the interface should clearly report the unsupported case or provide the actual denial reason.
Actual behavior
The permission request did not explicitly specify environment_id. The recorded response was:
{"permissions":{"network":null,"file_system":{"write":["F:\\动漫\\个人AI-Agent平台"]}},"scope":"turn"}The subsequent command failed during the create-directories stage while creating the target root. The recorded error was:
Access to the path 'F:\动漫\个人AI-Agent平台' is denied.
The recorded command result reports zero created directories and zero created files. The complete original command arguments are truncated in the available archive, so this report does not reconstruct the missing command.
Questions for the maintainers
- Does this Windows Desktop entry point officially support an exact-path, turn-scoped write grant for creating a directory that does not yet exist, without granting write access to its parent directory?
- How is the grant associated with an execution environment, stored, expired, and made available to subsequent commands?
- When the model-visible
exec_commandinterface does not exposewith_additional_permissionsandadditional_permissions, can a default command still reuse an existing approved grant? - What is the smallest supported remediation for this version and entry point?
- Is there a read-only diagnostic path that can show whether the grant reached a specific command's final policy, without relying on test writes, empty commands, or repeated probes?
- If a host configuration or interface change is required, please specify the exact change, affected versions and scope, whether a new session is required, rollback steps, and acceptance criteria.
If available, please correlate these records and provide only the minimum diagnostic evidence needed:
- Grant side: resolved execution environment, stored permission scope, status, and validity period.
- Command side: resolved execution environment, grant read by the command, merged effective permissions, and pre-approved status.
- Execution side: associated process or sandbox instance, final filesystem policy, denial stage, and original error code or reason.
Please distinguish confirmed product support from public implementation details and unknowns. If the historical records cannot provide these fields, please identify the minimum additional diagnostic capability required.
Correlation identifiers
- Session:
01a18612-db9f-7c23-bf3e-9d928b5f44ff - Turn:
01a187c5-d79f-7ad0-abb3-869af95c075a - Grant outer call:
call_6ec9e2086ba948f98817d61564a3677e - Grant request timestamp (UTC):
2026-10-29T13:07:54.672Z - Grant response timestamp (UTC):
2026-10-29T13:07:58.846Z - Failed command:
exec-63e724b5-d86c-4ae9-be92-925fa7f29c9d - Failed command outer call:
call_a952b5372e5943318c7ae276f33595f9 - Failure record timestamp (UTC):
2026-10-29T13:15:00.036Z - Recorded command process field:
process_id="80925"(its relationship to an OS PID or sandbox instance is not confirmed)
Related reports (possibly related; common root cause unconfirmed)
- #56663 — permission-tier fallback behavior
- #57645 — MXC startup failure after authorization
- #53174 — native directory access failure inside a sandbox
These are listed only as potentially related reports. No common root cause has been established.
Current impact and safety boundaries
The intended work remains blocked. No candidate files were copied, and the failed attempt reported zero created files and directories. No ACLs, global configuration, or system permissions were changed; no administrator elevation or parent-directory write grant was used. The project remains paused pending clarification of the supported permission flow.
No credentials, tokens, or secret values are included in this report.
Activity
test(windows-sandbox): make openai#58433 tests exercise what they claim
fix(windows-sandbox): path identity, log and junction coverage (H2-H4)
denelon commentedon Nov 5, 2026
A Microsoft MXC issue may be relevant if the approved write grant reached the command’s final ProcessContainer filesystem policy:
The MXC issue demonstrates that an exact write grant for a nonexistent object can be omitted before BFS registration, and its maintainer discussion states that a Windows update is expected to support grants on nonexistent files and directories when the parent already exists. This Codex report does not establish which sandbox backend was used, whether the approved grant reached the failed command’s effective policy, or whether another permission layer caused the denial. The link therefore identifies a potentially relevant MXC limitation without asserting that it caused this incident.
Drafted with GitHub Copilot assistance.