ChatGPT Apps SDK widget fails on first render despite HTTP 200; unchanged reference renders on “Try again”

Hi, I’m building a private ChatGPT MCP app and would appreciate help identifying the next meaningful diagnostic step for a widget-rendering failure.

Environment:

  • ChatGPT Web, private/developer-mode MCP app, OAuth-protected integration.
  • MCP server hosted in isolated Vercel staging; SDK-based reference widget using @modelcontextprotocol/ext-apps@2.0.3.
  • The minimal reference advertises a ui:// resource in _meta.ui.resourceUri (with the matching compatibility output-template pointer) and serves text/html;profile=mcp-app.
  • This is not a public release or production deployment.

Observed on 17 October 2026:

  1. A real ChatGPT tool call ran, but the host displayed “Couldn’t display [app name redacted].” Not even a deliberately visible pre-JavaScript “PRE-INITIALIZATION” marker appeared.
  2. A retained browser GET to /backend-api/ecosystem/widget at 07:53:31.221 UTC returned HTTP 200 after approximately 10.76 seconds, with the expected template pointer. A separate server-side MCP resources/read check also returned the expected HTML successfully.
  3. Later, after the controlled test had ended and staging had been reprotected, I clicked “Try again” in the same conversation. Without changing the reference-widget code, it rendered the pre-initialization marker, initialized the SDK, reported host readiness and displayed the fixed sample result (persisted:false).
  4. The successful retry’s Network capture was not retained. I cannot establish which host lookup, iframe, CSP or bridge step failed initially, or whether this was timing, cache, app-definition/session binding or another cause.

Other relevant evidence: protected text-only MCP tool calls, model-authored output and verified durable save/readback worked in ChatGPT. The larger authored receipt widget failed to render in earlier trials too. Thus this is not evidence that the entire MCP/auth/backend pipeline is broken, but it also does NOT prove a ChatGPT host defect.

Questions:

  1. For HTTP 200 from /backend-api/ecosystem/widget with the expected template pointer but no visible pre-JS marker, what is the most discriminating host-side diagnostic for template resolution versus iframe creation versus script execution? Does 200 confirm any of those later stages?
  2. Could app/tool/session binding or approval-state transitions explain an initial failure followed by a successful same-conversation retry? What fields could be checked in an EXISTING sanitized HAR without exposing credentials?
  3. An October 9 OpenAI response mentioned a fix for lost linked-tool identity causing “HTML asset not found.” That report involved a different HTTP failure. Is this 200-response symptom known to be covered by that fix, or should it be handled separately?

Related discussions (similar symptoms, not confirmed common root causes):

I have an existing private OpenAI Support case (#17389636). Support has received the sanitized initial-failure HAR and failure/success screenshots. I will not publish HAR files, authentication data, private conversation links or infrastructure identifiers here. Is there a specific host-side event or safely shareable observation that would allow Support or an Apps SDK engineer to discriminate these failure stages without another staging reactivation?

Thanks for any concrete guidance.

We see the same issue and captured HAR evidence that may help narrow it down.

Setup. Developer-mode app, connector asdk_app_6ae5a19acee88191a8d67a54177e997d, MCP endpoint layerpx2-api-staging.up.railway.app/connect-ai/mcp, template ui://layerpx/tree/v29.html (later v30–v33), mimeType text/html;profile=mcp-app, Chrome desktop.

Symptom. The first render of a new widget instance frequently shows “Couldn’t display ”. One “Try again” usually renders the same tool result without any change on our side.

What the HAR shows (2026-11-05). Every failed attempt is the sandbox document request

GET mcp-endpoint-77b6fc27e4c95878fa2e9548a0665eab.web-sandbox.oaiusercontent.com/?app=skybridge&locale=en-US&deviceType=desktop&unsafeSkipTargetOriginCheck=true&backgroundMode=transparent

with timings.blocked ≈ 20 000 ms, dns/connect/ssl = -1, send/wait/receive = 0, result net::ERR_ABORTED (type document). The request never leaves the browser queue; it is aborted after ~20 s.
Examples (UTC): 09:59:09, 09:59:29, 10:11:02, 10:11:22, 10:13:15; 13:17:39, 13:17:59, 13:20:05, 13:20:22, 13:23:17.

What succeeded before that. GET /backend-api/ecosystem/widget?... → 200 (935 133 bytes, our HTML); our server answered tools/call show_tree and resources/read with 200 in 40–150 ms (server log available). In a second conversation the host served the template from its cache (no resources/read reached us) and the failure still happened.

Questions for the OpenAI team.

  1. Is there a known issue with the sandbox iframe document load in developer mode (stall + abort after ~20 s)?
  2. Is there a per-origin limit for web-sandbox.oaiusercontent.com (e.g. several widget instances in one conversation) that would queue the document request?
  3. Is there anything on the app side (template size ~0.9 MB, _meta.ui, ui.domain, CSP) that influences this stage, before our document is loaded?

We can provide the sanitized HAR and exact timestamps on request.