Repository navigation
Description
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 examplepackages/browser/src/client/*.tsxandpackages/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 likescripts/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
Activity
DoodleBears commentedon Oct 14, 2026
Agent work claim
claude/cloud/session_01KBzwDjxxz9H76kVfvtkxJ6(not a DSH Session)claude/mobile-viewer-1687-y6rlleGenerated by Claude Code
Use a Bot's Browser and Computer from the in-app full client
Merge main into claude/mobile-viewer-1687-y6rlle