Repository navigation
Description
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:
- 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 from6fe2e5ab29b850597378439c60438ed376c67267, plus a dedicated read-onlyread_conversationdescriptor. Not clean current main. Original gateway annotations/permissions are unchanged. - 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.
- Send one message-only TEST_DONE from the Codex-side Agent to the receiver. App uses the existing
ui/messagecontinuation route. - Observe the receiver's new response reporting the error above before bootstrap completes.
- 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
- Can maintainers identify whether the new App-triggered ChatGPT turn incorrectly inherits a previous Code Mode continuation reference, or whether a runtime was torn down? These are hypotheses, not diagnosed causes.
- What supported diagnostics can capture the failed continuation/request ID and initialization/teardown boundary without exposing credentials or private chat history?
- Is there a supported per-chat way to create a fresh execution context for an App follow-up? We have not applied local Codex code-mode configuration flags to the ChatGPT/Work receiver or disabled safety checks.
- Receiver preparation had used the dedicated read successfully; this failed automatic turn never reached that read. Therefore the experiment does not establish that the dedicated descriptor fixes or fails the separate safety-classification issue.
- Exact error literal was not found by targeted read-only search in the tested backend source or the three relevant installed desktop artifacts (
app.asar,codex.exe,codex-code-mode-host.exe). This does not prove it originates remotely: generated/compressed strings and other artifacts remain possible. - Related backend discussion: 希望支持 ChatGPT 和 Codex 自动双向通信,目前消息能保存,但无法唤醒 ChatGPT yyjeqhc/webcodex#1013
- Separate earlier safety-block evidence: [ChatGPT → Codex][Remote MCP] Opaque safety block propagates into repeated refusal without native approval or recovery #52095 (comment) . Different error and stage; no same-cause claim.
- Code Mode dispatch worker stops at sampling end while yielded cells still need subsequent tools #45945 concerns a native CLI yielded-cell dispatch worker lifecycle. This report concerns a newly App-triggered ChatGPT/Work receiver turn, so we do not assume the same mechanism or reuse that patch.
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
suchenglong1988 commentedon Oct 12, 2026
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):
e11a6794-4c7c-4db2-af58-00531b632cc3.f2533549-65aa-45c1-ae08-ca65836a8edb(2026-10-12 around 06:51:17 UTC).437e8b56-c639-46ee-8d03-5a5a3ecfc375(around 07:01 UTC).a06781a3-aa51-4e09-920f-d3296a306164(around 00:48–00:51 UTC).Static observations on the installed 26.1007.2314.0 package, not a diagnosis:
turnTrigger: mcp_app_follow_upand passes the App prompt/untrusted-source wrapper to the currently registered composer submit callback.nextby default,variantfor regeneration, andcontinuewhen an explicit continuation object exists. We do not have the failed RD1 request, so we cannot say which action/parent was actually submitted.read_threadChatGPT projection groups displayed messages by exposed user-role messages. Its grouperror:nullandcompletedvalues 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, anderror:nulldoes 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.
suchenglong1988 commentedon Oct 13, 2026
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:
034b3c92-04f5-4884-9c1c-f33c919838d88d8e3d96-898c-468a-88c6-861522c21f25gpt-6-thinkingeb3252df-fbd7-42fb-91af-5c94f9129f4d2f1a4567-2102-4364-bd70-3e1e576ef5f3gpt-6-thinking5c2ceff5-23eb-45f4-b08e-c3b45286994101142b61-63b9-442d-ba1a-733f32103e55gpt-6-thinkingFor the failed App request,
turn_exchange_idequals the working_turn_id above. The App notification is persisted as author roletool, nameui://webcodex/agent-continuation/v20, withchatgpt_sdk_followup_prompt=true. It shares that request/working-turn identity with the error responsef2533549-65aa-45c1-ae08-ca65836a8edb.There is a tool-result record named
functions.exec, messagee9d711b8-7f5a-4306-b814-24b0466e6d32, on the same failed request. Its metadata parent_id is00993146-7446-42af-b7db-bff9990efc94, but that call is absent from the loaded history and the tool-result content isparts:[""]. 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.
suchenglong1988 commentedon Oct 13, 2026
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_workwas not exposed. It could seelocal.handoffwithprompt: stringandreason: 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:
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.