McpAppSessions
The live views of a chat, by tool call. A view keeps running while it scrolls out of sight or its message recomposes — its sandbox, connection and state live here, not in the composition — and is torn down (ui/resource-teardown) when evicted (beyond capacity, least recently shown first) or on close. rememberMcpAppSessions closes them with the composition.
Functions
Link copied to clipboard
The views' dialogs — tool approvals and full screen — independent of where the views are scrolled. Compose it once at the screen's root (McpAppsHost does).