Skip to content

Mobile 8: Remote-control a Bot's Computer and Container Browser from the phone over WebRTC #1799

Closed

Description

@DoodleBears

Parent

#1645 (hub #1643). Follows #1798.

Problem

A Bot's Computer and its Container Browser run in webtop containers that stream through Selkies. Today Selkies runs in its default WebSocket mode, and the phone can only see it inside the in-app full client's WebView (#1687). For real remote control on a phone, like NetEase UU Remote or RustDesk, the picture has to be low-latency video on a native screen, with touch mapped to mouse and keyboard.

Selkies already supports WebRTC, and recommends it for lossy and mobile networks: https://docs.linuxserver.io/selkies/user-guide/webrtc/

What to build

A native remote-desktop screen in apps/mobile for the Computer and the Container Browser:

  • Transport: turn on Selkies WebRTC mode for these containers and receive the stream in the app with react-native-webrtc. Signalling goes through the device gateway on the device credential, and revoking the device ends the call.
  • Network: tailnet only in this slice. ADR-0199 pairs phones over Tailscale first, so the phone can reach the Host's tailnet address directly and ICE host candidates are enough; no STUN or TURN server. The media ports are published on the tailnet interface only, never on a public interface.
  • Fallback: when WebRTC can't connect (for example on a loopback route), the screen falls back to the Selkies WebSocket stream through the device gateway, as Mobile 6: Bot Browser and Computer viewers work inside the in-app full client #1687 does.
  • Interaction: reuse Mobile 7's screen (Mobile 7: Watch and take over a Bot's Browser on a native screen #1798): direct and trackpad modes, scroll, native keyboard, pause and resume.
  • Native change: react-native-webrtc needs a config plugin and a new development build; say so in the PR.

Excluded: STUN/TURN for routes outside the tailnet (a later slice, only if a non-tailnet route is added); switching the desktop Web Client to WebRTC.

Licences: Selkies is MPL-2.0 and is used as is. Reference projects such as RustDesk (AGPL-3.0) and neko (Apache-2.0) are for ideas only; no code is copied from AGPL or GPL projects into this MIT repo.

Acceptance criteria

  • On a paired phone on the tailnet, the native screen shows a Bot's Computer as live video, with visibly lower latency than the WebView viewer
  • The same holds for the Container Browser
  • Touch, scroll and keyboard drive the remote desktop after Pause Bot
  • Signalling goes through /botharness-device/… only, revoking the device ends the stream, and no media port listens on a non-tailnet interface
  • When WebRTC fails, the WebSocket fallback shows the picture
  • Any new Host route ships its deepseekbot CLI command (CLI parity)
  • Physical-device recording on iOS and Android over cellular (via Tailscale) and Wi-Fi; Human QA

Blocked by

Activity

  1. added
    needs-triageMaintainer needs to evaluate this issue
    area:fullstackEnd-to-end Host and Client implementation
    on Oct 14, 2026
  2. added
    scope:tracerHuman-testable implementation slice
    ready-for-agentFully specified, ready for an AFK agent
    and removed
    needs-triageMaintainer needs to evaluate this issue
    on Oct 14, 2026
  3. DoodleBears commented on Oct 17, 2026

    @DoodleBears
    ContributorAuthor

    Human-authorized issue reconciliation (2026-10-18). The paired native remote Computer/Browser slice was delivered through #1817, merged into main. Closing delivered implementation per Human instruction; existing platform/network validation limits remain in the PR.

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:fullstackEnd-to-end Host and Client implementationready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions