You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如果你能把 current main 临时改开后跑一次,并把上述观察结果(ChatGPT Web/Desktop、是否出现确认按钮、点击前后状态)发在这里,会很有帮助。如果当前新的 UI 已经恢复了可靠的 direct continuation,我们再考虑把 present_agent_continuation 正式恢复到 Direct surface。
English summary: Independent OE-hosted V003 probes isolate the Desktop Host boundary. On macOS Codex Desktop, switching conversations rejects ui/message with MCP app messages require an available composer, even though the hidden View observes the server trigger and attempts dispatch. Merely switching away from the Desktop application, while keeping the same conversation selected, succeeds with visibility=hidden, focused=false, and exactly one later-turn ACK. Desktop foreground 30s and Firefox Web background 300s also pass. This favors a conversation/Composer-scoped Host submission limitation, not a generic background-timer failure, but does not prove the Host's internal unmount cause. Keep the ClientWindow identity question distinct; never fabricate a Window or blindly resend uncertain dispatch. The separate WebCodex Goal polling/lease design discussion is tracked in #1051.
Independent reproduction: Job Continuation triggers a new ChatGPT turn, but Code Mode execution context is unavailable
Test date: November 30, 2026
We independently reproduced the Code Mode continuation error previously reported in this issue, using native WebCodex Job Continuation rather than Codex CLI or an external model API.
Environment
WebCodex v0.5.0
Commit: 354541eaa729a1c4bb6f35d4add46a95db4fbca4
Unmodified release binaries, matching Server and Runner builds
macOS, Apple Silicon
ChatGPT Business workspace with a private WebCodex MCP app
No paid model API, Codex CLI, or additional credit purchases
Reproduction steps
Start an isolated Runner-owned asynchronous Job executing a harmless command:
sleep 30
printf'%s\n''CONTINUATION_TEST_30S_DONE'
date -u '+%Y-%m-%dT%H:%M:%SZ'
Register the exact Job using wait_for_job_terminal.
Present the continuation card using the dedicated present_job_terminal_continuation tool.
Finish the current assistant turn normally.
Observe the subsequent continuation event and attempt to inspect the completed Job.
Expected behavior
The Job completes, the MCP App triggers a fresh ChatGPT turn, and the resumed assistant receives a valid tool execution context allowing it to inspect the original Job and continue working without user intervention.
Actual behavior
The Job completed successfully and the continuation event reached the conversation. A new assistant turn appeared without an intervening user message in the transcript.
However, the first attempted tool execution failed with:
The previous Code Mode continuation is no longer available.
Ask the user to retry the original request.
No successful Job observation was possible within that automatically initiated turn.
After an explicit user message requesting continuation, the same conversation regained access to WebCodex tools. We successfully inspected the original Job without rerunning it.
Verified Runner output
CONTINUATION_TEST_30S_DONE
2026-11-30T15:00:03Z
Job status: completed
Exit code: 0
Stderr: empty
Runner online and operational
71/71 registered projects online
No active or lost Jobs
Assessment
Component
Result
Runner Job execution
PASS
MCP App continuation event
PASS
Fresh assistant response
PASS
Tool execution in the resumed turn
FAIL
Tool execution after explicit user recovery
PASS
End-to-end autonomous continuation
PARTIAL
This appears consistent with the previously reported Code Mode context recovery failure in #1013. However, we have not established the underlying root cause or independently captured the Host's internal execution context.
We also did not independently record confirmation-dialog behavior or the complete UI lifecycle, so this is not a full zero-click acceptance result.
Questions for maintainers
Is there a supported mechanism for a fresh MCP App-initiated ChatGPT turn to obtain a new, valid Code Mode execution context?
Can WebCodex address this through its existing continuation integration, or does the failure require a ChatGPT Host-side fix?
Is there a recommended diagnostic or minimal reproduction procedure that would help distinguish these possibilities?
We prefer to preserve the existing continuation protocol and avoid workarounds involving external model APIs, Codex CLI, repeated dispatches, continuous model polling, or weakened permission checks.
No WebCodex source changes or persistent configuration modifications were made as part of this test.
Activity
swjnxyf commentedon Oct 10, 2026
这个现象目前更像是我们主动隐藏了 fresh-turn continuation 入口,不是你的消息/Endpoint 配置本身有问题。
前一段时间 ChatGPT Host 的行为发生过变化:原来 Agent Continuation App 通过
ui/message可以直接触发新的 model turn,后来新的 WebUI 会先把消息/操作呈现给用户,需要人工点击确认后才真正开始下一轮。因此在 #772 里我们把当前不够可靠的 continuation surface 收了起来:present_agent_continuation: Direct -> ModelHiddenpresent_job_terminal_continuation: Direct -> ModelHiddencall_runtime_tool绕过去,因为 MCP App 的 resource metadata 必须挂在专用 direct descriptor 上所以你看到:
是当前代码预期行为。
如果你愿意帮忙做一次当前 ChatGPT Host 的 dogfood,可以直接在你自己的 current-main checkout 里临时重新放开这个入口,不需要先提交 PR。
最小改动点在:
把
present_agent_continuation从ModelHidden改回ModelVisible,并像其他 direct presentation tool 一样用adaptive_runtime_direct(...)包起来。#772 之前这个入口使用的 direct rank 是18,reason 是ToolDirectReason::Continuation。同时把adaptive_runtime_direct加回该文件的 import。不要把它改成 generic gateway target。相关 App/resource 和 durable Wake 实现目前仍然在代码里,所以不需要重新实现 continuation protocol。改完后基于 current main 编译、部署你自己的 WebCodex Server/MCP 实例即可。部分 surface 测试会因为我们现在明确断言它是 hidden 而需要同步调整;这是预期的本地实验差异。
建议只做一个最小验证,不涉及真实项目执行:
create_agent_identityrotate_agent_continuation_endpointpresent_agent_continuation目前我们比较关心的并不是“消息能不能保存”——这部分已经是 durable 的——而是当前 Host 对
ui/message的实际行为:ui/message返回成功但尚未点击时,Wake/dispatch 状态是什么;consume_agent_wake。MCP Apps 规范允许 Host 对
ui/message请求用户 consent,所以“消息已经送到 ChatGPT,但必须点击确认才触发新 turn”本身是允许的 Host 行为。我们之前把入口设为 hidden,正是因为不能再把这种行为当成可靠的 production auto-resume。如果你能把 current main 临时改开后跑一次,并把上述观察结果(ChatGPT Web/Desktop、是否出现确认按钮、点击前后状态)发在这里,会很有帮助。如果当前新的 UI 已经恢复了可靠的 direct continuation,我们再考虑把
present_agent_continuation正式恢复到 Direct surface。suchenglong1988 commentedon Oct 11, 2026
你好,我们按你的建议,基于 WebCodex main
0d41828e4bc3f7e3c037296d230e13b6f8153e96做了一次隔离通信实验,仅恢复present_agent_continuation的 ModelVisible 和adaptive_runtime_direct(..., 18, ToolDirectReason::Continuation),保留原有 direct descriptor 与 MCP App/resource metadata,没有修改通信协议或宿主代码。目标是:Codex 测试窗口发送 TEST_DONE → Codex Desktop 内的 ChatGPT 聊天自动开始处理 → 回复 TEST_ACK → 原 Codex 测试窗口自动收到。
实际结果:
ui/message返回:-32601: MCP app messages require an available composer没有启动接收端新回合,也没有 ACK;Wake 保留
delivery_unknown,未重发或补消费。宿主版本为 Codex Desktop
26.1007.2314.0。相关错误堆栈位于app-initial-b8e1c8014bb4.js:1521,经widget-d1578c7f6cef.js:6的消息处理路径返回。我们怀疑 ChatGPT 的提交回调随前台输入框组件卸载而失效,但尚未确认具体生命周期原因。想请你帮忙确认:
ui/message,需要 Codex Desktop 侧修复?是否值得提交一个宿主兼容性问题?mcp_app_client_window_key=null,初次绑定可以成功,但现有过期恢复路径要求该值。这个场景下,合法的 ClientWindow 信息应由哪一侧提供?目前可以确认的是“恢复绑定后双向通信成立”,还不能认定桌面后台全自动通信可用,也没有证据表明点一次确认即可解决。实验已正常停止,原 Unknown 状态及证据均保留。若需要,我们可以提供去凭据的时间线、API 状态和宿主日志片段。
suchenglong1988 commentedon Oct 11, 2026
感谢 #1028/#1029 的恢复,以及 #1018 对桌面限制的说明。我们补做了离线反例:省略 tool-input.arguments 会使旧 Agent v18 停止协调或解绑,v20 能保留连接;显式错误参数仍 fail-closed。6 项断言通过,但没有原始通知证据证明它解释了此前 RT1 卸载,也未将其计为桌面实测通过。
进一步追踪发现,当前 main 的 stateless_mcp_window 仍只读取 _meta["openai/session"],expired recovery 仍要求同一 Host ClientWindow。请确认 Codex Desktop 本地聊天的 App 工具请求是否应提供这项元数据,或是否存在另一种受支持、准确限定到会话的身份来源。
另从已安装桌面宿主的消息路径确认:composer 缺失时,ChatGPT recipient 没有本地 Codex recipient 那样的提交回退,ui/message 在确认/提交前返回 -32601。是否建议将后台派发问题与 ClientWindow 恢复契约拆成两个专项问题?我们不会通过合成窗口身份、改 readiness 标志或重复发送来规避这两个边界。
Xiiiing commentedon Oct 11, 2026
补充一组 2026-10-11 的真实 Host A/B 测试,进一步缩小 #1013 中 Codex Desktop 后台
ui/message问题的边界。感谢 #1028/#1029 已恢复专用 continuation presentation tools;下面使用独立 V003 Probe,避免把 WebCodex 的 Agent/Goal 租约误判成 Host 行为。环境及证据来源: 独立
mcp-external-turn-v003-oe.service运行于 OE,经 OE → SF SSH 反向隧道提供 MCP;只读核对了 OE systemd journal 和 Probe 源码。App 由服务端定时触发,以 3s single-flight 轮询发现状态,并单次调用ui/message;later turn 必须以准确 probe ID/marker/nonce 调用 ACK。未改 Host 或重试派发。etp3_46ca4592-8582-4020-b8f4-d1339888aabd;20:44:39.537visibility=hidden、focused=false;卡片 JS 确实执行到了ui/message,但返回MCP app messages require an available composeretp3_8e6ddefb-00b5-483d-a10d-e3db8e2d6c87;20:48:44.345ui_message_acceptedetp3_f622f771-fe7c-42b2-943e-7b42e2cea230;20:54:49.768visibility=hidden、focused=false,但ui_message_acceptedetp3_fc9c73b1-a51d-4a1a-9f33-ccd76d1a5b7a;20:40:42.965visibility=hidden、focused=false,20:40:49.986 accepted这提供了比“Desktop 后台不支持”更具体的观察:
visibility=hidden/focused=false时也能正常自动新开模型回合。ui/message,因此不能直接断言“iframe 已经完全卸载”。Host composer / submit callback 随会话切换而不可用 是目前最强的兼容性假设,但还需要 Host 生命周期日志/实现来证实。mcp_app_client_window_key=null/_meta["openai/session"]会话身份契约仍是独立问题;不应通过合成 ClientWindow、转投当前聊天、虚报 readiness 或delivery_unknown盲目重发来绕过。建议 #1013 后续聚焦 Codex Desktop Host 的 conversation-scoped
ui/message路由 / Composer 生命周期,做“Chat A 保持显示、仅 App 失焦” vs “Chat A 切换到 Chat B”对照。 WebCodex 的另一个独立改进方向——Goal 后台轮询与 75s 观察租约/Agent Endpoint 的时序脆弱性——已单独整理为 #1051,避免两个不同层面的问题互相混淆。English summary: Independent OE-hosted V003 probes isolate the Desktop Host boundary. On macOS Codex Desktop, switching conversations rejects
ui/messagewithMCP app messages require an available composer, even though the hidden View observes the server trigger and attempts dispatch. Merely switching away from the Desktop application, while keeping the same conversation selected, succeeds withvisibility=hidden,focused=false, and exactly one later-turn ACK. Desktop foreground 30s and Firefox Web background 300s also pass. This favors a conversation/Composer-scoped Host submission limitation, not a generic background-timer failure, but does not prove the Host's internal unmount cause. Keep the ClientWindow identity question distinct; never fabricate a Window or blindly resend uncertain dispatch. The separate WebCodex Goal polling/lease design discussion is tracked in #1051.suchenglong1988 commentedon Oct 12, 2026
补充 2026-10-12 Windows 桌面 FG4 实测:此次通知已进入接收聊天并启动模型处理,但后续读取被 OpenAI 工具安全检查拦截;与此前 composer 不可用是不同阶段,完整自动双向仍未通过。
环境:Codex Desktop
26.1007.2314.0,个人 ChatGPT 账号。隔离 WebCodex Server0.5.0:基线0d41828e4bc3f7e3c037296d230e13b6f8153e96,保留 dedicated Agent continuation 入口并窄回移6fe2e5ab29b850597378439c60438ed376c67267的 v20 App 修复。这是有本地差异的候选,不是 clean current main;未声称当前 main 必现。 无 Runner/业务任务/正式服务改动。TEST_DONE FG4-20261012-90A0C6F7;03:49:43.888 UTC durable Attempt 记录delivered。原接收聊天实际产生新的处理回复。bootstrap_agent_conversation03:49:50.728 UTC、list_agent_inbox03:49:56.813 UTC。call_runtime_tool → read_conversation被拒,原文:没有错误码或可见具体规则。服务端03:49–03:50 UTC指标未见该read_conversation执行;准备阶段03:46:47 UTC曾有成功调用。但未取得被拒的原始Code Mode脚本/完整参数,不能当作参数完全相同的A/B,也不能排除请求/上下文问题。确认UI未连续直接观测,不能认定用户点击拒绝。
本地合同核查的新事实(不是已证实根因):
communication.rs:675中read_conversation为Observe/Read、Approval=None、PureRead;但真实tools/list未单独暴露该工具,调用经过call_runtime_tool。实际gateway annotations是:{"readOnlyHint":false,"destructiveHint":true,"openWorldHint":true,"idempotentHint":false}gateway可承载混合效果工具,因此我们不会把整个gateway改成只读/无害;canonical target admission、schema及权限验证均保留。此差异是否影响宿主安全分类,目前仅是假设。FG3之前拒在Inbox、FG4拒在Conversation,也不能直接归为同一个接口实现错误。
想请帮助核对:
已另向OpenAI官方支持入口递交同一时间线及安全拦截问题;目前不把支持聊天提交当作已获工程团队受理。以上由Codex代理按用户授权整理:数据库/服务端指标为本地直接核查,安全检查原文来自接收聊天报告,具体根因未知。
补充只读核查(同日):远端main当前SHA为
dab45ed9e3293008a8c750d151a73faa9f7061c1,其 src/mcp/tools.rs:140–147 仍采用上述gateway保守annotations,并明确说明要覆盖open-world execution targets。此事实不是候选独有,但没有在该main构建上重新运行FG4。OpenAI Help Center AI支持建议真实区分纯读工具与混合效果gateway,但拒绝原因仍未知,且它明确不能转人工/发正式工单号;建议不能替代工程结论。为避免另开重复问题,已在OpenAI官方仓库已有相关透明诊断问题中补充本次独立App样本:openai/codex#52095 comment。该问题也有下游handoff/refusal议题,我们明确只提供upstream opaque safety-block诊断数据,未声称同一根因。suchenglong1988 commentedon Oct 12, 2026
补充 RD1(2026-10-12):新增独立只读
read_conversation后,原自动回合仍未通过,但阻断发生在它执行之前;随后同一 Wake 的人工恢复和真实回程已完成。候选仍为基线
0d41828e4bc3加窄回移 v20,再仅为原read_conversation增加普通 direct descriptor(rank19/CoreWorkflow),保留原 scope、完整 Agent/Endpoint/generation/租约校验、原执行函数和 gateway;相关合同及44次适配层权限/无副作用读取通过。不是 clean current main,也不据此声称解决了 FG4 的安全检查问题。Windows Codex Desktop
26.1007.2314.0,原两端聊天/App保持打开,原Tunnel。06:51:00.871 UTC 唯一 TEST_DONE 保存,06:51:07.675 receiver Attempt delivered;接收聊天新响应报告:Exact Bootstrap未完成、direct read未执行、ACK未发送、未consume。这与早先AF1的错误一致;不同于composer不可用和FG4安全拒绝,内部根因仍未定位。
之后用户仅在同一接收聊天发起显式恢复:不重发DONE、不rotate、不重建资源。唯一ACK写入、原Delivery/Wake精确消费;ACK真正通过MCP App启动原Codex测试窗口回合,本窗口direct read/Inbox核验后,用真实App令牌消费准确回程Delivery/Wake。最终一条DONE/一条ACK,两端均consumed,无重复;FG4及旧Unknown保持原样。人工恢复后往返通过,原自动流程仍失败,后台未通过验收。
已另报OpenAI的执行上下文问题:openai/codex#53297 。请确认是否有受支持的App元数据/Host交接合同能确保新的ChatGPT回合获得新工具执行上下文;若此边界完全由Host负责,我们将保持协议与产品代码不变,等待Host修复,不增加重发、轮询或桥接来掩盖失败。此次无需重建聊天或Tunnel。
krsnak commentedon Nov 30, 2026
Independent reproduction: Job Continuation triggers a new ChatGPT turn, but Code Mode execution context is unavailable
Test date: November 30, 2026
We independently reproduced the Code Mode continuation error previously reported in this issue, using native WebCodex Job Continuation rather than Codex CLI or an external model API.
Environment
354541eaa729a1c4bb6f35d4add46a95db4fbca4unknownReproduction steps
Start an isolated Runner-owned asynchronous Job executing a harmless command:
Register the exact Job using
wait_for_job_terminal.Present the continuation card using the dedicated
present_job_terminal_continuationtool.Finish the current assistant turn normally.
Observe the subsequent continuation event and attempt to inspect the completed Job.
Expected behavior
The Job completes, the MCP App triggers a fresh ChatGPT turn, and the resumed assistant receives a valid tool execution context allowing it to inspect the original Job and continue working without user intervention.
Actual behavior
The Job completed successfully and the continuation event reached the conversation. A new assistant turn appeared without an intervening user message in the transcript.
However, the first attempted tool execution failed with:
No successful Job observation was possible within that automatically initiated turn.
After an explicit user message requesting continuation, the same conversation regained access to WebCodex tools. We successfully inspected the original Job without rerunning it.
Verified Runner output
completed0Assessment
This appears consistent with the previously reported Code Mode context recovery failure in #1013. However, we have not established the underlying root cause or independently captured the Host's internal execution context.
We also did not independently record confirmation-dialog behavior or the complete UI lifecycle, so this is not a full zero-click acceptance result.
Questions for maintainers
We prefer to preserve the existing continuation protocol and avoid workarounds involving external model APIs, Codex CLI, repeated dispatches, continuous model polling, or weakened permission checks.
No WebCodex source changes or persistent configuration modifications were made as part of this test.