Skip to content

Mobile 6: Bot Browser and Computer viewers work inside the in-app full client #1687

Closed

Description

@DoodleBears

Parent

#1645 (hub #1643). Follows #1654 / #1671.

Problem

The phone app opens the Host's Web Client in an in-app WebView under /botharness-device/web/ (ADR-0199, "Full Web Client in the app"). The BotHarness client's own /api/botharness/… calls are relative, so they go through the device gateway. The Bot Browser and Computer packages are different:

  • they still call absolute /api/browser/… and /api/computer/… paths (for example packages/browser/src/client/*.tsx and packages/computer/src/client/*.tsx);
  • their live viewers use their own upgrade routes (for example /botharness-browser/viewer/local).

Inside the in-app full client those requests miss the device gateway and are refused. So the Human cannot watch or take over a Bot's browser or computer from the phone.

What to build

The Bot Browser and Computer controls and live viewers work inside the in-app full client on the paired device's web session, the same way the rest of the Web Client does. The desktop Web Client keeps working unchanged.

  • Client calls become relative to the document base (./api/browser/…, ./api/computer/…), as Mobile 5: open the full Web Client inside the app with the paired device #1671 did for ./api/botharness/….
  • The device gateway forwards the viewers' upgrade routes under /botharness-device/web/ on the web session cookie, re-checking the device on every request and upgrade.
  • Revoking the device closes these viewer streams as well.

Excluded: native (non-WebView) browser or computer screens.

Acceptance criteria

  • From the in-app full client on a paired phone, a Bot's Browser entry shows its live view, and pause/take-over controls work
  • The same holds for the Computer entry
  • No request from these viewers goes to a bare /api/… or viewer path outside /botharness-device/web/ (checked in an isolated-Host e2e like scripts/e2e-device-full-client.mjs)
  • Revoking the device closes open viewer streams, and later requests answer 401 device-revoked
  • The desktop Web Client's browser and computer tests still pass
  • Physical-device recording; Human QA

Blocked by

Activity

  1. added this to the v2.0 milestone on Oct 14, 2026
  2. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Claude Code
    • Task: claude/cloud/session_01KBzwDjxxz9H76kVfvtkxJ6 (not a DSH Session)
    • Issue scope: Bot Browser and Computer controls and viewers inside the in-app full client, viewer sockets through the device gateway, revocation closes them
    • Branch: claude/mobile-viewer-1687-y6rlle
    • Started: 2026-10-14 13:12 UTC
    • State: active

    Generated by Claude Code

  3. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 14, 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

    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDsarea:frontendClient-side implementationready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions