Skip to content

[Bug]: Windows client path overrides accept drive-less rooted paths #7808

Closed

Description

@lidge-jun

Client or integration

Other

Area

Platform (Windows / macOS / Linux)

Summary

Client path overrides are resolved in src/clients/client-path.ts, which treats any value for which path.isAbsolute() is true as absolute (line 28). On Windows that includes drive-less rooted paths such as \\Users\\me\\.codex, which resolve against whichever drive is current when the command runs, so the same override can point at different locations. Expected: on Windows, require a drive letter or UNC prefix (or refuse the drive-less form with a clear message).

Reproduction

  1. On Windows, set a client config path override to a drive-less rooted path such as \\tmp\\client.
  2. Run the export/sync command from a different current drive.
  3. Observe the resolved path follows the current drive.

Version

2.93.0

Operating system

Windows 11

Provider and model

No response

Logs or error output

n/a

Screenshots and supporting files

No response

Redacted configuration

n/a

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    on Oct 27, 2026
  2. added
    platform
    on Oct 27, 2026
  3. lidge-jun commented on Oct 28, 2026

    @lidge-jun
    OwnerAuthor

    Fixed on dev by #7824 (squash merge 07161c5). On Windows, client path overrides now require a drive letter or UNC share and refuse drive-less rooted paths such as \tmp\client with a clear message; the shared check lives in src/clients/client-path.ts and covers the clients that resolve overrides through it, including T3 Code. Closing manually because pull requests into dev do not auto-close issues.

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

    bugplatform

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions