Skip to content

[Windows Desktop ChatGPT/Work][MCP Apps] App-triggered turn fails with previous Code Mode continuation unavailable; same-Wake human recovery works #53297

Open

Description

@suchenglong1988

What version of the Codex App are you using?

Windows package 26.1007.2314.0, rechecked from the running process's package path. About dialog and bundled CLI version were not collected. The executable's Chromium/Electron file version is not presented as the Codex version.

What subscription do you have?

Personal ChatGPT account; exact subscription tier and failing receiver model were not captured.

What platform is your computer?

Windows 11 Pro 25H2 x64, build 26200.9457. Receiver is a ChatGPT/Work chat inside Codex Desktop, not a local Codex task and not the separate ChatGPT Windows application.

What issue are you seeing?

An MCP App follow-up reaches the original desktop ChatGPT chat and produces a response, but its attempt to process the Wake fails with:

The previous Code Mode continuation is no longer available.
Ask the user to retry the original request.

The receiver reports that exact Wake bootstrap was not completed, the dedicated read_conversation was not executed, and no ACK or consumption occurred. This is distinct from an unavailable composer and from an upstream safety-check rejection. The error text is from the receiver response supplied by the user; we do not have its failed execution script, continuation identifier, internal request ID, or runtime teardown reason.

A new human request in the same receiver chat then processed the same existing message/Wake, without resending TEST_DONE, rotating Endpoints, changing generation, changing the server, or creating chats/Tunnels. It wrote exactly one ACK and consumed the original Delivery/Wake. That ACK actually initiated an MCP App turn in the exact original Codex test chat, where tools worked and both return Delivery and exact Wake were consumed using the real App envelope token.

What steps can reproduce the bug?

Observed sequence, not a minimal deterministic reproduction:

  1. Connect a private ChatGPT Apps MCP plugin over Secure MCP Tunnel. Backend is an isolated modified WebCodex 0.5.0: baseline 0d41828e4bc3f7e3c037296d230e13b6f8153e96, narrow Agent continuation-v20 backport from 6fe2e5ab29b850597378439c60438ed376c67267, plus a dedicated read-only read_conversation descriptor. Not clean current main. Original gateway annotations/permissions are unchanged.
  2. Prepare receiver and return Agents in the two original desktop chats. End preparation normally, keep both original App views mounted, verify exact Endpoint/generation1 bindings and live leases. Receiver route and Codex foreground process are observed at send time; this is a snapshot, not continuous proof of popout focus.
  3. Send one message-only TEST_DONE from the Codex-side Agent to the receiver. App uses the existing ui/message continuation route.
  4. Observe the receiver's new response reporting the error above before bootstrap completes.
  5. Send one explicit human recovery request in that same receiver chat. Process only the existing Wake/message, send one same-ID ACK, and consume exact deliveries/Wakes. Observe real ACK-triggered turn and exact consumption in the original Codex chat.

RD1 actual timestamps, 2026-10-12 UTC:

  • 06:51:00.871: exactly one TEST_DONE saved.
  • 06:51:07.675: receiver's MCP App attempt recorded delivered. This alone is not end-to-end success.
  • Receiver's App-triggered response reports stale Code Mode continuation; subsequent read-only audit found one DONE, no ACK, no consumption.
  • 07:01:18.462: after explicit human recovery, one ACK saved, replying to the original DONE.
  • 07:01:26.074 / 07:01:33.285: receiver Delivery / Wake consumed.
  • 07:02:28.034 / 07:02:36.368: original Codex chat's ACK Delivery / return Wake consumed in its actual MCP App initiated turn.

Final state: exactly two messages, two Deliveries, two Wakes and two attempts; all exact delivery/continuation states consumed. No ACK-of-ACK or duplicate loop. The original autonomous attempt remains failed; the recovered path is successful and is not claimed as autonomous success.

An earlier AF1 sample on the same desktop package, using the earlier v18 experimental backend, reported the same continuation error and also recovered through one explicit host request. This is corroboration across two different backend candidates, not a claim of deterministic reproduction or proof of the internal cause.

What is the expected behavior?

A new accepted MCP App follow-up should get a usable tool execution context, or an explicit supported limitation/recovery path. It should not require the model to resume an unavailable prior Code Mode continuation.

Additional information / questions

No product/installed desktop code, formal services, credentials, account permissions or global trust were modified for this investigation. No new test messages were sent during diagnosis. Raw private logs, contact email, Tunnel identifiers, tokens and full chat history are excluded. Posted by Codex with the user's explicit authorization.

Activity

  1. added
    bug
    app
    windows-os
    mcp
    app-server
    tool-calls
    on Oct 12, 2026
  2. suchenglong1988 commented on Oct 12, 2026

    @suchenglong1988
    Author

    Read-only follow-up, with no new test messages or product changes.

    Diagnostic correlation IDs from the existing receiver responses (opaque message IDs only; no conversation contents, credentials or consume tokens):

    • RD1 preparation response: e11a6794-4c7c-4db2-af58-00531b632cc3.
    • RD1 App-triggered failure response: f2533549-65aa-45c1-ae08-ca65836a8edb (2026-10-12 around 06:51:17 UTC).
    • Same-Wake human recovery response: 437e8b56-c639-46ee-8d03-5a5a3ecfc375 (around 07:01 UTC).
    • Earlier AF1 App-triggered failure response: a06781a3-aa51-4e09-920f-d3296a306164 (around 00:48–00:51 UTC).

    Static observations on the installed 26.1007.2314.0 package, not a diagnosis:

    • The MCP widget constructs turnTrigger: mcp_app_follow_up and passes the App prompt/untrusted-source wrapper to the currently registered composer submit callback.
    • The reviewed completion builder selects next by default, variant for regeneration, and continue when an explicit continuation object exists. We do not have the failed RD1 request, so we cannot say which action/parent was actually submitted.
    • The separate response-resume module concerns an existing response stream; that is not evidence of Code Mode execution-context allocation or validity. No Code Mode ID was found in the reviewed bridge/continuation hint fields; request/history propagation remains possible.
    • Important observability limit: the desktop read_thread ChatGPT projection groups displayed messages by exposed user-role messages. Its group error:null and completed values are constructed summary values. RD1's preparation and App-error response appearing in one such group does not prove the same runtime turn was reused, and error:null does not refute the receiver's tool execution error.

    Could internal triage correlate the failure versus recovery responses above and compare: submitted action/parent, App-source handling, Code Mode session create-versus-resume choice, and the original session's allocation/teardown/expiry reason? We seek the supported fresh-context contract; we have not changed source trust, approval behavior, local Codex configuration, installed assets, or backend protocol to force a result. Static installed-package identifiers are included only to locate the relevant implementation; no raw proprietary bundle or private chat/log dump is attached.

  3. suchenglong1988 commented on Oct 13, 2026

    @suchenglong1988
    Author

    New evidence obtained on 2026-10-13, without sending another test message: we inspected the already-existing receiver conversation's loaded document data through browser developer diagnostics. This is retrospective inspection of the original desktop sample, not a browser-based rerun.

    The persisted metadata distinguishes three requests:

    Phase request_id working_turn_id model
    Preparation completed normally 034b3c92-04f5-4884-9c1c-f33c919838d8 8d8e3d96-898c-468a-88c6-861522c21f25 gpt-6-thinking
    App follow-up / Code Mode error eb3252df-fbd7-42fb-91af-5c94f9129f4d 2f1a4567-2102-4364-bd70-3e1e576ef5f3 gpt-6-thinking
    Human recovery succeeded 5c2ceff5-23eb-45f4-b08e-c3b452869941 01142b61-63b9-442d-ba1a-733f32103e55 gpt-6-thinking

    For the failed App request, turn_exchange_id equals the working_turn_id above. The App notification is persisted as author role tool, name ui://webcodex/agent-continuation/v20, with chatgpt_sdk_followup_prompt=true. It shares that request/working-turn identity with the error response f2533549-65aa-45c1-ae08-ca65836a8edb.

    There is a tool-result record named functions.exec, message e9d711b8-7f5a-4306-b814-24b0466e6d32, on the same failed request. Its metadata parent_id is 00993146-7446-42af-b7db-bff9990efc94, but that call is absent from the loaded history and the tool-result content is parts:[""]. Thus we still cannot recover the failed script or infer the inner MCP arguments. The continuation error text comes from the receiver's final response, not from a recovered raw tool error.

    This confirms a new ChatGPT request and working-turn identity for the App follow-up, so absence of a new chat-level turn is insufficient to explain the failure. It does not demonstrate that a fresh Code Mode execution context was allocated: no code_mode_session_id is exposed in this loaded data. Preparation, App failure and recovery used the same model, so this particular comparison has no model-switch confound.

    Please use the failed request ID to inspect the Code Mode continuation lookup / allocation boundary, especially the SDK App tool-follow-up path versus the subsequent human request. We have not relabeled App content as human input, replayed a Wake, changed trust/approvals, modified installed assets, or invoked private submission endpoints. Only the selected correlation metadata is retained; raw conversation data and credentials are excluded.

  4. suchenglong1988 commented on Oct 13, 2026

    @suchenglong1988
    Author

    Could OpenAI confirm a supported way to use MCP Events in the same existing desktop ChatGPT conversation, as an alternative to the failing App-follow-up path reported here?

    Our requirement is strict: the original desktop ChatGPT chat must actually receive and process the event, preserving its conversation ID. Creating another Work chat, handing execution to another agent and copying the result back, or automatically submitting a human-style recovery prompt does not meet the requirement.

    The MCP Events documentation says desktop support requires Work with Cloud selected. Our existing receiver is an ordinary ChatGPT chat on package 26.1007.2314.0; the user sees only the ChatGPT/thinking-effort controls, not a Chat/Work or Cloud switch.

    We made one capability-only inquiry in that original chat. It reported that local.continue_in_work was not exposed. It could see local.handoff with prompt: string and reason: string, but its description did not specify whether it preserves the conversation ID or requires confirmation. This is the receiver's inventory report, not proof of a global product limitation. We have not called handoff.

    Please clarify these two alternatives:

    1. In-place conversion: Can this existing ChatGPT conversation be converted to Work + Cloud while retaining exactly the same conversation ID? If supported, what official UI/tool entry should we use, what account/rollout prerequisites apply, and would it create any separate execution chat or backup conversation? A one-time user confirmation for setup is acceptable; per-event manual recovery is not.
    2. Direct Events support: Can the existing ordinary ChatGPT chat subscribe to MCP Events without conversion? If so, please identify the supported configuration/capability and whether event processing remains in that same conversation rather than a separately created task chat.

    If neither is currently supported, please state that explicitly so we can stop this alternative instead of implementing server-side Events against an unavailable host workflow. We are not asking to bypass consent, trust boundaries, or access controls.

    No new chat, subscription, handoff, or TEST message was created during this eligibility check. We will keep the original chat, Tunnel, and existing experiment evidence intact while awaiting the supported route. The user explicitly authorized this clarification request.

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

    appapp-serverbugmcptool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions