Skip to content

MCP Apps infinite loop during render #6373

@AmandaApollo

Description

@AmandaApollo

goose appears to send an infinite loop of ui/notifications/tool-input after tool result - appeared to cause re-rendering issues although this was inconsistent. Adding debugging and restarting the MCP server allowed my UI to render as expected after discovering this issue.

example log (not the full output as it is long)

🔍 Debug Log:
8:43:33 AM: 🚀 Initializing MCP App
8:43:39 AM: 📥 Received tool-input
{
  "calendarId": "cal-OCfFpty2kvE6LLB",
  "limit": 5
}
8:43:39 AM: ✅ Received tool-result
{
  "content": [
    {
      "type": "text",
      "text": "{\"result\":{\"data\":{\"eventAnalytics\":{\"totalEvents\":5,\"totalAttendees\":226,\"averageAttendeesPerEvent\":45.2,\"checkInRate\":0.1504424778761062,\"events\":[{\"id\":\"evt-lai9A77GhlAUyqR\",\"name\":\"Apollo and AWS in SF\",\"date\":\"2025-03-06T01:00:00.000Z\",\"attendeeCount\":26,\"checkedInCount\":0,\"location\":\"San Francisco, California\"},{\"id\":\"evt-sEkpMqp0F04rRV5\",\"name\":\"MCP Server Builder Series\",\"date\":\"202
8:43:39 AM: 🎯 Processing tool result
8:43:39 AM: 🎨 Rendering dashboard
{}
8:43:39 AM: 📥 Received tool-input
{
  "calendarId": "cal-OCfFpty2kvE6LLB",
  "limit": 5
}
8:43:39 AM: 📥 Received tool-input
{
  "calendarId": "cal-OCfFpty2kvE6LLB",
  "limit": 5
}
8:43:39 AM: 📥 Received tool-input
{
  "calendarId": "cal-OCfFpty2kvE6LLB",
  "limit": 5
}

To Reproduce
Steps to reproduce the behavior:

  1. Add debug logs to your html for an MCP app iframe
  2. Execute any tool
  3. observe console results in the iframe

Expected behavior
UI updates as expected with tool results and no re-rendering, no additional tool-input notifications are sent from goose


Screenshots
Example debug code added:
Image

Example debug output in iframe (working version)

Image

If applicable, add screenshots to help explain your problem.


Please provide the following information

  • OS & Arch: [macos seqouia]
  • Interface: [UI]
  • Version: [v1.19.0]
  • Extensions enabled: [Developer, ToDo, local http mcp server]
  • Provider & Model: [sonnet 4.5]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions