control-ui

Operate and troubleshoot the OpenClaw Control UI: navigate connected clients, organize sessions, build session dashboards, and handle direct or Tailscale-hosted Gateways.

Control UI

Use OpenClaw's typed UI tools for state and layout. Use browser automation only to inspect or interact with rendered pixels.

Mental model

in the /dashboards gallery.

the page or take screenshots.

them. It does not edit board content.

plugin widgets. show_widget authors or updates custom HTML/SVG widgets.

Do not replace these operations with shell calls or raw Gateway RPC when the typed tool exists.

Start safely

  1. Identify the target session and whether the Control UI is local/direct or

published through Tailscale or another HTTPS proxy.

visible session before authoring any widget. A tab is only a partition inside one session's board; it never creates a sidebar row.

dashboard task to the intended visible session first. Board widgets are keyed by session and cannot be moved to another session afterward.

  1. Read current state before changing it:
  1. If the task targets another session's board, move the work into that session.

Dashboard tools intentionally operate on the current session.

Read hosting.md before opening or repairing a remote Control UI. Read dashboards.md before creating or restructuring a board. For bulk session archiving with retained exceptions, use session archive cleanup. Use the visualize skill for widget composition, libraries, interactive code explanations, and dashboard content. Keep session and board organization here.

Navigate and arrange the UI

Use screen for direct client commands:

docked panels.

screen broadcasts to every connected Control UI that advertises UI commands; it cannot select one browser tab. Check which clients are connected before sending a command. If it reports no capable client, ask the user to open the Control UI and retry.

Use the in-app browser or an available browser-control tool when the task needs DOM inspection, clicking, typing, or screenshots. Reuse the existing signed-in Control UI tab when possible.

Build a session dashboard

  1. Call dashboard read. Reuse suitable tabs and widget names.
  2. Create or rename tabs with tab_create / tab_update; use short lowercase

slug IDs.

  1. Add content with the correct owner:

pin: true and report;

show_widget with pin: true;

pluginKind. Do not embed Grafana or another external application in an <iframe> inside show_widget; widget sandboxes reject child-frame URLs and navigation. Use an ordinary user-clicked link to open the application, fetch an exact HTTPS API through declared capabilities.netOrigins, use a Gateway data binding, or install/use a trusted plugin widget instead.

  1. Use a stable name when calling show_widget. Reusing the same name with

new widget_code updates the widget in place.

  1. Arrange with widget_move, widget_resize, and tab reordering. Prefer size

presets and board order over pixel placement.

  1. Pin the current session with sessions patch when it should stay prominent.
  2. Call dashboard focus_tab to show the intended tab in the dashboard side

panel. If no Control UI is connected, the command returns unavailable; have the user open the session and retry.

  1. Choose the presentation after focusing the tab. set_presentation with

presentation: "expanded" expands the dashboard; "split" shows it beside chat in the current panel layout. The human can use Expand side panel for a full-width dashboard, Collapse to bring chat back, or close the panel for chat alone.

Never create a fake top-level page for a dashboard. For a dedicated dashboard, use a dedicated session, pin that session, and build its board from inside it.

Update without breaking the board

with the new owner or registered kind.

content may require approval again.

the board.

Verify the result

Use two layers of proof:

  1. State: dashboard read shows the expected tabs, widgets, names, owners,

order, and sizes; sessions_list shows the expected session metadata.

  1. Rendered UI: open the actual Control UI, confirm the correct session and

dashboard panel, then inspect or screenshot the widget frame. Exercise any important controls.

An HTTP 200 for the shell or widget route is transport proof, not visual proof. Do not claim the dashboard works until the sandboxed frame renders. For widgets that fetch live data, exercise that fetch from the rendered frame. A host-side curl does not prove the browser received the required capability grant or accepted the endpoint's CORS and mixed-content policy. If no browser-control or connected-client inspection is available, report the dashboard as published but visually unverified instead of claiming success.

Recovery order

When a widget is blank or stale:

  1. confirm the expected session, tab, widget name, and revision with

dashboard read;

  1. classify the hosting path using hosting.md;
  2. verify the Control UI origin, the separate widget sandbox origin, and the

protocol used on every reverse-proxy hop;

  1. if widget JavaScript reports Failed to fetch, verify its exact HTTPS origin

is declared and granted in capabilities.netOrigins, then check browser CORS and mixed-content errors;

  1. after a Gateway restart or routing change, republish/update the widget so the

browser receives a fresh ticketed frame URL;

  1. reload the Control UI and verify the rendered frame, not only route status.