Repository navigation
feat(native): reach MCP app frame parity (TR-MCPAPP) - #366
Merged
Merged
Conversation
Brings the native GPUI MCP app frame (`TR-MCPAPP`) to full feature parity with web (`apps/web/src/components/chat/McpAppFrame.tsx`, `packages/client-runtime/src/mcpApps`, `packages/shared/src/mcpApp.ts`): sandbox permissions, fullscreen portal preserving running WebKit state across reparenting, `ui/message`, `ui/update-model-context`, `ui/download-file`, live theme/context sync, confirmation dialogs, and teardown handling. Closes #98 Ref #244
rynfar
force-pushed
the
nw/98-tr-mcpapp
branch
from
November 14, 2026 02:53
e14fde3 to
9b8885c
Compare
…and treat download read failures as tool errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the native GPUI MCP app frame (
TR-MCPAPP) to parity with web (apps/web/src/components/chat/McpAppFrame.tsx,packages/client-runtime/src/mcpApps,packages/shared/src/mcpApp.ts).Closes #98
Ref #244
Summary
crates/core/src/mcp_apps/,examples/mcp_app_host.rs): Added sandbox permissions (camera,microphone,geolocation,clipboardWrite) advertised inui/initializealongsidemessage,updateModelContext, anddownloadFile; addedavailableDisplayModes,Operation::{SendMessage, UpdateModelContext, RequestDisplayMode, DownloadFile},Action::ExitFullscreen, 25 MiB / 200-char download guards (DownloadItem::{Embedded, Link}),size-changedsuppression in fullscreen, andrequest-teardownexiting fullscreen before closing.crates/client/src/mcp_apps.rs): AddedToolInfo.title,call_tool_unchecked,ResolvedDownload/DownloadError, andresolve_downloadswith 25 MiB and empty-file validation.crates/app/src/):WebView::set_layer,WebView::is_shown, andset_dark(webview/mod.rs), plus cancellable confirmation support indialog.rs.WebViewacross inline/fullscreen reparenting (McpFrame+McpFullscreenLayer::Modalportal inworkspace.rs), addedis_follow_pausedhook inthread_view.rs, keptallow_popups: false, synced live theme/context revisions, stepped aside cleanly forawaiting_userapprovals or confirmation dialogs, and markedTR-MCPAPPdoneinapps/native/parity/LEDGER.md.Verification
cargo test -p t3-core -p t3-client:t3-client109/109 passed;t3-core1346/1346 unit + 8/8 conformance passedcargo run -p t3-core --example mcp_app_host: exited 0cargo clippy --workspace --all-targets -- -D warnings: passed cleanlycargo test -p t3-native --features snapshot -- --test-threads=1(copied binary outside Cargo lock, clean tempT3_NATIVE_HOME):mcp_app::2/2,webview::5/5,thread_view::15/15,dialog::4/4 passednode --test apps/native/parity/sync.test.ts: 42/42 passedvp fmt --check apps/native/parity/LEDGER.md: passedSnapshots (
1440x900via--mcp-fixture)Note: GPUI's offscreen snapshot renderer (
webview::is_offscreen()) uses the GPUI surface without an AppKitNSWindow, so--snapshotcaptures the inlineMcpFramecard (prefersBorder: true) and closed state (T3_NATIVE_MCP_TEARDOWN_AUDIT=1).Dark
Light
Closed / Teardown Audit