Skip to content

Windows desktop: local Next.js server rejected before process creation without actionable policy reason #53170

Open

Description

@declic87

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

Windows package: OpenAI.Codex 26.1007.2314.0, measured locally with Get-AppxPackage. The About dialog and bundled engine version were not independently collected. A separate CLI on PATH reports 0.142.2; it is not assumed equivalent to the desktop engine.

What subscription do you have?

Not collected for this report.

What platform is your computer?

Windows 11 Home, version 10.0.26300, build 26300; PowerShell.

What issue are you seeing?

The desktop UI displays Full access, but two explicitly authorized local Next.js server-start invocations were rejected before process creation on October 11, 2026 at 15:25:12.521Z and 15:26:21.091Z.

The server-start part of the rejected PowerShell invocations was:

node node_modules/next/dist/bin/next start -p 3214 -H 127.0.0.1

Observed tool result:

exec_command failed: CreateProcess / Rejected / rejected: blocked by policy

This is a sanitized summary of the error wrapper, not a complete raw log. No rule identifier, actionable denial reason, PID or Next.js log was returned.

Local HTTP access to an existing loopback service succeeded; that does not prove permission to bind a new port.

What steps can reproduce the bug?

Observed in the affected existing desktop conversation:

  1. Use a local Next.js worktree with an existing build and a free, project-authorized local port, with Full access displayed in the UI.
  2. Ask the agent to start the server via exec_command and PowerShell, binding only to 127.0.0.1.
  3. Observe rejection before process creation. Both the initial test preparation and a narrower alternative disabling AI and removing test-specific process environment settings were denied.

The command shown above is the server-start portion of those invocations. The invocations also set process-local environment variables; an isolated run of the single-line command above was not attempted. This is an observed incident, not a verified clean-install or deterministic minimal reproducer. No alternative launcher, port, or permission override was used to bypass the refusal.

The stored user configuration says sandbox_mode="read-only" and approval_policy="never", while the conversation declares danger-full-access and never. Project trust is persisted. Candidate user/project rules folders, targeted local requirements files and legacy managed configuration were absent. These observations do not identify the effective policy or establish that the saved configuration caused the refusal.

What is the expected behavior?

Provide an actionable explanation of the actual effective policy and the denied action, without disabling protections or relying on a different runtime. Please clarify whether this is expected policy enforcement or a diagnostic/product defect, and the supported review/recovery route.

Additional information

Feedback submitted: no-active-thread-01a12bd7-8566-7293-b5c6-29f68062d860.

Submission is confirmed by the app's “Feedback sent” confirmation. Attachment of the affected conversation is unverified; the no-active-thread prefix is not treated as proof either way. The support AI explicitly stated that it cannot inspect this feedback.

Related: #50884 concerns another Windows local-test denial with an opaque policy reason. This report adds the observed Next.js server-start case, the saved/session configuration discrepancy and the feedback association uncertainty. No common root cause is established.

The account owner explicitly authorized this public report and its feedback identifier. No credentials, full transcript, private files, user paths, project names, screenshots or commercial data are attached.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 11, 2026
  2. declic87 commented on Oct 12, 2026

    @declic87
    Author

    Diagnostic follow-up, 2026-10-12. No denied command has been replayed.

    The current official Auto-review documentation states that interactive review does not apply with approval_policy=never. It documents an exact-action, one-retry /approve picker in the open-source TUI:
    https://learn.chatgpt.com/docs/sandboxing/auto-review

    The affected desktop conversation currently exposes danger-full-access and never. No action-specific review or approval tool is exposed to the agent. This does not identify the rejecting component, and we should not attribute the generic denial to Auto-review without evidence.

    Could you confirm the supported Windows desktop procedure to identify the rejecting layer and request review of this exact existing denial while retaining protections? Does the documented picker apply to the desktop app and to this generic pre-spawn rejection, or only to interactive Auto-review denials in the TUI?

    The required checks involve local authentication, routes and database persistence together. Browser component checks without a server cover only part of them. We have not moved the rejected start to another executor, port or production, changed permissions, or claimed complete integration coverage.

    The existing feedback identifier is in the issue body. No private logs or conversation are attached.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions