Skip to content

Windows Sites publication blocked at write_stdin despite granted network and Git-directory permissions #53292

Open

Description

@simjin0911-collab

Summary

Updating an existing Sites project is blocked at the official source-workflow helper's stdin step. Reproduced on 2026-10-12 (Asia/Seoul) in the Windows desktop app with PowerShell and Sites plugin 1.0.1. Exact desktop app version and subscription were not verified in this session.

Possibly related to #53134, #50874 and #52517. This report records a further reproduction with explicit request_permissions grants.

Steps to reproduce

  1. Request edits and publication of an existing Sites website.
  2. Read the existing project identity and obtain a fresh source repository write credential through the Sites connector.
  3. Use request_permissions for network access and write access to the existing checkout's .git directory. The tool returns both permissions granted for the turn.
  4. Start the official site-workflow.mjs helper using exec_command with tty=true from the existing checkout.
  5. Wait for Ready for Site workflow JSON on stdin (input is hidden).
  6. Send the credential object as newline-terminated JSON using write_stdin, as required by the Sites skill.

Actual result

The write_stdin tool rejects the call before the helper can process it:

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

The runtime describes a granular policy with sandbox_approval=false and request_permissions=true. Granting the requested network and Git-directory permissions does not resolve the rejection. A fresh credential and a newly started helper session still reproduce the failure. The app's visible permission selection was not independently inspected.

Expected result

The supported Sites workflow should be able to deliver input after the required scoped permissions are granted, or the app should surface an actionable approval prompt / explain the higher-priority policy blocking it.

Impact and scope

Local source edits and builds work, and 26 local application tests pass, but source synchronization and publication cannot proceed. Sites metadata operations work. No new version was published, and no production records were deleted. Tokens, site identifiers, local user paths, member data and raw conversation logs are intentionally omitted.

Please investigate the mismatch between granted scoped permissions and the write_stdin approval category, and provide a supported recovery path that does not require disabling security protections.

Activity

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

    @lpenev11

    I can reproduce this on Windows with PowerShell and the Sites plugin 1.0.1 on 2026-10-14. The separate test site builds successfully locally, but publication is blocked at the official source-workflow helper’s hidden-stdin step.

    Steps observed:

    1. Start site-workflow.mjs with exec_command (tty=true).
    2. Wait for “Ready for Site workflow JSON on stdin (input is hidden).”
    3. Submit the required newline-terminated workflow JSON using write_stdin.

    Actual result:

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

    Explicit network and test .git-directory write grants through request_permissions did not resolve this. A fresh helper session after the grants reproduced the rejection. The effective session reports workspace-write and granular approvals with sandbox_approval=false; the local config contains a different sandbox_mode value. I have not verified the UI permission selector or the origin of the effective policy, so I am not claiming those settings must override managed restrictions.

    Expected: either allow the supported workflow within the granted permissions, or provide an actionable explanation/approval path consistent with the applicable policy. Please advise on a supported recovery path without disabling security protections.

    In-app feedback was submitted. Feedback ID: 01a0e306-f0d2-7e30-b352-58ac9b6385ce.

    No credentials, private site identifiers, personal files, or full logs are included. The main site has not been changed.

  3. lpenev11 commented on Oct 19, 2026

    @lpenev11

    Update — 2026-10-19: still reproducible on Windows/PowerShell with Sites plugin 1.0.2-remix-a.1.

    The user restarted the desktop app and explicitly confirmed selecting “Ask for approval” in the UI. I cannot establish whether a managed policy overrides that selection.

    Sites metadata confirms project ownership, and a fresh source write credential is issued successfully. Scoped network permission via request_permissions is granted for the turn. The official site-workflow.mjs helper starts with tty=true and reports “Ready for Site workflow JSON on stdin (input is hidden).” Delivering the required newline-terminated JSON via write_stdin is then rejected:

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

    The effective session still reports workspace-write and granular approvals with sandbox_approval=false, rules=false, skill_approval=false; request_permissions and mcp_elicitations are enabled. A fresh helper and credential do not resolve this.

    The isolated site copy passes 203 tests, TypeScript checks and the production build. No source push or publication occurred. We need to publish the standalone website while leaving a separate working Shopify application untouched.

    Please provide a supported recovery path or investigate why the approval selection and scoped grants do not produce an actionable prompt for this helper input. If a higher-priority policy controls this, how can we identify and resolve it through supported settings? We are not requesting a security bypass.

    Credentials, project identifiers, personal photos and raw logs are omitted.

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