Repository navigation
Description
What version of the Codex App are you using?
26.721.41059 (build 5848)
What platform is your computer?
macOS 26.2, arm64
What issue are you seeing?
A folder added through the Codex Desktop UI as a secondary folder for an existing task is displayed as attached in the app, but it is not propagated to the task's effective sandbox context.
The secondary folder is absent from both:
environment_context.filesystem.workspace_roots- writable entries in
permission_profile.file_system
The agent can inspect/read the sibling worktree, but writes fail with Operation not permitted and require out-of-sandbox approval. This produces repeated permission prompts even though the folder was already added through the app UI for that task.
Sanitized example of the injected context:
cwd: /path/project.worktrees/PRIMARY
workspace_roots:
- /path/project.worktrees/PRIMARY
# /path/project.worktrees/SECONDARY is missing
permission_profile:
file_system:
entries:
- access: write
path: /path/project.worktrees/PRIMARY
# no entry for SECONDARYA write into the secondary worktree then fails:
cp: /path/project.worktrees/SECONDARY/...: Operation not permitted
This appears to be a synchronization bug between the secondary-folder state shown by the Desktop UI and the permission/workspace state injected into an already-running task.
What steps can reproduce the bug?
- Open an existing Codex Desktop task whose primary folder is a Git repository or worktree.
- Create or select a sibling Git worktree outside the primary folder.
- Add that sibling worktree to the task using the Desktop app's secondary-folder UI.
- Confirm that the app shows the secondary folder as attached.
- Continue the same task and ask Codex to create or copy a file inside the secondary worktree.
- Observe an approval prompt or an
Operation not permittedfailure. - Inspect the next turn's
environment_context. - Observe that the secondary folder is absent from
workspace_rootsand from the writable permission entries.
The problem persists across subsequent turns in the same task.
What is the expected behavior?
Once a secondary folder is attached to a task with write access:
- it should be included in the task's
workspace_roots; - it should receive the corresponding writable permission entry;
- ordinary writes inside it should not require repeated escalation;
- the effective permissions should update in the existing task without requiring the task to be recreated.
If secondary folders are intentionally read-only, they should still appear in the injected roots/permission context and the UI should clearly communicate that limitation.
Additional information
Related but distinct reports:
- Agent mode requests unnecessary approval for edits inside secondary workspace folders #6542 covered secondary folders in a VS Code multi-root workspace and was closed when multi-root was not supported.
- Support multiple workspace folders in the Codex app #27943 requests multiple workspace folders in the Desktop app. In this Codex App version, the UI already exposes a secondary-folder control; this report concerns the control not updating the effective sandbox permissions.
- Codex Desktop model switch downgrades project task to read-only, prompting for every workspace write #33322 describes an existing task losing write permissions after a model switch. This report does not involve a model switch: only adding a secondary folder to the current task.
Activity
nehal-spense commentedon Oct 21, 2026
Additional diagnostic evidence from a macOS desktop session on October 21, 2026:
This supports investigating propagation of attached folders into session permissions. The four-folder attachment UI has not been independently verified by this diagnostic. No source files or permission configuration were changed. Exact app version and macOS version have not been collected. Private project names, repository names, and local paths are omitted.
igorzep commentedon Oct 23, 2026
Common, OpenAI!!! Working with multiple project/folders is a natural and absolutely every-day job of any real developer! It is impossible to use Codex and it is worse and worse with every new update! Make multiple folders working!
scruffydan commentedon Oct 27, 2026
I have the same issue since updating to Version 26.1021.31345
Sand-282 commentedon Oct 29, 2026
come on!! get this fixed!
braincircuits commentedon Nov 1, 2026
Additional reproduction from macOS Apple Silicon, tested on November 1, 2026 (Asia/Shanghai).
Current desktop version: 26.1027.51404, build 23880, read from the installed application's Info.plist (bundle ID
com.openai.codex). The affected diagnostic conversation is running in the application's Work mode; this distinction may matter when comparing settings with the Codex configuration surface.The project attachment UI shows both a primary repository and a secondary folder. However, the effective session environment lists only the primary repository in
workspace_rootsand grants repository write access only to that primary path.Actual filesystem probes, with private paths replaced by labels:
PermissionError: [Errno 1] Operation not permittedPermissionError: [Errno 1] Operation not permittedThe successful temporary files were removed. No project source files or permission configuration were modified by the diagnostic probes.
The same behavior was observed while using version 26.1021.31345 (21828), after rolling back to 26.1016.62342 (21477), and again with 26.1027.51404 (23880). These tests reused the same existing conversation; they do not establish fresh-session reproduction for every version or identify the version that introduced the problem.
Settings screenshots showed Work mode local file access set to workspace write, and later the Codex sandbox setting set to full access and the general full-access permission enabled. The existing Work session still had the restricted effective roots and the same secondary-folder failure. This does not establish that settings failed to save; which settings apply to this surface, and whether existing sessions refresh their permissions, remain unresolved.
Could you investigate propagation of attached project folders into the effective session permission profile, and clarify when permission changes apply to existing Work/Codex conversations?
Local usernames, full paths, and unrelated logs have been omitted.