Bug: widget api fails when requesting resource

The problem appears when /backend-api/ecosystem/widget is called while chatgpt asks for permission to use the tool.

If the widget action doesn’t require permission, the resource_path param in request is different:

without asking for permission:

force_local=false
uri=connectors://asdk_app_123456
template_pointer=ui://widget/my-widget.html
resource_path=/mcp_name/link_123456/tool_name

when asking for permission:

force_local=false
uri=connectors://asdk_app_123456
template_pointer=ui://widget/my-widget.html
resource_path=mcp_name_tool_name

In the second case request fails with

{
    "detail": "HTML asset not found"
}

and the chat displays it as

image

This issue started to appear on May 26, and is not consistent.

The issue reproduce on instant + auto-switch-to-thinking model. If only instant or thinking is selected it works fine.

I got exactly same issue.

Hi @serhii-braavos, sorry for the slow reply here. We shipped a fix this week for widget requests that lose the app’s linked tool identity and return “HTML asset not found.” Can you retry in a new chat with automatic model switching enabled? If it still fails, please send the new request ID and timestamp through Support so we can check that attempt.