Feature request: supported, caller-bound way for an MCP/agent integration to send a message into an existing ChatGPT desktop conversation, with typed outcomes
What variant of Codex are you using?
App (ChatGPT desktop, macOS)
What feature would you like to see?
Summary We're building a model-independent coordination layer (NuraHarness) that needs one agent to post a message into an existing ChatGPT desktop conversation and confirm it landed. Inside the desktop app this capability clearly exists: send_message_to_thread and read_thread run through the renderer's dynamic app tool dispatch all day for first-party callers. There is no supported way for an external integration to use it with a host-issued caller identity, and failures come back as an opaque -32000 with no reason or request ID.
Environment
- macOS, ChatGPT desktop 26.1106.51428 (build 26605)
- Bundled codex-app-tools plugin 0.1.6
- Desktop-owned app-server runs over stdio; the standalone daemon control socket refuses connections, so no external client can attach to the Desktop runtime
What we observe
- From an integration, read_thread and send_message_to_thread fail with ProtocolError -32000, "Codex app tool request failed". The desktop log shows dynamic_app_tools_request_failed with "The app tool call ended before producing a result".
- Some failures happen before any dynamic_app_tool_renderer_execution_started event, which fits no renderer window accepting the caller. One send reached the renderer and failed 1 ms later, which fits target resolution returning null.
- On 2026-11-14, 71 of 73 send_message_to_thread renderer starts came from first-party callers, so the path works; it just isn't exposed with a legitimate identity for integrations.
- Even a successful send returns only { threadId }, which isn't dispatch acceptance, so delivery can't be confirmed without a separate read.
- send_message_to_thread is approval_mode "prompt" by default, so in headless runs it's effectively hidden unless named explicitly.
- When the call starts from a ChatGPT chat via a connector, it can be stopped by "This tool call was blocked by OpenAI's safety checks", with no category or request ID (see #52095).
What we're asking for
- A supported, documented way for an authorized integration to send into a specific existing conversation the user owns, bound to a host-issued caller identity rather than one the integration asserts.
- Typed outcomes instead of -32000: NOT_FOUND, ALREADY_RESPONDING, DISPATCH_ACCEPTED, DISPATCH_OUTCOME_UNKNOWN, plus the created message or turn ID when available.
- A request or correlation ID on tool-call failures and on safety-check blocks, so false positives can be reported precisely.
- If this is intentionally out of scope for integrations, a clear statement saying so.
We are not asking to bypass approvals or safety checks, and we haven't modified the app or its trust checks. Related: #47425, #55023, #52095.
Happy to share redacted logs and timestamps privately.
Additional information
No response
A supported integration path would be valuable, but I think one design premise needs to be made explicit before equating "host-issued caller identity" with an authorized send:
Authenticating an integration is not the same thing as establishing that this particular target conversation currently authorizes this particular cross-agent message. A thread can be owned by the same user while its current scope, instructions, delegated participants, and willingness to accept an external write have changed since the integration authenticated. Conversely, absence of an allowed caller should not be turned into a permanent task-level prohibition.
There is a useful boundary already visible in the public Codex tree: the bundled codex_app dynamic-tool config assigns send_message_to_thread an explicit approval_mode: "prompt"; the SDK's ExternalMessage documentation distinguishes external agent/tool content from human user authorization. These are distinct surfaces, not proof of the Desktop implementation; they show why "trusted connector" and "message with the target user's authority" should not silently collapse.
Alternative contract to consider: two independent, auditable bindings, not just one identity + a send result:
- Caller provenance: host-issued integration principal, source thread/run, immutable request ID, and message content/visibility class (external-agent message, never silently reattributed to the user).
- Current target-side grant: a user/host-authorized capability bound to target thread + allowed operation (send / read), scope, expiration or grant generation, and revocation; check its validity at dispatch, not only when the integration connects. Authorization to read must not imply authorization to send. Thread fork/replacement and revocation must not inherit an old grant automatically.
- Outcome evidence:
DENIED_OR_STALE_GRANT,ACCEPTED_BY_TARGET,OUTCOME_UNKNOWN, and, if separately observable,CONSUMED_BY_TARGET_TURN/REJECTED_BY_TARGET. A{threadId}return or network success is not evidence of message consumption or user consent.
Tests that distinguish this from a mere tool exposure fix:
- A legitimate integration can send a permitted external message into an explicitly enabled target, preserving sender attribution.
- The same still-authenticated integration is denied after the target withdraws the grant or changes to a new session generation. A delayed duplicate with the old grant cannot reach the new context.
- A read-authorized caller cannot send; a send-only caller cannot read history. Failure/unknown outcomes preserve request identity and do not get replayed blindly.
- Nonfit: a single foreground first-party action approved directly by the user, with no reusable integration grant, may be adequately served by the existing prompt gate and need no new persistent capability system.
The separation comes from Nakagawa Master's original Memory of Agreement (agreement must carry its causal relationships and possibility of later revision) and Vol. 16 (asynchronous/reconnected state must not silently equate past and current consent). This is a suggested authorization model for the requested interface, not an assertion about hidden Desktop enforcement. It would let integrations work without granting them more standing authority over a conversation than the user actually chose.
Implementation bridge — authenticated integration does not imply a target-thread write grant
A supported cross-thread queue API should admit an integration's message only against a current, target-specific, host-issued delegation. Minimal JS reference guard to place after caller authentication and before queue insertion:
function admitExternalMessage(caller, target, grant, intent) {
if (!caller.hostAuthenticated || !grant?.active || grant.revoked) return false;
return grant.callerId === caller.id &&
grant.targetThreadId === target.id &&
grant.ownerSessionId === target.hostVerifiedOwnerSessionId &&
grant.scope.includes('enqueue-message') &&
grant.currentRevision === target.authorizationRevision &&
intent.kind === 'external-event';
}
Tests: matching caller + target + live owner grant accepts a bounded external event, never a forged human user turn; same API key targeting another thread fails; a grant revoked after authentication or current scope revision change fails; read-only integration remains unaffected. At real enqueue time, the service must re-read/compare revision and atomically append, bind the event's external producer provenance, and preserve an observable deny/reconcile result. All IDs/versions come from the trusted service, not from self-asserted integration JSON. This is a transport-neutral authorization seam, not an existing Codex endpoint or upstream-tested patch.
We have the same integration requirement for Sonde peer messaging. A Desktop agent can resolve its already-open Codex thread through the bundled read_thread tool. Our separate app-server thread/resume test correctly rejected a second writer. We need the background Sonde process to ask the existing Desktop owner to deliver one authorized peer event to that exact thread, without a restart, session transfer, or new login.
Is there a supported caller-bound API for this in the current Desktop build? If so, what is its transport, grant flow, minimum version, and typed result contract? Our acceptance test needs to distinguish accepted, rejected, and unknown delivery and reconcile a retry by delivery ID. Sonde records its durable peer acknowledgment separately; host admission alone is insufficient.
The exact already-open Desktop chat now received our fixed queue wake without a restart or login. We recorded the observed behavior and the remaining per-chat MCP attachment gap in #61773: https://github.com/openai/codex/issues/61773#issuecomment-7247316971
Please provide an official MCP server and CLI for ChatGPT Desktop on both macOS and Windows. I’d like to choose an existing ChatGPT conversation, grant a local tool access to that conversation, and let it send a message and read the reply. A CLI would let me do the same from my terminal.
There’s some irony in OpenAI encouraging developers to make their tools available to ChatGPT through MCP while I can’t find a documented way to use ChatGPT Desktop from my own tools through the same protocol. If OpenAI promotes MCP as a best practice for interoperability, it should hold its own products to that same standard. ChatGPT Desktop would be a good place to lead by example.
Is there a supported route for this specific cross-workspace case? A conversation in a Personal/Plus workspace delegates a task to a published Workspace Agent in a separate Business workspace. The documented trigger API can queue the Business run, and the agent can write its result to a configured destination. The missing step is delivering that result to the exact existing Plus conversation and starting a new turn there, without manual copy-paste or merging the workspaces.
Does ChatGPT Desktop or Work expose a documented, permission-scoped way to do this today, including confirmation that the specific Plus conversation received the result and started processing it? If there is a supported route, which workspace and client prerequisites apply, and what delivery or turn identifier can the caller verify?