Repository navigation
Codex Desktop on Windows misdiagnoses workspace permission denial as Access database lock and claims hidden UI is visible #38992
Copy link
Copy link
Open
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appbugSomething isn't workingSomething isn't workingmodel-behaviorIssues related to behaviors exhibited by the modelIssues related to behaviors exhibited by the modelsandboxIssues related to permissions or sandboxingIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Description
Environment
- Codex Desktop on Windows
- Local projectless task
- Work involved a Microsoft Access frontend stored outside the task's current writable workspace roots
- Date observed: 2026-08-17
Problem
During a long-running task, the agent repeatedly gave the user incorrect operational guidance after the desktop session restarted:
- A DAO
OpenDatabasewrite attempt failed with Access's combined “file opened exclusively or insufficient permissions” message. - No
.laccdbfile existed and no visible Access instance was open. - The actual cause was that the post-restart Codex filesystem context no longer included the external project directory as a writable root.
- The agent initially diagnosed the error as an Access lock and repeatedly asked the user to close/reopen Access.
- The agent launched
MSACCESS.EXEfrom its execution context, observed a process/window handle, and told the user the official frontend was visibly open. The user could not see it because the process was created in a different/noninteractive desktop context. - It then made the user create a blank form manually and repeat close/open steps before correctly identifying the permission boundary.
User impact
- Repeated unnecessary manual actions.
- Loss of confidence in the agent.
- Risk of leaving hidden Access processes and database locks.
- Confusing distinction between the official production file, backup copies, workspace roots, OS ACLs, and sandbox permissions.
Expected behavior
Before diagnosing a local database lock, Codex should:
- Inspect the current writable roots after a restart or context refresh.
- Distinguish OS/sandbox
UnauthorizedAccessExceptionfrom file-sharing violations. - Check for Access lock files and processes before telling the user the file is locked.
- Never claim a desktop application is visibly open based only on a process or window handle when the user and tool may be in different interactive sessions.
- Avoid repeating manual user steps when the underlying permission condition has not changed.
- Preserve the user's explicit instruction to work only on the official file and not drift into copy-based workflows.
Suggested guardrails
- Surface filesystem-root changes after restart/compaction to the agent.
- Provide a first-class permission request mechanism in the active tool list when external project paths are in scope.
- Warn when GUI processes launched by tools cannot appear in the user's desktop session.
- Encourage an explicit read/write probe that reports permission denial separately from application-level lock errors before remediation guidance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
appIssues related to the Codex desktop appIssues related to the Codex desktop appbugSomething isn't workingSomething isn't workingmodel-behaviorIssues related to behaviors exhibited by the modelIssues related to behaviors exhibited by the modelsandboxIssues related to permissions or sandboxingIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systemsIssues related to Codex on Windows systems
Activity