Skip to content

Windows: scoped network grant blocks credential-free write_stdin continuation in a projectless granular session #55961

Open

Description

@emersoncossi-boop

Summary

A minimal credential-free terminal input test succeeds before a scoped network grant, but a fresh identical terminal fails at write_stdin after request_permissions grants network access. The app starts the process successfully, yet its required follow-up input has no usable approval path. The user could not locate the suggested permission control. A read-only inspection of the installed frontend shows that projectless chats can default to granular rather than auto. The exact reason that the user could not locate a usable control is not established.

Verified environment

  • Windows app package: OpenAI.Codex_26.1016.6573.0_x64
  • Running executable: ChatGPT.exe within that package
  • Codex CLI used by the local app: 0.163.0-alpha.11
  • Windows 10 Pro 22H2, build 19045.6456
  • Local windows.sandbox: unelevated
  • Effective conversation approval policy: granular; sandbox_approval=false, rules=false, skill_approval=false, request_permissions=true, mcp_elicitations=true
  • Local persisted host agent mode and config-derived mode: granular
  • Persisted composer-permission-mode-visibility: false. Important clarification from read-only installed frontend inspection: this value feeds showFullAccessInComposer and does NOT establish that the whole permissions selector is hidden.
  • This is a local projectless chat with a writable workspace. No managed-organization root cause has been established.

Minimal reproduction observed on 2026-10-21

  1. Start this program with exec_command, tty=true, yield_time_ms=1000:
process.stdin.setEncoding("utf8");
process.stdin.once("data", () => {
  console.log("DIAGNOSTIC_INPUT_RECEIVED");
  process.exit(0);
});
setTimeout(() => process.exit(2), 60000);
console.log("DIAGNOSTIC_READY");
  1. Send ordinary text plus a newline through write_stdin. Observed result: DIAGNOSTIC_INPUT_RECEIVED, exit 0.
  2. Call request_permissions with permissions.network.enabled=true. Observed response grants network access with scope=turn and strict_auto_review=true.
  3. Start a fresh process with the exact same program and options. It prints DIAGNOSTIC_READY.
  4. Send the same ordinary diagnostic text through write_stdin.
  5. Observed result, before delivery:
write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false

The program does not use the network, Git, customer data, credentials, or external side effects. This before/after result narrows the problem to scoped permission/terminal-continuation handling; the exact internal defect is not yet confirmed.

Product impact

The documented Sites workflow requires a temporary source credential to be supplied through hidden stdin. That workflow is blocked at the same boundary, even after explicit user authorization and scoped network/filesystem grants. No site update has been claimed or published. We did not put credentials in arguments or files, disable protections, or alter client access.

Additional local frontend evidence

Read-only inspection of the installed packaged frontend found a projectless default selection equivalent to:

function defaultMode({isProjectless, requirements}) {
  return isProjectless && isAllowed("granular", requirements) ? "granular" : "auto";
}

The persisted local host mode is granular, consistent with that default. This is evidence of how the mode may be selected, not proof of which internal layer mishandles terminal continuation. No app state, config, package files, or security policy was modified.

Expected behavior

A terminal launched under an approved scope should have a consistent safe input-continuation path. If another approval is required, provide an available, scoped approval prompt and identify the missing category. Do not instruct the user to use a control that is hidden/unavailable.

Suggested improvements

  • Reconcile scoped network grants with write_stdin authorization for processes launched under that grant.
  • Expose effective permissions, permission origins, selector availability, and a supported recovery action to both the user and the assistant.
  • Distinguish a disabled approval category from a rejected action and from an OS subprocess error.
  • Add a credential-free terminal-continuation preflight to the Sites helper before requesting repository credentials.
  • Keep source-repository credential authorization distinct from application/end-user access-code rotation.
  • Make troubleshooting guidance surface-specific when the permission selector is hidden.
  • Provide an explicit escalation/report action when the required approval category cannot surface.

Related reports

This report is intentionally sanitized: no tokens, account identifiers, customer content, site identifiers, personal filesystem paths, or full session logs. The user explicitly requested feedback to OpenAI.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 21, 2026
  2. changed the title [-]Windows: scoped network grant blocks credential-free write_stdin continuation while permission selector is hidden[/-] [+]Windows: scoped network grant blocks credential-free write_stdin continuation in a projectless granular session[/+] on Oct 21, 2026
  3. qwixilver commented on Oct 22, 2026

    @qwixilver

    Additional reproduction on Windows in the Codex desktop app, October 22, 2026:

    The official Sites publication helper starts successfully and displays its hidden-stdin readiness message. Supplying its required input through write_stdin is rejected before delivery:

    write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
    

    The problem persists after an app update, restart, and selecting Ask for approval. For the latest retry, the user also placed these settings at the top level of their user config and restarted the app:

    approval_policy = "on-request"
    approvals_reviewer = "user"
    sandbox_mode = "workspace-write"

    The entire TOML file parses successfully, the three values are correctly located before the first table heading, and there are no duplicate declarations of those keys. Scoped network access and write permission to the prepared source repository's .git directory were granted before starting a fresh helper. Its required stdin continuation was still rejected with the same error.

    The source of the effective restriction is unconfirmed. We have not reproduced the issue in the standalone CLI. No source push, saved Site version, or deployment succeeded in this retry.

    Expected: an available approval path for the supported helper workflow, or an explanation identifying the policy source and a supported recovery action. Please advise how to resolve this while retaining the workspace sandbox and manual approvals.

    This comment omits credentials, account and Site identifiers, personal filesystem paths, and full session logs.

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