Skip to content

Pair this computer: hand the CLI the app's own LAN connection - #39

Merged
wardviaene merged 1 commit into
mainfrom
pair-lan-connection
Nov 21, 2026
Merged

wardviaene merged 1 commit into
mainfrom
pair-lan-connection

Conversation

@wardviaene

Copy link
Copy Markdown
Member

Found testing 0.2.2 with two pods on USB: the app was on the LAN (192.168.1.164, or benchpod-c2f662.local) and "Pair this computer" ran benchpod --connection usb lan-clients add, which refused with "2 pods on USB ... pick one", shown raw.

  • A LAN address or name (the app's own connection) goes to the CLI as it is: --connection 192.168.1.164 lan-clients add. The CLI (lan-clients add over a LAN address pairs through the pod's USB link benchpod-cli#84) reads the pod's status and pairs over that pod's USB link. The server takes a LAN connection only when it is the app's own. usb:<name> and embeddedci:<name> unchanged.
  • When the CLI cannot pair, the panel's error line is its message without [benchpod] and the command's name.
  • benchpod-xxxxxx.local (and usb:benchpod-xxxxxx.local) give the pod's name. A bare benchpod-xxxxxx goes to the MCP server as benchpod-xxxxxx.local (the SDK otherwise asks the OS resolver and fails with "nodename nor servname provided").
  • The help tip says "the pod it is connected to" on the LAN.
  • BENCHPOD_CLI_REF stays v0.10.1: the LAN path needs the next CLI release; with 0.10.1 the panel shows the CLI's BP0081 refusal as a clean line.

Tests: Go (argv per connection, LAN only for the app's own, error text, mcpConnection) and vitest (LAN pairing posts the app's connection and shows the message).

🤖 Generated with Claude Code

With two pods on USB and the app on the LAN (192.168.1.164 or
benchpod-c2f662.local), Pair ran `--connection usb lan-clients add`, which
asked which pod. A LAN address or name now goes to the CLI as it is: the CLI
(benchpod-cli#84) pairs over that pod's own USB link. usb:<name> and
embeddedci:<name> stay. The panel shows the CLI's error without the
"[benchpod]" prefix. benchpod-xxxxxx.local gives the pod's name, and a bare
benchpod-xxxxxx goes to the MCP server as benchpod-xxxxxx.local, so it connects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wardviaene
wardviaene merged commit f6f1be1 into main Nov 21, 2026
1 check 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