Skip to content

Windows Work: Git networking fails with getaddrinfo() despite Local network access On; normal PowerShell succeeds #53501

Open

Description

@tom-stayner

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.1007.21434, OpenAI.Codex 26.1007.2314.0 (reported by Get-AppxPackage)

What subscription do you have?

Plus

What platform is your computer?

Windows 11

What issue are you seeing?

Git networking fails inside ChatGPT Work’s local Windows command environment, while the identical command succeeds in normal PowerShell on the same computer.

This reproduces the networking symptoms reported in #14221. I have not confirmed that the underlying cause is identical.

What steps can reproduce the bug?

Steps to reproduce:

  1. Set Settings > Configuration > Work > Local network access to On.
  2. Fully exit and reopen the desktop app.
  3. Confirm Local network access remains On.
  4. Start a fresh Work task.
  5. Ask Work to run:
    git ls-remote https://github.com/openai/codex.git HEAD
  6. Use an explicitly accessible project working directory.

Actual result inside Work:

Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
fatal: unable to access 'https://github.com/openai/codex.git/': getaddrinfo() thread failed to start

Exit code: 1.

Feedback ID: 1bb19715-69f6-4f75-9723-5685eda69188

What is the expected behavior?

The command should connect and return the repository’s HEAD commit when command network access is permitted.

Comparison outside Work:
The identical command succeeds in normal Windows PowerShell and returns a HEAD commit.
Resolve-DnsName github.com also succeeds outside Work.

Additional information

affected product is ChatGPT desktop Work using local execution

Additional diagnostics:

  • Both environments use Git 2.54.0.windows.1.
  • Both use C:\Program Files\Git\cmd\git.exe.
  • Inside Work, Resolve-DnsName github.com reports “Access is denied.”
  • Inside Work, .NET DNS lookup reports “No such host is known.”
  • Key Windows environment variables, including SystemRoot, WINDIR and ComSpec, are present.
  • Saved configuration selects [windows] sandbox = "elevated".
  • Work’s shell reports PowerShell 7.6.5.
  • An earlier sandbox startup failure reported helper_sandbox_lock_failed. Commands now start, but networking still fails.
  • An initial test failed with “cannot change to C:/Users/”; explicitly selecting the project directory got past that error.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Oct 12, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sandboxIssues related to permissions or sandboxing
    connectivityIssues involving networking or endpoint connectivity problems (disconnections)
    on Oct 12, 2026
  3. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. tom-stayner commented on Oct 12, 2026

    @tom-stayner
    Author

    Control tests in normal Windows PowerShell:

    The same DNS, curl and Git tests fail inside Work. This isolates the observed failure to the Work execution environment on this computer.

  5. tom-stayner commented on Oct 12, 2026

    @tom-stayner
    Author

    Additional reproduction:
    Resolve-DnsName chatgpt.com fails with “Access is denied.”
    curl.exe -I https://chatgpt.com fails with “curl: (6) Could not resolve host: chatgpt.com.”
    Both exit with code 1 and report the PowerShell InitializeDefaultDrives warning.

    This shows the failure also affects DNS/network tools outside Git.

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 workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)sandboxIssues related to permissions or sandboxingwindows-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