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.