Skip to content

[Windows] Archiving Codex tasks fails with ERROR_NOT_SAME_DEVICE (os error 17) #36289

Open

Description

@luoyegege

Summary

On the Windows Codex desktop app, archiving fails with:

The system cannot move the file to a different disk drive. (os error 17)

This affects at least three tasks, including a newly created manual Codex task. It is therefore not limited to migrated, long-history, or previously loaded tasks.

Environment

  • AppX package: OpenAI.Codex_26.721.11231.0_x64__2p2nqsd0c76g0
  • OS: Windows 10 Pro 22H2, build 19045, x64

Reproduction

  1. Open the Windows Codex desktop app.
  2. Create a new manual Codex task, or select an existing task.
  3. Use the app's archive action.
  4. The archive action fails with os error 17.

Observed impact

The affected task remains in the sidebar because archive does not complete. At least two pre-existing task entries and one newly created manual task were affected.

Local checks

The standard local session root and archived-session root are both on the same volume (C:). Thus the error confirms that some move attempted by the archive flow crossed volumes, but it is not simply the normal session-root-to-archive-root move. The exact internal source/destination has not been identified, and no files or indexes were edited during investigation.

Expected behavior

Archiving should work for tasks regardless of project/worktree drive placement. If any archive component crosses volumes, the client should use a safe supported cross-volume strategy rather than failing and leaving the task visible.

Privacy

No session contents, task titles, task IDs, screenshots, raw logs, local user paths, or credentials are attached.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Jul 31, 2026
  2. suizhejiu commented on Sep 13, 2026

    @suizhejiu

    Related observation that may explain a cross-device move error while both session roots are on the same volume.

    On a Windows Desktop machine here, the MSIX package itself was installed to a secondary AppX volume, exposed through a junction:

    Get-AppxPackage OpenAI.Codex -> InstallLocation
      C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0
    Get-Item <that path> -Force
      LinkType : Junction
      Target   : D:\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0
    Get-AppxVolume
      C:\Program Files\WindowsApps   IsSystemVolume = True
      D:\WindowsApps                 IsSystemVolume = False
    

    The app's own user-data path was also a reparse point, and the desktop log contained EXDEV: cross-device link not permitted for renames that appear to be inside a single directory. So the effective filesystem layout is not the plain single-volume layout the visible paths suggest.

    That is consistent with your finding that a move can cross devices even though the standard session root and archive root resolve to C:. It is a hypothesis for the mechanism, not a verified cause of the archive failure: I did not reproduce the archive error on this machine.

    For reference, the same cross-volume layout also broke the app's bundled-runtime relocation (no window, no codex.exe backend) and its bundled-plugin materialization, and moving the package to the system volume resolved those. Full write-up with before/after measurements: #40700 — #40700 (comment)

    If you still have the affected install, these read-only checks would confirm whether your machine shares the layout:

    Get-Item (Get-AppxPackage OpenAI.Codex).InstallLocation -Force |
      Select-Object FullName, LinkType, Target
    Get-AppxVolume | Select-Object PackageStorePath, IsSystemVolume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions