Skip to content

fix(claude): show the panel only beside the chat in the desktop app - #73

Merged
hannojg merged 4 commits into
mainfrom
fix/claude-side-panel
Oct 30, 2026
Merged

hannojg merged 4 commits into
mainfrom
fix/claude-side-panel

Conversation

@hannojg

@hannojg hannojg commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

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, advertising io.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's baseUrl.

  • createPanel({ inline: false }): the opening tools carry no ui.resourceUri, so no host renders them in the chat, and name their page under mobile-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.
  • Claude's server uses both, so the device panel always shows in the browser beside the chat.
  • The opening result, the status baseUrl field 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

  • Unit test: an MCP Apps host gets the link, the opening tools have no inline UI, and the recording tool is absent.
  • Host tests: a new browser project case opens Claude's real panel page for an MCP Apps client; Claude's inline-panel checks skip; Codex's regression tests still pass.
  • npm run test:claude: installs the runtime and opens the browser panel as an MCP Apps host.

🤖 Generated with Claude Code

hannojg and others added 4 commits October 30, 2026 11:35
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>
@hannojg
hannojg merged commit a16d12e into main Oct 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant