codex icon indicating copy to clipboard operation
codex copied to clipboard

"Never ask" silently blocks Messages approval prompts under Full Access

Open danielha opened this issue 3 months ago • 5 comments

Correction: I initially misdiagnosed this as a per-task permission problem.

Codex treats sandbox access and approval prompting as separate settings. My configuration was:

sandbox_mode = "danger-full-access"
approval_policy = "never"

I read never as “approve everything.” It actually prevents approval prompts from appearing. Messages therefore failed with Read access was not approved.

Changing only approval_policy to on-request, while keeping sandbox_mode = "danger-full-access", fixes interactive Messages approval.

The remaining product issue is clarity and unattended behavior:

  • The UI should explicitly say that “Never” means “do not ask; approval-gated actions fail.”
  • Scheduled heartbeats run non-interactively, so a new Messages conversation still cannot obtain its first read approval. Previously approved conversations continue to work.

Environment: macOS, Codex CLI 0.151.0-alpha.7.2, Messages plugin 1.0.1000919.

danielha avatar Sep 01 '26 21:09 danielha

Additional reproduction on September 7, 2026 with the bundled Messages plugin version 1.0.1000926 on macOS.

Observed configuration:

sandbox_mode = "danger-full-access"
approval_policy = "never"

The Messages plugin is enabled. find_chats successfully returns recent conversation metadata, but search_messages and read_messages for an exact chat return immediately with:

Read access was not approved. No content was returned. Do not ask the user to approve access or retry. Do not fall back to Computer Use or other tools to access the withheld content unless the user explicitly requests that alternative.

The user explicitly requested the read and several retries. On the retries, the user reports that no approval prompt or conversation selector appeared at all, so there was nothing to approve or decline. Repeated reads returned the same error with no content.

Expected: clearly explain when the current approval policy prevents a required conversation-approval prompt, distinguish that condition from a user denial, and provide an actionable way for the user to request approval. In an interactive configuration that permits prompts, show the conversation approval UI.

Actual impact: the wording caused repeated retries and confusion about filesystem permissions. This occurrence has not yet tested switching to on-request; the matching configuration is evidence for the cause, not a newly verified fix.

This report contains no message contents, contact identifiers, or session transcript.

vyasv2018 avatar Sep 07 '26 12:09 vyasv2018

Confirming this worked for me. My task was set to Full access, and the Messages plugin kept returning “Read access was not approved” without showing an approval prompt.

Changing approval_policy to "on-request" in ~/.codex/config.toml alone didn’t resolve it, even after restarting and trying a new task. What fixed it was changing the task’s permission setting in the app UI from Full access to Ask for approval. The approval prompt appeared on the next attempt, and Messages search worked.

Sharing in case anyone else runs into the same issue. Thanks for pointing me in the right direction!

pokemuo avatar Sep 09 '26 23:09 pokemuo

Additional reproduction in the Codex desktop app on macOS 27.0.1, this time with the Codex app's automation_update tool rather than Messages:

  1. In an existing local task, set the task permission UI to Full access.
  2. Ask Codex to create a recurring, thread-attached heartbeat via automation_update (mode: create, kind: heartbeat).
  3. The tool requires an approval, but the action fails under Full access without presenting a prompt.
  4. Change that same task's permission UI to Ask for approval, then retry the same heartbeat creation.
  5. An approval prompt appears; after approval, the heartbeat is created successfully and marked active.

Expected: Full access should not be less capable than Ask for approval. If this action always needs explicit user consent, the app should still offer a way to give that consent under Full access instead of making the action impossible.

Actual: the same authorized operation was blocked under Full access and succeeded under Ask for approval. This looks like an interaction between the no-prompt policy and the tool's mandatory approval requirement. No project data or logs are attached.

P.S. The user asked me to pass this along: "Please hire me for being such a good boy." 🐶

davidmwest avatar Oct 06 '26 17:10 davidmwest

I reproduced the Messages read failure in Full access on October 11, 2026.

Environment:

  • Codex desktop on macOS 27.0.1
  • Bundled Messages plugin 1.0.1001425, enabled
  • Chat permission mode: Full access

Steps:

  1. Call find_chats with limit: 1. It returns a conversation and its chat_guid.
  2. Call read_messages with that returned chat_guid and limit: 1.

The read repeatedly fails with:

Read access was not approved. No content was returned.

The current tool response also says the task's approval settings may have blocked the read confirmation and recommends switching to Ask for approval or Approve for me. No message content is returned.

Expected behavior: Messages should provide a working conversation-approval flow while the chat remains in Full access, or clearly explain the incompatibility before attempting the read.

OpenAI's plugin documentation lists a similar Full access issue for sending: https://learn.chatgpt.com/docs/plugins#use-apple-messages-from-codex. This reproduction concerns reading. Whether the read and send failures share the same implementation cause is unconfirmed.

Switching permission modes has not been tested in this chat. No private chat identifiers or message contents are included in this report.

jeffrey-zang avatar Oct 12 '26 06:10 jeffrey-zang

FYI for anyone hitting the Messages read error in Full Access: on November 23, I confirmed that the macOS desktop app (version 26.1117.41037) can read Messages threads with the task still in Full Access.

Open Settings → Computer use → Messages → Manage → Read access and select Allow all chats. This worked for me without switching task permission modes or approving each thread individually. The setting applies to every chat and overrides saved per-chat choices, including Never allow.

The read-denial message suggested switching to Ask for approval, which is how I initially missed this setting. I tested reading only.

Arjun-Ganguly avatar Nov 23 '26 21:11 Arjun-Ganguly