When an MCP resource for a ChatGPT app has the openai/widgetPrefersBorder metadata set to true, it causes an app embedded in ChatGPT to randomly have an issue after going into fullscreen mode in which the app is not clickable in any area that is outside the exact area of the app when it was in inline mode. When right clicking in one of these unclickable areas of the app and selecting “Inspect Element”, it selects the highest ancestor iframe of the app.
This issue is reproducible by editing the openai-apps-sdk-examples repository’s pizzaz_server_node/src/server.ts to set openai/widgetPrefersBorder to true:
function widgetDescriptorMeta(widget: PizzazWidget) {
return {
"openai/outputTemplate": widget.templateUri,
"openai/toolInvocation/invoking": widget.invoking,
"openai/toolInvocation/invoked": widget.invoked,
"openai/widgetAccessible": true,
"openai/widgetPrefersBorder": true,
} as const;
}
The example pizzaz map widget will normally never encounter this issue, but with the change above the issue is reproducible in the pizzaz map widget (it sometimes takes a few page reloads to reproduce it).
The OpenAI developer documentation previously had a section for the openai/widgetPrefersBorder resource metadata, but now that metadata seems to be deprecated and not do anything anymore. Though there are still references to that metadata in some code snippets on the Build your MCP server page of the official Apps SDK documentation
@A_Nbr I’m unable to reproduce the issue as you described. At least not in Chrome. Can you share your code and maybe tell me a little more about how you tested out the functionality? What browser? What OS? How did you create the app in ChatGPT, etc?
@benlesh I am testing on Google Chrome on a Mac. I have verified this issue in both the openai-apps-sdk-examples pizzaz map example MCP & widget and in a custom built MCP & widget. The app I built had this issue for over a month and I was only able to fix it by removing the openai/widgetPrefersBorder, and I confirmed that the issue was reproducible by changing the code in the example app as mentioned in my first post. The issue is totally random, sometimes not occurring until after dozens of page reloads, sometimes on the first reload.
I have been creating the app in ChatGPT through the Settings > Apps > Create app menu.
I just tried to reproduce it and have not encountered the issue at all today; the last that I was able to reliably reproduce the issue was on January 16. A few days ago I went to the OpenAI support site to report the issue, I wonder if it has been fixed.