Skip to content

[macOS desktop] Scoped permission grant still leaves credential stdin workflow blocked without an actionable approval #52759

Open

Description

@llou6686-prog

Environment

  • ChatGPT/Codex desktop macOS app: 26.930.61225 (CFBundleVersion 13232)
  • macOS: 26.3.1 (a), build 25D771280a
  • Bundled Codex CLI: 0.160.1
  • Node: 24.14.0
  • Projectless local chat, workspace-write sandbox, granular approval policy
  • codex login status succeeds with Logged in using ChatGPT.

Problem

A user explicitly authorized migration of their existing private Sites-backed content worker from Windows to Mac, secure local credential configuration, login-time startup, and verification using the existing ChatGPT login (no paid API keys). Migration archive integrity checks and project dependency installation succeeded, but secure credential configuration and execution remained blocked. Please investigate whether this is an approval-state propagation defect, intended policy enforcement with insufficient UX, or both.

Observed reproduction

  1. Obtain an existing private Site connection token through the authenticated Sites tool, retain it in memory, and never print it.
  2. Start a workspace-local Python configuration writer in a PTY with terminal echo disabled. It waits for one JSON line and is intended to save only the connection URL/token in a workspace-local .env.worker.json with mode 0600.
  3. Request scoped write permission for that exact config file. The permission tool returns a grant for the exact path (scope: turn).
  4. Send the JSON through write_stdin to the waiting writer.
  5. The tool rejects it before the writer receives the input:
write_stdin rejected: approval required by policy, but AskForApproval::Granular.sandbox_approval is false

A fresh writer process after the scoped permission grant produced the same rejection. No actionable approval prompt or explanation of the remaining requirement was supplied. Reading output from other running sessions with empty write_stdin worked.

Related blockers (possibly expected sandbox limitations)

  • Scoped write requests for ~/Library/LaunchAgents and then a single prepared plist file returned no filesystem grant. A plist was prepared only in the authorized workspace; it was not installed.
  • A direct minimal generation test using the existing CLI ChatGPT login failed during startup:
failed to run startup maintenance for logs db ... attempt to write a readonly database
Error: failed to initialize in-process app-server client: Operation not permitted (os error 1)

These may reflect intentional restrictions; please distinguish them from the granted workspace-file stdin failure and provide a supported least-privilege resolution.

Expected

After granting the exact requested workspace file permission, either allow the authorized secure stdin workflow or present the precise additional approval/policy requirement and a usable way for the user to resolve it. Do not require exposing secrets in commands, chat, or logs, or enabling broad access as an undocumented workaround.

Impact

The agent could migrate and validate the files but could not finish local worker takeover, validate heartbeat, or process existing queued work. No production drafts were overwritten, no new Site was deployed, and no paid API key was created. The user repeatedly asked the agent to act directly and then explicitly requested this report.

Related reports

Similar rejection text appears in #51414, #51509, and #52517. This report adds the exact workspace-file scoped grant and local worker configuration case; it does not claim that the local UI had an independently verified 'On request' setting.

No credentials, private Site identifiers/URLs, migration archives, user business documents, or full session logs are included.

Activity

  1. added
    bug
    app
    sandbox
    tool-calls
    on Oct 10, 2026
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-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions