Skip to content

Windows local tasks: esbuild directory access denied and DNS permission errors #59361

Open

Description

@kainouwens08

What version of the Codex App are you using?

Not verified. The current About-dialog version was not captured.

What subscription do you have?

The account was described as Pro; the exact product subscription tier was not verified for this report.

What platform is your computer?

Windows, PowerShell, local task execution. Exact Windows edition, build and architecture were not verified. The affected execution context reported managed workspace-write permissions and restricted network access.

What issue are you seeing?

Local development work encountered the following failures:

  • esbuild reported access denied while resolving ../node_modules and ../node_modules/linkedom.
  • Resolve-DnsName registry.npmjs.org returned Access is denied inside the affected execution environment. A host-side nslookup succeeded.
  • An offline pnpm attempt returned ERR_PNPM_NO_OFFLINE_META for @alloc/quick-lru.

These are recorded observations, not a confirmed common root cause or a confirmed Codex defect. The offline pnpm failure does not establish a networking defect. The DNS comparison used different commands and security contexts, so it does not isolate the cause.

The complete original esbuild output, invocation, working directory and resolved absolute dependency targets were not retained in the evidence available for this report. It is therefore unknown whether the denied targets were inside the permitted workspace or involved a parent directory, junction or another location.

What steps can reproduce the bug?

Observed sequence on the affected installation, not a verified standalone reproduction:

  1. Run local development work from a Windows PowerShell task with managed workspace-write permissions and restricted networking.
  2. The esbuild dependency-resolution attempt reports access denied for the relative paths above. The exact build command is unavailable.
  3. Run Resolve-DnsName registry.npmjs.org in that task. It returns Access is denied.
  4. A separate host-side nslookup succeeds.
  5. An offline pnpm attempt reports missing offline metadata for @alloc/quick-lru. The complete pnpm invocation is unavailable.

These observations were not rerun while preparing this report. A minimal reproduction remains to be established.

What is the expected behavior?

Operations permitted by the task's effective filesystem and network policies should work. When an operation is intentionally blocked, diagnostics should identify the applicable restriction and supported permission or recovery route.

Please advise which minimal, sanitized diagnostics can distinguish an expected policy restriction from a Windows execution or dependency-resolution defect. Restricted networking is not expected to permit arbitrary direct DNS or internet access.

Additional information

Possibly related reports, without assuming a duplicate or shared cause:

  • #56654: native esbuild directory reads are denied although parent Node reads succeed. That parent/child comparison has not been established here.
  • #53501: Resolve-DnsName returns access denied inside Windows Work while host commands succeed.
  • #53278: network settings and effective permissions reportedly differ. No such settings/policy mismatch has been verified here.

This report contains no project files, personal paths, credentials, raw configuration, session transcripts or private feedback identifier.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Nov 4, 2026
  2. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. kainouwens08 commented on Nov 4, 2026

    @kainouwens08
    Author

    Update: With network access approved for the install, pnpm 11.25.0 downloaded the packages, but the frozen install did not complete. During symlinkAllModules, it reported ERR_PNPM_EPERM while creating a directory junction inside the writable workspace. The saved error did not include a numeric Windows error code. The execution token lacks SeCreateSymbolicLinkPrivilege, but that does not establish why the junction fallback was denied. The task reports that a junction-specific approval is unavailable; the enforcing layer remains unknown. No build or deployment was run.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions