Skip to content

macOS desktop: write_stdin rejected by granular policy while Ask for approval is selected #55169

Open

Description

@fgirigaray

Summary

In the ChatGPT desktop app on macOS, a local Sites update is blocked when write_stdin attempts to send input to a running process. The permissions menu shows “Ask for approval” selected, but the tool reports that sandbox approval is disabled. No approval prompt appears.

Environment

  • ChatGPT desktop version verified during troubleshooting: 26.1007.30912 (build 20156)
  • Bundle identifier: com.openai.codex
  • Local execution on a personally owned Mac; personal account
  • This has not been reproduced in the standalone Codex CLI.

Steps observed

  1. Select “Ask for approval” in the desktop chat.
  2. Start the Sites site-workflow.mjs helper to update an existing site.
  3. The process starts and waits for JSON input on stdin.
  4. Invoke write_stdin to provide the input.

Actual result

The tool rejects the call before input is delivered:

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

Expected result

The desktop permission selection and effective tool policy should be consistent, with an actionable approval prompt when approval is required.

Troubleshooting already completed

  • Fully quitting and reopening the desktop app did not resolve the failure.
  • The project is marked trusted.
  • The user config contains no approval_policy or sandbox_approval setting.
  • No project .codex/config.toml, /etc/codex/config.toml, /etc/codex/requirements.toml, or user *.config.toml profile files were found.
  • Failures were observed on October 13–14, 2026; the previous successful publication was October 6.
  • Only this existing site update has been tested; impact on other projects is unknown.
  • Desktop diagnostics were submitted privately through Feedback. OpenAI's support assistant directed us to this repository.

No credentials, full logs, local user paths, or private diagnostic identifiers are included here. Please confirm whether this desktop integration issue belongs in this repository and advise the appropriate next diagnostic step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxtool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions