Skip to content

ontoolresult not called when refreshing a ChatGPT page #522

@cranberyxl

Description

@cranberyxl

Describe the bug
When you reload a ChatGPT window with existing MCP App widgets the tool input and tool result notifications do not happen as defined in section 3 Data Delivery of the overview. https://github.com/modelcontextprotocol/ext-apps/blob/30f79b9e3f2525a95a997fce2e5839ab0dd4da96/docs/overview.md#lifecycle

To Reproduce
Steps to reproduce the behavior:

  1. Call a tool that renders a widget that uses tool-results from chatgpt
  2. reload the page
  3. chatgpt re-renders the widget iframe
  4. ui/notifications/initialized is called, but ui/notifications/tool-result and ui/notifications/tool-input are not

Expected behavior
The Data Delivery phase should happen after the Initialization phase every time

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions