Open-source Grok Bot alternative with a virtual machine that bots can use
Cloud screen preview
Start the isolated renderer fixture directly in a terminal:
node --experimental-strip-types scripts/verify-cloud-preview.ts
Open the printed previewUrl in a browser or an isolated Electron window.
The fixture starts the standard fake-engine harness in a temporary home,
creates its own test bot through the mapped control command, and mounts the
real ComputerPanel. Only the cloud transport is simulated. It never needs
a Boat API key and never contacts a cloud provider. Ctrl-C stops both servers
and removes their temporary data; the printed harness log remains.
Verify these transitions with computer use:
- On initial connection, Cloud screen connected appears. The panel hears live frames only while its preview is up, so a frame sent before it connected cannot hide this screenshot.
- Select corrupt, then Reconnect panel. The panel must show an image error and Retry preview, rather than a blank image with an Open button.
- Select slow, then Retry preview. The panel immediately shows Connecting to the screen…, then displays the image after 12 seconds.
- Select failed, then Reconnect panel. The provider error appears inside the preview. Select connected, then Retry preview to recover.
- Turn Busy on, then Publish live frame. The new live frame appears. Stop publishing: within 14 seconds, screenshot polling resumes and restores Cloud screen connected, even though the bot is still busy.
- Turn Busy on, then Reconnect panel. The fixture, like the server,
refuses
provisionwith 409 while a turn is active. The panel must still connect and show the screen (it attaches to the ready boat without provisioning) — not Couldn't reach the computer with a red "being used by an active turn" alert. Turn Busy off: the panel stays connected. - Select timeout, then Reconnect panel. After 90 seconds, the loader becomes a timeout error with Retry preview. Choose connected and retry; the connection must recover without restarting the app.
- While slow is pending, switch to connected and Reconnect panel. The new connection must display immediately; the cancelled request must neither block it nor overwrite its frame later.
- Select held, turn Busy on, and wait for the next poll. Toggle Busy off: the pending capture must not be canceled. Reconnect panel does cancel its client request, but the simulated host capture continues. The replacement preview must retry contention without a disconnect alert. Select connected, then Release held capture; the preview recovers automatically and the old capture never overwrites it.
- From a connected frame, select failed and turn Busy on. After the error appears, select contended and Retry preview. The last frame stays visible while retrying. After ten seconds the continuing contention becomes an actionable error, but retries continue: select connected to recover without clicking Retry again.
- Open the live desktop. The fixture holds its join until Release desktop join; screenshot polling must pause throughout that wait. Repeat with Panel → Remote desktop. The viewer is simulated, never a native window.
- Select unconfigured while Busy is on. Its permanent HTTP409 must show VPS is not configured with Retry, not an endless connecting state.
- Focus the tab row with Tab: Left/Right and Home/End move between tabs, the vertical arrows must leave the page's scrolling alone, and the focused tab's ring must not be clipped by the row. Press Tab again: focus lands on the selected panel itself before its first control.
- Close the panel with Enter on its focused X, then open it again with Enter on Open computer panel: the Computer panel focuses its active tab, the Remote desktop panel focuses its own X, and closing either returns focus to that opener button. By hand, a pointer click on the opener must leave focus out of the panel entirely; the chat header's own button covers that in the computer panel focus recipe.
The automated browser regression runs these contention, cancellation, decoded frame retention, and join-pause checks against the same fixture:
OMB_UI_E2E=1 node node_modules/vitest/vitest.mjs run scripts/testing/cloud-preview.e2e.test.ts
It reuses the standard isolated UI harness and prints the temporary data path
and persistent server log. To reuse already installed test binaries, set
OMB_AGENT_BROWSER_PATH and AGENT_BROWSER_EXECUTABLE_PATH explicitly.
The fixture tests actual image decoding, request cancellation, fresh frame
selection, and renderer feedback. Host work continuing after cancellation is
simulated in-page; server/vps-routing.test.ts separately covers the real HTTP
route with fake SSH/Docker. Neither fixture proves a real VPS connection, Boat
provisioning, native viewer windows, or account authentication. Test those
separately with an explicitly isolated provider fixture when changing those paths.