Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): omit MCP App frames in ReadOnlyThreadTimeline #42972

Closedjoseehilton147(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/42972/headopened View on GitHub

Fixes #42958

Summary

  • Add an optional renderMcpApp override on TimelineRowSharedState, MessagesTimeline, and ReadOnlyThreadTimeline (mirroring renderHtmlRender).
  • Update McpAppTimelineRow to delegate to ctx.renderMcpApp(row) when provided, returning null directly when the override returns null.
  • Default ReadOnlyThreadTimeline's renderMcpApp to () => null, preventing GuestPage and LinkedThreadPane from mounting McpAppFrame against the sentinel NO_ENVIRONMENT_ID ('guest') and rendering repeated 'Unable to load the app' boxes.
  • Add a browser regression test in GuestPage.browser.test.tsx.

Verification

  • pnpm exec vp fmt --check on all 5 changed files: passed.
  • pnpm exec vp lint on all 5 changed files: 0 warnings, 0 errors.
  • pnpm exec vp run --filter @t3tools/web typecheck: passed.
  • pnpm exec vp test run apps/web/src/components/guest/GuestPage.browser.test.tsx: 4/4 passed in Chromium.
    1. tanstack-source added labelsbug

    2. Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

    3. Thanks for this. #42965 makes the same change and is the one being kept.

      #42965 fixes the same unavailable-app boxes and also gives linked-thread viewers the existing notice explaining where to open the visual, rather than silently omitting it there.

      Your direct null return avoids leaving an empty wrapper when an app is omitted; that small improvement could be carried into the kept fix.

      Closing as a duplicate.

    4. juliusmarminge closed this

Sign in to join this conversation.