Work/Codex stream repeatedly disconnects when the selected Windows workspace is OneDrive-backed and OneDrive is degraded
What issue are you seeing?
In the ChatGPT Work / Codex surface on Windows, requests repeatedly fail with:
stream disconnected before completion: An error occurred while processing your request.
Two request IDs were generated during the same failure pattern:
a394f90f-44e4-4450-b79d-6ef1eec533fd13b73af7-c989-43fb-9b47-0837a7605e58
At the same time, the Windows workspace being used is OneDrive-backed, and the OneDrive client is in a degraded state because it reports that the Microsoft 365 subscription payment could not be processed.
The practical result is that Codex cannot complete work in the selected workspace. This is especially serious when the user believes the project is local, but Windows has resolved the folder through OneDrive.
The current evidence establishes a strong correlation between:
- a OneDrive-backed or redirected local workspace,
- a degraded OneDrive state,
- and repeated Codex stream disconnections.
It does not yet prove which layer is the root cause. The failure could originate from workspace resolution, file availability, sync-provider behavior, backend request handling, or the interaction among them.
Environment
- Product surface: ChatGPT Work / Codex
- Platform: Windows desktop browser
- Model shown: GPT-5.6 Sol
- Workspace type: intended as local, but Windows/OneDrive appears to back or redirect the selected location
- OneDrive state: degraded; Microsoft 365 subscription payment error visible
- Date observed: 2026-07-26
What steps can reproduce the bug?
Primary reproduction
- On Windows, use a folder that appears local in Explorer but is actually under a OneDrive-managed or OneDrive-redirected location, such as Desktop, Documents, or another Known Folder.
- Put a Codex project or working files in that folder.
- Put OneDrive into a degraded state, for example:
- account or subscription problem,
- sync paused or unavailable,
- files not fully hydrated,
- provider unable to complete access.
- Open the folder in ChatGPT Work / Codex.
- Ask Codex to inspect, edit, build, or otherwise operate on the project.
- Observe whether the request enters reconnect attempts and then fails with:
stream disconnected before completion: An error occurred while processing your request.
- Retry the same request.
- Observe whether a new request ID is generated while the same workspace remains unusable.
Isolation matrix
Run the same project under these conditions:
| Test | Workspace location | OneDrive state | Expected result |
|---|---|---|---|
| A | Folder outside OneDrive, e.g. C:\CodexTest | Degraded | Codex should still work |
| B | OneDrive-backed folder, files fully local | Healthy | Codex should work |
| C | OneDrive-backed folder, files fully local | Degraded | Codex should either work locally or show a provider-specific error |
| D | OneDrive-backed folder, Files On-Demand placeholders | Healthy | Codex should hydrate or clearly report unavailable files |
| E | OneDrive-backed folder, Files On-Demand placeholders | Degraded | Codex should fail fast with a clear workspace/provider error, not a generic stream disconnect |
Additional controls
- Copy the same repository to
C:\CodexTestand repeat. - Disable OneDrive Known Folder Backup, then repeat.
- Mark the entire project
Always keep on this device, then repeat. - Disconnect OneDrive after ensuring all files are physically local, then repeat.
- Compare browser and desktop Work surfaces if both are available.
What is the expected behavior?
Codex should not become unusable merely because the selected folder is backed by OneDrive.
At minimum:
- If every required file is physically present, Codex should operate from the local filesystem without depending on OneDrive service health.
- If the workspace contains cloud-only placeholders or cannot be read, Codex should fail before starting the task and identify the actual cause.
- The UI should clearly state whether the selected workspace resolves to:
- local filesystem,
- OneDrive,
- SharePoint,
- or another sync provider.
- A storage-provider failure should not be surfaced only as a generic
stream disconnected before completionerror. - Retrying should not produce repeated opaque request IDs without actionable diagnostics.
Actual behavior
- The request repeatedly enters a reconnect state.
- The stream disconnects before completion.
- The user receives only a generic processing error and a request ID.
- The workspace cannot be used productively in Codex.
- The UI does not identify whether OneDrive workspace access caused the failure.
Proposed mitigation
1. Resolve and display workspace provenance
Before a task begins, resolve and show the actual workspace source:
Workspace: Local filesystem
Resolved path: C:\CodexTest\project
or:
Workspace: OneDrive-backed local folder
Resolved path: C:\Users\<user>\OneDrive\Documents\project
Hydration state: Fully local / Placeholder / Unavailable
2. Add a preflight workspace check
Before opening a Codex task:
- enumerate required paths,
- detect reparse points / cloud file attributes,
- verify read and write access,
- detect offline placeholders,
- test creation and deletion of a temporary file,
- and report the exact failing path.
3. Decouple local execution from sync-provider health
When files are fully hydrated and writable, local Codex operations should use the local filesystem directly and should not require successful OneDrive sync or an active Microsoft 365 subscription state.
4. Fail fast with a provider-specific error
Instead of:
stream disconnected before completion
show something like:
The selected workspace is OneDrive-backed and one or more required files are unavailable locally. Move the project to a local folder or mark it "Always keep on this device".
5. Preserve diagnostics across reconnects
Attach to each request ID:
- resolved workspace path,
- provider type,
- file hydration state,
- first inaccessible path,
- filesystem error code,
- reconnect count,
- and whether failure occurred before or after the model stream began.
6. Add a local-only workspace option
Provide an explicit mode that rejects cloud-backed or redirected paths and accepts only verified local folders.
Why this matters
On Windows, Desktop and Documents are frequently redirected into OneDrive without the user treating them as cloud workspaces. If Codex silently depends on OneDrive availability, a billing, sync, account, or hydration problem can disable the entire coding workflow.
That blocks:
- local repository work,
- builds and tests,
- evidence-processing pipelines,
- large local datasets,
- and any workflow where cloud storage is intentionally not part of the trust boundary.
The user should not have to discover through a generic stream failure that a supposedly local workspace was operationally dependent on OneDrive.
Evidence captured
Screenshots show:
- OneDrive reporting a Microsoft 365 subscription-payment failure while files remain under OneDrive management.
- ChatGPT Work / Codex repeatedly reconnecting and then failing with the two request IDs listed above.
Scope and uncertainty
This report does not claim that OneDrive billing status itself directly causes the model stream to disconnect. It reports a reproducible failure class to test: Codex becomes unusable when a selected Windows workspace is OneDrive-backed and the sync provider is degraded, while the product surfaces only a generic stream error.
36 Comments
Update: I found a practical migration workaround in the Codex project UI.
C:\CodexProjects\ideasImportant UI behavior: adding the local folder does not automatically replace the old OneDrive location. Both locations can remain associated with the same project, and Codex may continue retaining or selecting the OneDrive-backed location. Existing tasks also preserve their original OneDrive-backed working directory.
Therefore, this is only a manual workaround—not a root-cause fix. As long as Codex silently retains or prioritizes a OneDrive-backed path, users can be routed back into the same failure condition even after creating a valid local copy.
A product-level fix should:
This establishes a concrete workaround and exposes an underlying project-routing/design problem. It does not by itself prove that OneDrive caused every stream disconnection, but the workaround will remain fragile until the path-selection behavior is corrected.
Why I consider this a critical agent-boundary issue
This should not be treated only as a OneDrive compatibility or connectivity bug. The deeper issue is that the product may allow an agent to operate beyond the filesystem boundary the user believes they explicitly selected.
There is an important distinction from the recent Hugging Face security incident described by OpenAI:
The blast radius is different, but the underlying safety class is related: the system has not reliably defined and enforced the boundary within which the agent is authorized to act.
If a user explicitly selects a local folder, that selection should be a hard authorization boundary. A stale, redirected, or previously registered OneDrive path must not remain eligible for automatic selection without explicit confirmation. Otherwise the agent can read from, write to, or operationally depend on a storage location that the user did not intend to place in scope.
For that reason, I believe this deserves critical-priority product and security triage rather than being classified solely as a generic stream-disconnection bug. If unintended reads or writes outside the explicitly selected workspace can be reproduced, it should also be evaluated under the applicable vulnerability or bug-bounty criteria.
The contribution in this report now includes reproduction evidence, isolation of the OneDrive dependency, a verified workaround, identification of the project-routing behavior, and concrete design requirements for remediation. I believe that is comparable to bounty-quality research and should be considered for researcher recognition or compensation, such as a bounty or Pro credit.
Two potentially relevant reports may help separate the shared symptom from the underlying state-management issue:
These reports are referenced for comparison only; I am not asserting a common root cause.
Potentially related reports: #34341 and #34457 document new chats inheriting a stale selected-project, causing the effective cwd and writable root to point to an older workspace rather than the workspace currently shown in VS Code.
These reports strengthen the stale workspace-binding aspect of this issue. However, they do not establish that OneDrive degradation or the repeated stream disconnections reported here share the same root cause. I am linking them as related evidence rather than claiming causal identity.
Additional related evidence observed:
apply_patchas being outside the project. This appears relevant to the broader discrepancy between configured workspace state and effective runtime authorization described here.I am not claiming that these reports share the same root cause, that they are formal duplicates, or that OneDrive is involved in either case. I am linking them because they independently document discrepancies among persisted configuration, user-visible context, and effective runtime behavior.
Matched cross-platform validation would help determine whether the persisted workspace-state behavior documented here is Windows-specific or shared by the desktop architecture.
I do not currently have access to a dedicated macOS test environment. If OpenAI can reproduce the controlled protocol internally on a vendor-controlled macOS environment, or provide temporary access to an equivalent test environment, I can supply the exact steps and evidence schema for comparison.
Additional independent reports strengthen the background-activity branch of this issue cluster:
Together, these reports show that Git-related background activity can continue beyond the user-visible foreground operation under different task and workspace conditions. Only #35775 directly supports continued activity involving historical task directories.
Neither report proves OneDrive access, an unintended effective cwd, or a shared root cause with this issue. No maintainer confirmation, formal duplicate determination, or linked fix PR has been identified.
Further framing based on continuing independent reports:
Recent issues do not support treating every
stream disconnectedor unusable-workspace incident as one defect.EPIPE, and full Desktop termination. It contains no OneDrive, stale-cwd, or workspace-root evidence.This divergence suggests a narrower observability hypothesis: generic surface states such as
stream disconnected before completion, reconnect loops, or an unresponsive task may function as catch-all abstractions that conceal materially different underlying failures.In this issue, the generic disconnect symptom coincided with a OneDrive-backed workspace association that survived restart and required explicit folder rebinding, removal of the old association, and a fresh task to restore future-task routing. Existing tasks retained their original cwd.
I am not claiming intentional concealment, product-wide causation, formal duplicate status, or a shared root cause with #35782 or #35803. The testable requirement is that diagnostics distinguish transport failure, app-server recovery failure, command-dispatch failure, workspace-root selection, permission-state mismatch, and cloud-provider availability, while recording the effective cwd and workspace roots at the time of failure.
For triage, the security relevance of this issue should be evaluated on the retained effective workspace state and authorization/provenance mismatch after visible source-folder removal—not on the generic disconnect string alone.
Three additional comparison cases are relevant to the observability boundary in this issue, without establishing a shared workspace or OneDrive root cause:
openai/codex#35613provides a reduced reproduction in which Code Mode reportsScript completedwhile nested exec processes remain live and their model-visible control handles have been discarded.openai/codex-security#37provides a deterministic injected-event reproduction in which certain unexpectedturn.failedpayload shapes fall through to CLI exit code0andcomplete-scan. Whether those payload shapes are reachable in a normal production scan remains unconfirmed.openai/codex#35810reports the opposite-direction discrepancy: across ten tool-enabled App Server runs, the final assistant output and a valid task artifact were produced, butturn/completedwas never emitted and the client waited until timeout.These reports do not show that the OneDrive-backed workspace retention, stale effective cwd, or stream disconnections described here share their root cause. Their relevance is narrower: visible completion, protocol completion, generated artifacts, and effective runtime state can diverge, so diagnostics for this issue should record the effective cwd, workspace roots, authorization state, process state, raw tool error, and transport state together rather than relying on a generic surface status.
Two opposite-direction corroboration reports strengthen the workspace-binding portion of this issue:
workspace_rootsand writable permission entries. Writes to that folder fail withOperation not permitted, and the mismatch persists across subsequent turns.These reports show the opposite-direction failure: newly configured roots may fail to propagate into an existing task's effective authorization state. This complements the stale/detached-root retention observed here, but does not establish a shared root cause, formal duplicate status, or OneDrive involvement.
Three prior cross-environment reports provide additional direct workspace-binding evidence:
active-workspace-rootsat a Windows local project andactive-remote-project-idat another remote project; repair required fully quitting Desktop before clearing the stale selectors.shell=powershelland an invalid Windowscwd; removing the generated invalid project entry did not persist because Desktop recreated it on the next thread launch.These reports extend the observable workspace-binding mismatch across local, Cloud, SSH, Windows, and WSL contexts. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
Three additional reports provide direct comparison evidence for workspace-root authorization propagation:
workspace-write(and a persisted job record containing"write": true) while the effective session reports a read-only sandbox and rejects writes inside the selected repository. This is an opposite-direction configured-write versus effective-read-only mismatch.These are authorization-propagation comparisons, not evidence of stale-root persistence in each case. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
Official architecture description relevant to runtime workspace and authorization binding
OpenAI’s 29 July engineering post provides an official architectural description relevant to this issue:
https://openai.com/index/gpt-5-6-frontier-intelligence-efficiency/
The post describes the shared Codex and ChatGPT Work agentic harness as:
It also states that tasks may involve repeated model requests and tool calls, that environment updates are added to model-visible history, and that runtime settings such as approval policies are applied during execution rather than being embedded in tool definitions.
This does not prove that the shared harness caused the stale-root behavior in this issue, nor does it establish a shared root cause with the related reports cited above.
It does, however, clarify the relevant architectural responsibility: the effective workspace root, writable-root set, approval state, tool execution context, and user-visible project state must be correctly bound and reconciled by the runtime orchestration layer.
In this issue, the saved-project configuration was changed and the old source folder was removed, while an existing task retained its original detached cwd. Related reports document both stale-root retention and the opposite-direction failure in which newly configured roots do not propagate into an existing task’s effective authorization state.
The official architecture description therefore strengthens the need to identify and test:
cwdandworkspace_roots;Because runtime authorization is applied during execution, the project state displayed in the UI cannot by itself establish which filesystem boundary was actually enforced for a task.
This source strengthens the architectural relevance of the workspace-binding and authorization-propagation mismatch. It should not be treated as proof of a specific implementation-level root cause.
Two new Windows reports add direct workspace/root comparison evidence:
C:\Users\<user>\Documents\Codex\...even though the Windows Documents Known Folder was verified asD:\Users\<user>\Documentsand the C: location was only a junction. Later in the same task, the environment exposed the D: path directly. This is a same-task canonical-path and workspace-root inconsistency under verified Known Folder redirection; the report explicitly states that OneDrive is not involved.workspace-write, while normal sandboxed reads andapply_patchfail during deny-read ACL setup. Equivalent operations succeed with escalation, and the failure persists after moving the repository, adding the new directory as the project folder, fully exiting, and restarting Desktop. This is opposite-direction configured-write versus effective sandbox-denial evidence with rebind and restart controls.These reports strengthen the observable workspace-path and authorization-propagation boundary. They do not establish a shared root cause or formal duplicate status; only #36105 expressly rules out OneDrive for its own reproduction.
Two realtime-voice reports add a cross-platform same-condition comparison for project-to-task workspace propagation:
projectId = nulland generatedDocuments\Codex\...\realtime-voice-chatworking directories instead of the repository. The tasks consequently lacked the project'sAGENTS.mdand repository files.Together, these reports show the user-visible active project failing to propagate into a newly created task's effective workspace association across two desktop platforms. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement; the automated potential-duplicate suggestion on #36195 is not maintainer confirmation.
@hiroki-tamba-research check my fix @ https://github.com/PerikiyoXD/codex/commit/381acb1
Thanks, but I am the reporter of this issue, not an OpenAI maintainer or patch reviewer.
I am focused solely on documenting and reproducing the critical workspace-routing and disconnection behavior reported here. I do not review, run, or validate commits from third-party forks.
If you believe you have a fix, please open a focused PR against openai/codex with a reproduction, tests, and a clear explanation of how it addresses #35420, and request review from the maintainers. Please do not tag me for reviews of external patches.
Ok LLM.
A newly added controlled reproduction in #28094 documents existing-task host/cwd rebinding across an Agent Environment change.
On Codex Desktop
26.721.11231.0, a task created while the Agent Environment was set to WSL retained the same task/session ID and initially reported a cwd under:/home/<wsl-user>/<project>After the global Agent Environment was switched to Windows, reopening or continuing that existing task produced a later-turn cwd under:
C:\home\<wsl-user>\<project>The Windows backend then rejected that translated path as invalid.
This is relevant to the task-lifecycle workspace-binding boundary described in this issue: conversation identity persisted while the effective execution host and path semantics changed. It does not establish a shared root cause, formal duplicate status, or any connection to OneDrive.
Two reports add direct evidence that task identity, project membership, cwd, and destination host can diverge during lifecycle transitions:
26.721.11231.0. After a project was moved across drives and re-added, 12 active tasks remained readable and their cwd values matched the new root, but they returnedprojectId: null, lackedthread-project-assignments, and did not appear under the saved project. Desktop and iOS Remote showed different project membership, while persisted saved-workspace roots still included the obsolete path.hostId: localand a Windows output directory, while retrying with the saved remote project completed on the expected SSH host. The wrong-host task was stopped before mutation.Together, these reports show project/cwd migration and project/host routing diverging in different directions. They are relevant to the task-lifecycle workspace-binding boundary described here, but do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
One additional Windows report adds direct task-lifecycle evidence relevant to project-root reconciliation:
.codex\.chatgpt-projects\g-p-*project mirror as its cwd while a later project synchronization attempts to replace that same root and fails withEBUSY/resource busy or locked. Existing project-backed tasks continue to work, a restart may temporarily allow one new task, and subsequent project-scoped task creation can fail again. A current 2026-08-01 reproduction reports the failure still present in the latest Windows Desktop update, while an equivalent web-created Work task succeeds and then synchronizes back to Desktop.This is relevant because it shows an existing task's retained cwd affecting later project-root reconciliation and new-task creation. It does not establish a shared root cause, formal duplicate status, or OneDrive involvement.
Two new reports add direct evidence that user-selected execution scope and effective runtime state can diverge in both directions:
codex -C /path/to/repository-b apply <task-id>drops the parsed root--cdvalue, falls back to the process current directory, and can successfully patch repository A while repository B—the explicitly selected target—remains unchanged.turn_contextrecords silently change fromdanger-full-access/approval_policy: nevertoworkspace-write/on-request. Some reverted turns expose only the thread visualization directory inwritable_roots, so repository writes require escalation despite no visible user change.These reports strengthen the distinction between requested or displayed scope and the effective cwd/writable-root authorization used at execution time. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
One newly added macOS report provides direct cross-project writable-root propagation evidence:
workspace_rootsafter a separate Project B task had been active. Project B also appeared as an explicit writable entry in the managed filesystem permission profile, and the incorrect root persisted in the task's per-threadthread-writable-rootsstate. Restarting or creating replacement tasks can produce a clean successor, but does not repair the contaminated writable-root list of the existing task.This is direct evidence that an unrelated project's root can enter and remain in an existing task's effective filesystem authorization despite the saved single-folder project assignment remaining unchanged. It does not establish a shared root cause, formal duplicate status, or OneDrive involvement.
One current Windows report adds direct advertised-root versus effective-authorization evidence:
26.727.6591.0reproduction where<special>:slash_tmpis advertised as a writable root mapped toC:\tmp. Sandbox setup reports three write roots witherrors=[], butC:\tmpretains an older synthetic restricted-SID ACE rather than the SID present in the current command token, so a bounded file create fails with Access denied. Adding only the current token's corresponding restricted SID makes the same create/delete probe succeed.This demonstrates that a configured writable root and a successful setup status do not necessarily establish effective token-to-root writability. It does not establish a shared root cause, formal duplicate status, or OneDrive involvement.
One additional macOS report provides opposite-direction project-binding evidence:
This is a loss-of-association case rather than retention of an old root, and no reliable intentional reproduction is currently documented. It is relevant as an opposite-direction persistence and recovery comparison, but does not establish a shared root cause, formal duplicate status, or OneDrive involvement.
Two newly filed reports add direct workspace-state comparisons:
/mnt/d/...cwd andbash.Get-Locationfalls back toC:\, causing relative commands to use the wrong directory. The provided control says the mismatch does not occur for a normal local folder, and the affected Dropbox directory is a reparse point.The first report strengthens the persisted old-environment binding and failed-rebind pattern. The second is an independent cloud-backed/reparse-point cwd divergence, not evidence that Dropbox and OneDrive fail identically. These reports do not establish a shared root cause, formal duplicate status, or OneDrive involvement in either case unless explicitly stated above.
One newly filed Windows migration report adds direct project-mapping persistence and recovery evidence:
cwdvalues intact instate_5.sqlite, whilelocal-projectsand/orthread-project-assignmentswere absent or incomplete. Historical conversations appeared individually in Recents, and reopening the same project folders did not reattach them. Reconstructing the missing project definitions and assignments from the surviving thread-to-cwdrecords restored the project organization and persisted across restart, provided all desktop processes were stopped before replacing the state so stale in-memory state could not overwrite the repair.The report covers a mixture of ordinary Windows, OneDrive-backed, and WSL/UNC roots, so it is direct evidence of association loss during migration rather than evidence that any one provider is required. It does not establish a shared root cause with this issue, formal duplicate status, or OneDrive involvement beyond the explicitly reported affected-path mixture.
One independent Windows report adds same-condition corroboration for projectless-workspace path resolution:
26.727.51351creating projectless-chat workspace, work, and output directories under the physical%USERPROFILE%\Documents\Codexpath even though Windowsshell:Personalopens the user's redirected Documents Known Folder. The reporter states that this places those artifacts outside the expected redirected backup/synchronization location and notes that existing chats retain absolute workspace paths in local state.This independently reinforces #36105's observed Known Folder mismatch on a different app build, while adding a physical artifact-location and migration consequence. It does not establish a shared root cause, formal duplicate status, or that OneDrive is required for every redirected-Documents reproduction.
Regarding the original issue "when the selected Windows workspace is OneDrive-backed and OneDrive is degraded". I believe Microsoft has been slowly changing the behavior of Windows and Apps to refer to the OneDrive copy as primary.
Apparently, because if user has references to local documents he cannot work seamlessly from another device if apps or documents reference Users\username\OneDrive\Documents that don't exist on that device. So, they want apps to reference https://d.docs.live.net/5B64BBA6F58C1D08/Documents/etc/myfile.docx which would work from any computer.
In essence, the file is on OneDrive and it is the local drive that is the backup. I don't know if you have found a workaround or the OneDrive still is degraded (or subscription unpaid), but if you temporarily set OneDrive to Stop Syncing or just disable OneDrive client it would just work locally while you get OneDrive back.
Thanks, but this does not address the issue reported here.
The unresolved point is not whether OneDrive can be disabled or whether Windows increasingly treats the OneDrive copy as primary. I already documented a working manual migration procedure:
Restarting Codex Desktop did not clear the old association. Existing tasks continued to retain their original OneDrive-backed cwd after the saved project had been rebound to the local folder. Disabling OneDrive may change file availability, but it does not update Codex’s persisted project/task mapping, migrate existing tasks, or revoke their retained workspace authority.
The issue is therefore the divergence between:
Using a d.docs.live.net path would also move in the opposite direction from the local-only trust boundary being requested here.
The practical workaround has already been found. The remaining product issue is that Codex silently preserves a detached root without clearly displaying it, requiring reauthorization, or providing a supported migration mechanism.
________________________________
差出人: Ivan Torres @.*>
送信日時: 2026年8月4日 1:20
宛先: openai/codex @.*>
CC: Hiroki Tamba @.>; Mention @.>
件名: Re: [openai/codex] Work/Codex stream repeatedly disconnects when the selected Windows workspace is OneDrive-backed and OneDrive is degraded (Issue #35420)
[https://avatars.githubusercontent.com/u/28674917?s=20&v=4]itorres008 left a comment (openai/codex#35420)<https://github.com/openai/codex/issues/35420#issuecomment-5168955139>
Regarding the original issue "when the selected Windows workspace is OneDrive-backed and OneDrive is degraded". I believe Microsoft has been slowly changing the behavior of Windows and Apps to refer to the OneDrive copy as primary.
Apparently, because if user has references to local documents he cannot work seamlessly from another device if apps or documents reference Users\username\OneDrive\Documents that don't exist on that device. So, they want apps to reference https://d.docs.live.net/5B64BBA6F58C1D08/Documents/etc/myfile.docx which would work from any computer.
In essence, the file is on OneDrive and it is the local drive that is the backup. I don't know if you have found a workaround or the OneDrive still is degraded (or subscription unpaid), but if you temporarily set OneDrive to Stop Syncing or just disable OneDrive client it would just work locally while you get OneDrive back.
—
Reply to this email directly, view it on GitHub<https://github.com/openai/codex/issues/35420?email_source=notifications&email_token=CCIQGAISMTLLQ3NTPTP7N635IC3VXA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWHA4TKNJRGM42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5168955139>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/CCIQGAMVRBT34BADAFVNVO35IC3VXAVCNFSNUABFKJSXA33TNF2G64TZHM4TMNJUGE2TMNBZHNEXG43VMU5TIOJXHA3TCMBYGU3KC5QC>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/CCIQGAOUEZYPDDYSRGV6QML5IC3VXA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWHA4TKNJRGM42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android<https://github.com/notifications/mobile/android/CCIQGAPOEV53XXR3L3VMHXL5IC3VXA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWHA4TKNJRGM42M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today!
You are receiving this because you were mentioned.Message ID: @.***>
One additional independent report adds a direct task-permission persistence comparison:
This is adjacent exact-path serialization and task-snapshot evidence, not evidence that OneDrive or Windows Known Folder routing is involved. It does not establish a shared root cause or formal duplicate status.
Three independent reports add direct workspace/project-state comparisons:
/home/...form into Windows UNC forms. Git works for the same project inside WSL, while Desktop logs report Windows-side Git/worktree failures. The reported repair only persists when Desktop is fully quit so in-memory state cannot overwrite the normalized configuration.projectId: nulleven though its directthread-project-assignmentsentry, project runtime kind,cwd, and configured roots are correct. A new control task is listed correctly, and a full quit/restart reconciles the stale task-list projection.These reports independently strengthen the state-synchronization and recovery comparisons. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
One additional high-signal report adds a direct project-migration binding failure path:
thread.cwdand workspaceapplied.cwdremained on Project A, whilethread-project-assignmentsand workspacepending.cwdpointed to Project B withpendingCoreUpdate: true.This is a migration/rollback-drift and persistence control comparison for workspace-state coherence. It does not establish a shared root cause, formal duplicate status, or OneDrive involvement unless those are explicitly established in the cited report.
Three independent reports add direct project-association lifecycle comparisons:
These reports independently strengthen the project-association, cwd, and persisted-state synchronization comparisons. They do not establish a shared root cause, formal duplicate status, or OneDrive involvement.
New direct recurrence: OneDrive-excluded work was rebound to a OneDrive-backed root
On 12 August 2026, Codex Desktop again presented and used a OneDrive-backed root for the project named
Github, even though OneDrive had been explicitly excluded from the authorized scope of the controlled work.The current observable state is:
C:\Users\<user>\OneDrive\Documents\ChatGPT\Github;This is inconsistent with the controlled setup documented in #34179, comment 5240369823. That reproduction deliberately used isolated disposable trusted Git worktrees, an explicit
--cd <DISPOSABLE_TRUSTED_WORKTREE>, and controls that separated the Windows sandbox/helper failure from OneDrive, Git, project trust, and ordinary host write permission.The issue here is therefore not that a user knowingly opened a project stored in OneDrive. The issue is that Codex selected or retained a OneDrive-backed project/root after the user had defined OneDrive as outside the workspace boundary for this work. This is a fresh instance of the routing/provenance problem described earlier in this issue.
This observation establishes project/root rebinding and execution from the OneDrive-backed cwd. It does not by itself establish unintended file reads or writes, data exfiltration, or that the sandbox failure in #34179 was caused by OneDrive.
Please determine from internal project, task, and thread state:
A local-only or excluded-root policy needs to be enforced as an authorization constraint, not treated as a preference that stale project state can override.
Stronger local-state evidence: this is not limited to an old task retaining its cwd
A read-only inspection of the current Codex Desktop state on 12 August 2026 shows a stronger condition than the detached-existing-task behavior previously reported.
The persisted state contains all of the following:
local-projectsrecord namedGithub;rootPathsentry is the OneDrive-backed pathC:\Users\<user>\OneDrive\Documents\ChatGPT\Github;createdAtandupdatedAtare both 2026-08-12 15:10:17.651 JST;selected-projectpoints to that same project record;pendingCoreUpdate: false.The app's structured project listing independently returns the same
Githubproject with the OneDrive-backed path. The newly verified local copy atC:\CodexProjects\Githubis not registered as the project root.There is also an internal state divergence:
electron-saved-workspace-rootsdoes not contain the OneDrive-backedGithubroot, whilelocal-projects,selected-project, andthread-project-assignmentsdo contain and actively use it.This means the current case cannot be explained only as an old task retaining an immutable historical cwd. Codex persisted a current local-project record whose only root is the excluded OneDrive path, selected that project, and treated multiple assignments as fully applied rather than pending migration.
Independent cross-store confirmation
The app build in this observation is
26.803.10989.0.A separate read-only query of
state_5.sqliteconfirms that the canonicalthreads.cwdcolumn stores the same OneDrive-backed path for all three affected tasks. One of those rows is the task used to resume the real runtime-demo recording after full operation permissions had been enabled for the YouTube capture. Therefore this is not only a renderer/sidebar projection or stale tooltip value: the durable thread database independently agrees with the OneDrive cwd.The separate
thread-writable-rootsstate also advertises the same OneDrive path as writable for each of the three tasks.No state file has been modified during this inspection. The exact local project and thread identifiers are retained privately for internal correlation.
Please determine:
Githublocal-project record at 15:10:17.651 JST;electron-saved-workspace-rootsdisagrees with the activelocal-projectsand assignment state;pendingCoreUpdate: falsedespite the provenance mismatch;threads.cwdand writable-root state accepted the excluded OneDrive path for a task operating with full permissions.This is direct persisted-state evidence of a project/root selection and authorization-provenance defect, not only a OneDrive connectivity symptom. It still does not by itself establish unintended file content access or exfiltration.