Rupic
Log in
assistant-ui/assistant-ui
PR #5225Merged

feat(react-ag-ui): reconstruct mcp.app on restored tool-call parts (#5100)

Opened 2026-07-27 10:59:52Updated 2026-07-27 12:05:10pkg/react-ag-uitype/feature
rupic/fix-5100-68c9bd4b28018 files

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

Timeline

  1. 10:59
    PR #5225 opened

    2026-07-27 10:59:52

  2. 12:05
    PR #5225 merged

    2026-07-27 12:05:10

  3. 12:07
    Review round 1Merge as is

    2026-07-27 12:07:03 · Agent review skipped cancelled pr merged · 2 findings

  4. PR fixPending

Possibly related

#5348feat(react-ag-ui): rehydrate A2UI surfaces from restored historyClosedShares files
Powered by Rupic