Repository navigation
Description
Environment
- Windows, Codex desktop app 26.928.21956, build 12404, prod channel; update check reports up_to_date.
- Bundled codex-cli 0.159.2.
- Sites plugin 0.1.75.
- Managed workspace-write permission profile with granular approvals. sandbox_approval is false; request_permissions is available.
- Date observed: 2026-09-30.
Problem
An official Sites workflow starts successfully in a workspace directory with tty:true and asks for its supported hidden JSON stdin input. The subsequent write_stdin is rejected by the approval layer, including Ctrl-C cleanup sent through the same tool.
The policy rejection itself may be intentional. The integration problem is that the official workflow reaches a waiting PTY even though its required input and cancellation cannot be delivered under the enforced profile.
Steps observed
- Obtain a short-lived credential through the native Sites source-repository credential tool for an existing project.
- Launch
node <Sites-plugin>/scripts/site-workflow.mjs --project-id <existing-project-id>in an empty workspace subdirectory, with tty:true. - Observe
Ready for Site workflow JSON on stdin (input is hidden). - Send the documented credential JSON with write_stdin to that returned exec session.
- Observe the rejection below.
- Sending Ctrl-C via write_stdin is rejected with the same error.
This occurred for two separate existing Sites. A turn-scoped network grant had already been approved via request_permissions.
Exact error
write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false
Expected behavior
Either provide a policy-compatible supported path for the official workflow, or reject the incompatible workflow before launching a waiting process with a clear diagnostic. Please also investigate whether cancellation of an already-started PTY can be supported without granting broader access.
I am not requesting a bypass or removal of managed protections.
Impact and evidence limits
Source opening/fetch, push, version save and deployment did not take place. Credentials were not delivered after the rejection, nor placed in argv or files. Process termination was not confirmed because Ctrl-C was also rejected.
The suggested $CODEX_HOME/.sandbox/sandbox.log was checked and was absent. No raw session transcript is attached because it can contain private application data and credentials. This report intentionally omits private project IDs, account email, tokens and production data.
OpenAI Help Center's automated support directed this report to the Codex GitHub issue tracker and could not issue a support ticket.
Activity
github-actions commentedon Sep 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
pemdes-hub commentedon Sep 30, 2026
Also reproduced on Windows on October 1, 2026 while publishing an existing Site through the official Sites workflow.
Feedback ID: 01a0f37e-04af-7b10-8ad9-55406699feb0
The UI shows “Ask for approval”. Network and Git-directory permissions were granted, but write_stdin is rejected with:
Restarting the app and laptop did not resolve the issue. The workflow starts and waits for hidden JSON input, but authentication input cannot be delivered. Publication remains blocked.
anbangligang1234-ops commentedon Oct 1, 2026
Additional reproduction while publishing an existing ChatGPT Site from the Codex desktop app on Windows.
The failed publish attempt was on September 30, 2026; the effective session restrictions were still present when checked on October 1 (Asia/Shanghai).
Observed environment and steps
sandbox_approval=false;request_permissionsis available.site-workflow.mjswas launched in the existing checkout withtty:trueand reported:Ready for Site workflow JSON on stdin (input is hidden).write_stdinwas rejected before execution:Separately, Git staging failed to create
.git/index.lockwithPermission denied, despite a scoped write grant. Restarting the desktop app did not resolve the publish failure. The runtime policy's origin has not been established, so this report does not attribute it to an organization administrator or claim that the denial itself is unintended.Requested guidance
Please provide a supported, policy-compatible way to complete the official Sites publishing workflow, or fail clearly before starting a workflow that cannot receive its required input. We are not requesting a bypass, ACL changes, relocation of protected Git metadata, or removal of managed safeguards.
The prepared source changes remain local and have not been published. No credential was delivered after the blocked input action. This comment intentionally excludes the website domain, project/account identifiers, email, personal filesystem paths, credentials, raw logs, and session transcripts. No independently verified desktop-app build number is being asserted.
aetherxeg-source commentedon Oct 2, 2026
A lifecycle-authority invariant seems useful here:
authorized process creation != authorized process stewardshipFor an interactive PTY, starting the process is only one edge of the lifecycle. If the workflow necessarily requires stdin delivery and a cancellation path, the runtime should establish those bounded capabilities before process creation, or reject the launch as incompatible with the current policy.
Conceptually:
The important part is that input/control authority can be scoped to the exact returned process/session generation; it need not imply a broader sandbox approval or arbitrary shell control.
A strong regression would cover both supported designs:
Then add a stale-session test: process A exits, process B reuses an internal slot/identifier, and delayed control for A must never reach B.
That separates "this process may exist" from "this principal may safely steward this process through the rest of its required lifecycle."
takohachi88 commentedon Oct 2, 2026
Additional reproduction on Windows with the Codex desktop app and Sites plugin 0.1.75.
The user reports that the permission selector is already set to Ask for approval. The active session nevertheless exposes a granular approval policy with
sandbox_approval=false. The source of that effective policy is unknown; I cannot establish whether this is a UI/session mismatch or an intentional higher-priority restriction.Observed sequence:
.gitusingrequest_permissions. Both are returned as granted for the session.site-workflow.mjswithexec_command(tty: true).Ready for Site workflow JSON on stdin (input is hidden).write_stdin.The user completely restarted Codex and the same sequence still failed. Read-only Sites calls remain available, but source synchronization and publication have not completed.
A targeted read of the user
config.tomlfound no explicitapproval_policy,sandbox_approval, orapprovals_reviewersetting at that point. A configuration change was suggested afterward, but was not confirmed applied or tested, so it is not evidence of a workaround.Please clarify the supported permission path for the official stdin-based Sites workflow under this effective policy, and whether explicit
request_permissionsgrants are intended to carry over towrite_stdin. If the workflow cannot proceed under the profile, an actionable rejection before launching the waiting PTY would help.Exact desktop-app version and Windows build were not verified. No credential values, account identifiers, local user paths, private Site IDs, production URLs, or raw transcripts are included.
takohachi88 commentedon Oct 2, 2026
Follow-up to the reproduction above: a targeted read now confirms that the user-level config.toml contains
approval_policy = { granular = { sandbox_approval = true, rules = false, mcp_elicitations = true, request_permissions = true, skill_approval = false } }andapprovals_reviewer = "user". A newly launched official Sites workflow in the current conversation still has its write_stdin input rejected withAskForApproval::Granular.sandbox_approval is false. This confirms that the saved user setting differs from the effective policy reported for this session. A restart after this latest configuration edit has not been confirmed, so this does not establish that the mismatch persists in a fresh session loaded from the edited config. No publication took place.takohachi88 commentedon Oct 2, 2026
Further diagnostic from a user-requested retry: before renewing explicit permissions, write_stdin was able to deliver the documented JSON and the Sites workflow exited with a generic preparation failure. A diagnostic copy that only expands the exception message identified
Error: spawn EPERMat the Node child_process.spawn call used to start Git, during selectCheckout. Then request_permissions returned session-scoped network access and write access to the publication checkout's .git as granted. A fresh run of the unchanged official workflow reached its stdin prompt, but write_stdin was again rejected withAskForApproval::Granular.sandbox_approval is false. These are observations of different permission states, not proof that request_permissions caused the change. Neither run completed source synchronization or publication. This may help distinguish the child-process startup failure from the separate stdin approval rejection.asadullaabdurahimov-cloud commentedon Oct 21, 2026
Additional reproduction on Windows on 2026-10-21 with Sites 1.1.0. Feedback submission completed successfully in the desktop app.
Feedback ID:
01a15cec-44a7-7812-9439-0f4fa534e745The official Sites helper starts through
exec_commandwithtty=trueand displaysReady for Site workflow JSON on stdin (input is hidden).The requiredwrite_stdincall, and subsequently Ctrl-C through the same tool, are rejected before execution:A separate minimal test also reproduces this: start a Node process waiting for stdin, then send only
probe\nthroughwrite_stdin. No credentials, network activity, or website code are needed; the test process exits automatically after 25 seconds. A session-scoped network grant throughrequest_permissionsdid not resolve the Sites workflow rejection.Additional diagnostic data:
0.163.0-alpha.10.2; Windows build26300.9711.codex doctorreports installed desktop-app version26.1013.4894.0; the running app version was not independently verified.codex features listinvocation reportsunified_exec=trueandunified_exec_tty=true.codex doctorexplicitly says active thread overrides were not inspected, so these CLI results do not establish the live desktop thread policy.The website update remains blocked. The effective restriction's origin is still unknown. Please investigate the supported stdin/cancellation path for an already-started process, or an actionable rejection before an incompatible workflow starts. This comment excludes credentials, personal local paths, account email, private Site identifiers, production domains, and raw logs.
ausmeek-spec commentedon Oct 21, 2026
Additional reproduction on Windows on 2026-10-21, with a comparison between the agent sandbox and normal owner PowerShell.
Feedback ID from the app's issue link:
01a15d6e-b0f0-7e40-8b5f-3da1f5a9b386Environment:
26.1016.51333, build21161, production channel,up_to_date.0.163.0-alpha.11.26300.9711; Sites plugin1.1.0.The supported
request_permissionsnetwork grant succeeds. The unchanged officialsite-workflow.mjsstarts withtty:trueand waits for its hidden JSON input. The requiredwrite_stdin, and a subsequent Ctrl-C to that same waiting process, are both rejected before delivery:The effective chat policy is
workspace-writewith granularsandbox_approval=false,rules=false,skill_approval=false,request_permissions=true, andmcp_elicitations=true. No source credential reached the waiting helper and publication did not occur.New diagnostic comparison, using
codex doctor --jsonfrom the same executable:entity not found); home/CODEX_HOME unresolvedOnRequestsandbox_approval=falseThe normal diagnostic has no failed checks, but explicitly says active thread overrides were not inspected. It does not establish the live desktop thread's effective policy. Likewise, the sandbox-only home/TLS findings are observations, not an established root cause or a reason to weaken TLS or Windows protections.
Read-only checks found no explicit approval-policy keys in the user config and none of the checked user, system, or workspace requirements/config override files. Earlier mode-selection/restart attempts had not resolved the recurrence. The running app's update check found no eligible update.
Please investigate which layer supplies the different effective chat policy and provide a supported bounded stdin/cancellation path, or reject the incompatible workflow before starting a waiting PTY. Redacted diagnostic comparison and selected setup-log excerpts are retained locally and can be provided privately if useful. This public comment includes no credentials, personal filesystem paths, account email, private Site/project identifiers, customer records, or raw session transcripts.