feat(react-ag-ui): reconstruct mcp.app on restored tool-call parts (#5100)
Verdict: Merge as is · 1 review round
Ready to merge as is. The PR reconstructs mcp.app on restored tool-call parts in fromAgUiMessages from the _meta ui/resourceUri pointer and mirrors the read onto the live RunAggregator path, preserving ACTIVITY_SNAPSHOT precedence; the data-flow chain (readMcpAppResourceUri -> mcp.app on the part -> fromThreadMessageLike preserves mcp -> getMcpAppFromToolPart resolves it) is verified by reading, tests cover both paths and precedence, the changeset is patch, and the public surface is unchanged. Two non-blocking polish notes: the _meta-carrier path restores resourceUri only (no serverId; parity with react-ai-sdk, full serverId via ACTIVITY_SNAPSHOT), and mcp-apps.mdx does not document the new route.
2 findings