Skip to content

claude_command desktop still arms /desktop on Linux, unlike the action and the tab menu #585

Open

Description

@bastien-gallay

Observed

On Linux, where Claude Desktop does not run, the send-to-desktop action
answers inert / no-surface and the tab menu leaves out Send to Claude
Desktop
. Both read CLAUDE_DESKTOP_EXISTS in
crates/app/src/shell/claude_command.rs (#346).

The MCP tool claude_command with command: "desktop" does not: it goes
through arm_claude_command, which never reads that constant, so it still arms
the confirmation for /desktop there. One rule, enforced on two of its three
paths. docs/src/mcp/live-bridge.md states the current behaviour (#583).

Expected

The tool refuses desktop on Linux with a typed reason, read from the same
constant, so the keymap, the menu and the tool cannot disagree.

Steps

  1. Run termherd on Linux with an idle Claude pane.
  2. Call claude_command with command: "desktop".
  3. The confirmation for /desktop opens; pressing send-to-desktop instead
    answers no-surface.

Not reproduced on Linux: the path is read from the code.

Activity

  1. added
    area:mcp
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcp

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions