Files
openbot/scripts/hosting
NBandClaude Opus 5.5 db3041897f Give agents their own display on servers (#2327)
* Give agents their own display on self-hosted servers and in the container

A self-hosted server (`self` mode) and the Docker image now start two Xvfb
displays. OpenBot keeps the first (1280x800), because the built-in browser
draws its tabs in the OpenBot window. The agents get the second
(1920x1080, `agent_display_size`), named in OPENBOT_AGENT_DISPLAY.

On Linux, main gives that display to the cua-driver daemon, to Sunshine
and to the agent processes, so Computer Use screenshots and remote desktop
show what the agent works on, not the OpenBot window. The highlight
overlays are OpenBot windows, so they do not start when the agent display
is separate. Boat hosted servers keep one display.

Fixes #2318

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give agents the boat desktop on hosted servers

On a boat hosted server, OpenBot now runs on its own Xvfb display, and
the agents use the boat desktop :0, which the script names in
OPENBOT_AGENT_DISPLAY. A sandbox with no desktop session uses two Xvfb
displays, as on a self-hosted server.

Refs #2318

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Stop OpenBot before its displays, and turn off capture_screen with an agent display

openbot.service now holds the Xvfb displays on every server, and a stop signals each process of the
unit at the same time. An Xvfb that stopped first ended OpenBot before it closed its database. The
unit's ExecStop now sends SIGTERM to OpenBot only, from a PID file, and waits for it.

capture_screen uses desktopCapturer, which sees only the OpenBot display. With an agent display it
showed the OpenBot window, so it is now not available there, and agents use the Computer Use driver.

Refs #2318

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 19:15:47 +02:00
..