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
    app
    on Oct 12, 2026
  2. added
    bug
    windows-os
    sandbox
    connectivity
    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.

  6. philippkolbe commented on Nov 13, 2026

    @philippkolbe

    Additional reproduction on November 13, 2026, in ChatGPT Work with a local Windows/PowerShell workspace.

    Local network access is set to On. Fully exiting/restarting the application and starting a completely new Work chat did not resolve the issue. The exact desktop application version and Windows build have not been verified.

    Inside the affected Work command executor:

    Resolve-DnsName github.com
    github.com : Zugriff verweigert
    
    git ls-remote https://github.com/git/git.git HEAD
    Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
    fatal: unable to access 'https://github.com/git/git.git/': getaddrinfo() thread failed to start
    

    The Git command also failed when run with the execution tool's login/profile handling disabled. A .NET DNS lookup failed with “Der angegebene Host ist unbekannt.”

    Control tests in ordinary PowerShell on the same computer succeed: Resolve-DnsName github.com returns an IPv4 address, and the identical git ls-remote command returns HEAD successfully.

    The execution context supplied to this Work conversation still explicitly says “Network access is restricted.” This establishes the observed difference between the enabled UI setting and the affected execution path; the underlying cause has not been confirmed.

    Feedback submitted from the affected conversation:
    b8667baa-61ff-4e5f-be73-0772f2adf33d

    Please advise how to inspect and correct the effective network policy while retaining workspace filesystem restrictions.

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

    appbugconnectivitysandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions