Repository navigation
fix(claude): show the panel only beside the chat in the desktop app - #73
Merged
Merged
Conversation
The desktop app's Code tab runs Claude Code as an MCP Apps host, so the
panel rendered inline there and the agent never received the browser
link. Without it, the agent opened Baguette's own viewer from the
backend's baseUrl instead.
Claude's server now passes createPanel({ inline: false }): the opening
tools carry no ui.resourceUri for a host to render and name their page
under mobile-dev/panel, which the browser page reads. browserPanel's
new `always` option links the page for every host. Opening a recording
in the workspace is left out there; recordings stay chat cards. The
opening result, the baseUrl field and the Claude skill tell the agent
to open only the panel link.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude opened from the Dock starts the plugin without the shell's PATH, and the launcher did not look where Nix installs Node: the user profile, per-user and system profiles, and the default profile. It does now, and the missing-Node message names Nix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude Code passes the model a tool's structuredContent and drops its text content when both exist, so the agent never saw the browser panel's link. It told the user the panel was open, or opened the backend's baseUrl, the only address it saw. The opening tools now return the link and its instructions as browserPanel in their structured result, declared in the output schema, as well as in the text. The instructions also say the panel is not open yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the desktop app's Code tab, opening the panel's page left the Browser pane hidden behind a card in the chat until the user clicked Open. The opening instructions now ask the agent to call the host's tool that shows its browser pane, and the Claude skill names the Code tab's mcp__ccd_view__show_pane with pane preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Testing the 0.1.172-test.1 build in the Claude desktop app showed that the desktop app's Code tab runs Claude Code as an MCP Apps host (
CLAUDE_CODE_MCP_APPS_HOST=1, advertisingio.modelcontextprotocol/ui), unlike the terminal. The panel therefore rendered inline in the chat and the agent never got the browser link; looking for a side panel, it opened Baguette's own web viewer from the backend'sbaseUrl.createPanel({ inline: false }): the opening tools carry noui.resourceUri, so no host renders them in the chat, and name their page undermobile-dev/panel, which the browser panel page reads. Opening a recording in the workspace is left out in this mode; recordings stay chat cards.browserPanel({ always: true }): links the page for every host, including MCP Apps hosts.baseUrlfield and the Claude skill tell the agent to open only the panel link, never the backend's address.Codex and the shared server keep rendering the panel inline.
Telemetry
No new measurements. The browser panel's session and context metrics and the panel runtime metrics cover the same path; the tools' names and telemetry are unchanged.
Testing
npm run test:claude: installs the runtime and opens the browser panel as an MCP Apps host.🤖 Generated with Claude Code