Skip to content

🙌 OpenHands: AI-Driven Development

40.1 KB
Raw Blame

F20 — Canvas apps

Canvas apps (Canvas Extensions) are trusted browser modules installed on the active local Agent Server. Under Customize → Apps a user installs an app from a local path or a Git source (it arrives disabled), reviews its card, enables it through a trust confirmation, updates, disables or uninstalls it, and opens the pages it contributes from the main sidebar rail at /extensions/<name>/<path>.

Source: src/routes/canvas-extensions.tsx, src/routes/canvas-extension-page.tsx, src/components/features/canvas-extensions/, src/hooks/mutation/use-manage-canvas-extensions.ts, src/api/canvas-extensions-service.ts, src/utils/parse-git-tree-url.ts, src/components/features/sidebar/sidebar-rail-body.tsx, src/fixtures/canvas-extensions/demo-page/.

Sub-features

  • F20.entry-points: the Apps page is reached from the sidebar Customize link (lands on /mcp) then Apps in the Customize navigation, from the command menu's Customize command plus Apps, from the phone Customize hub, and by direct URL /apps; there is no bare /extensions page and no "Apps" command.
  • F20.page: /apps shows the title Apps for Agent Canvas, a description, a Build an app docs link (new tab), an enabled Add app button, the amber trust notice, the Installed apps heading and, with nothing installed, No apps are installed on this backend.
  • F20.add-modal: Add app opens a form with App source (required), Ref and Path; Install stays disabled while the source is empty or blank; Close, the X, Escape and a backdrop click close it.
  • F20.install: installing from a local path shows Installing…, toasts App installed. Review it here, then enable it when you are ready., closes the form and lists the app disabled (after reload too) with no rail entry; a local App source plus Path is joined into one path.
  • F20.install-error: a failed install toasts the server's reason (Could not read canvas extension source: …) and keeps the form open with the input, for local paths and for unreachable Git sources alike.
  • F20.git-tree-url: a Git host folder URL (…/<owner>/<repo>/tree/<ref>/<path>) pasted into App source is split into source, ref and path; the card shows the repo URL as source, Ref (resolved commit) and Path.
  • F20.git-ref-path: the Ref and Path fields apply to a Git source, including the placeholder's github:owner/repo shorthand; the card keeps the source as typed and shows the resolved commit and the path. Enter in a field submits the form.
  • F20.install-duplicate: installing an app whose name is already installed is refused (409): the form stays open with its input, the toast says the app is already installed and points to Update or Uninstall on its card, and the existing card is unchanged.
  • F20.card: each card shows the display name, source, a role=switch (Enable/Disable), the description, Disabled/Enabled, v<version> and Pages: N pills, each page title, and Update and Uninstall buttons.
  • F20.enable-confirm: switching a disabled app on (click or Space) opens a trust confirmation (confirmation-modal) with Cancel and Enable trusted app; Cancel, Escape and a backdrop click leave it disabled, confirming enables it (persists after reload).
  • F20.rail-entry: an enabled app's page appears in the main sidebar rail as sidebar-canvas-extension-<name>-<pageId> linking to /extensions/<name>/<path>.
  • F20.rail-active: on the app's page its rail entry is marked current (aria-current="page", highlighted); with the sidebar collapsed the entry is an icon whose tooltip and aria-label carry the label. App pages are not listed in the command menu.
  • F20.rail-label: the rail entry is labelled with the page's nav_label (Extension demo for the demo fixture), falling back to its title.
  • F20.page-render: the rail entry and the direct URL mount the app into main named after the page title (demo: h1 Hello from a Canvas Extension); a deeper URL passes the rest of the path to the app (Nested extension path: nested). Known failure (reproduced 2026-10-17, #18557): the registered page renders, but the browser document title stays OpenHands instead of <registered page title> - OpenHands App. This observation covers the enabled demo page, not Windows native chrome or conversation-title restoration.
  • F20.app-backend-view: an app page receives host.appBackendView only when the Agent Server advertises canvas_app_backend_bridge_v1 with an app-backend ingress URL. A default server without ingress reports unavailable. On Linux SDK 1.55.1, configuring the standard ingress and installing a supported backend artifact makes the real admitted iframe available; HTTP, session disposal, timeout/retry and WebSocket negotiation are separate checks.
  • F20.page-unavailable: an unknown app, an unknown page of a known app, or a disabled or uninstalled app shows Not available / This app is disabled, missing, or does not provide this page.
  • F20.phone: at 390 px the Customize hub lists Apps, the Apps page, the Add form and an app page fit without horizontal overflow, and the app's entry is in the sidebar drawer.
  • F20.refresh: Update re-installs from the recorded source, toasts App updated. and keeps the enabled state; a failed update toasts the error and leaves the card unchanged.
  • F20.persist-restart: installed apps, their enabled state and rail entries survive a stack restart.
  • F20.disable: switching an enabled app off happens immediately without confirmation, removes its rail entry and makes its page unavailable.
  • F20.uninstall: Uninstall asks Uninstall <display name> from this backend?; Escape or Cancel keep the app, Confirm toasts App uninstalled. and removes the card and the rail entry.
  • F20.busy-lock: while Update, Uninstall or Enable is pending, every card control is inert, the switch included.
  • F20.load-error: when listing apps fails, the Installed section shows the error and a Retry button.
  • F20.unsupported: on a Cloud backend, with no backend, or on an Agent Server without the apps API, the Installed section shows Not available with the reason and Add app is disabled; Cloud hides Apps from the Customize navigation.

How to get to it (user POV)

  • Main sidebar Customize (sidebar-skills-link, lands on /mcp), then Apps in the Customize navigation (sidebar-extensions-/apps).
  • Command menu (Control+k/Meta+k or command-menu-trigger): search Customize, Enter (lands on /mcp), then Apps. Searching Apps finds nothing.
  • Phone: /customize shows the Customize hub (extensions-mobile-hub) instead of redirecting; tap Apps.
  • Direct URL /apps.
  • App pages are not in the command menu; only the rail (or a URL) reaches them.
  • App pages: the app's entry in the main sidebar rail (phone: the sidebar drawer, sidebar-mobile-menu-toggle), or the direct URL /extensions/<name>/<path>[/<sub-path>].

Driving it with control-openhands

Preconditions:

  • Baseline state (launched, doctored, onboard --skip done) on the launcher's local Agent Server. No LLM is needed.

  • No app is installed: control-openhands api GET /api/canvas-extensions/installed returns "canvas_extensions": [].

  • Run commands from the checkout root: recipes install the bundled, reviewed fixture $PWD/src/fixtures/canvas-extensions/demo-page (name demo-page, display name Demo page, one page hello at /hello). Never install or enable arbitrary third-party code: enabling runs it inside Canvas.

  • Git bullets (tree URL, Ref and Path, busy lock, duplicate): the Agent Server can read https://github.com/OpenHands/OpenHands anonymously (read-only; no account needed), and that repo's main holds the same reviewed fixture at src/fixtures/canvas-extensions/demo-page. Check both before installing, with a read-only shell step: git clone -q --depth 1 --filter=blob:none --sparse https://github.com/OpenHands/OpenHands "$OH_VERIFY_RUN/private/qa-upstream" && git -C "$OH_VERIFY_RUN/private/qa-upstream" sparse-checkout set src/fixtures/canvas-extensions && diff -r "$OH_VERIFY_RUN/private/qa-upstream/src/fixtures/canvas-extensions/demo-page" src/fixtures/canvas-extensions/demo-page && git -C "$OH_VERIFY_RUN/private/qa-upstream" rev-parse HEAD must print no diff and a commit. Enable a Git-installed copy only when the card's Ref equals that commit. If GitHub is unreachable or the diff is not empty, these bullets are blocked (a local smart-HTTP Git server would do, but control-openhands has no verb for one; dumb HTTP such as python3 -m http.server fails the Agent Server's fetch).

  • Desktop viewport unless a bullet says otherwise.

  • Sidebar entry and empty page (F20.entry-points, F20.page). From / run control-openhands browser click 'testid=sidebar-skills-link' --expect-url '/mcp(\?|$)', control-openhands browser click 'testid=sidebar-extensions-/apps' --expect-url '/apps(\?|$)', then control-openhands browser snapshot 'testid=canvas-extensions-screen >> main'. The snapshot shows heading Apps for Agent Canvas, the description Apps are built with the Canvas Extensions API, link Build an app, button Add app, the trust notice, heading Installed apps and paragraph No apps are installed on this backend. control-openhands browser enabled 'testid=canvas-extensions-add-button' is true and control-openhands browser attr 'role=link[name="Build an app"]' target is _blank. control-openhands browser screenshot --feature F20.page --name empty.

  • Command-menu entry (F20.entry-points). From / run control-openhands browser press Control+k, control-openhands browser type 'testid=command-menu >> role=combobox' Apps and control-openhands browser snapshot 'testid=command-menu': it reads No commands found. Then control-openhands browser fill 'testid=command-menu >> role=combobox' Customize, control-openhands browser press Enter, control-openhands browser wait-url '/mcp(\?|$)' and control-openhands browser click 'testid=sidebar-extensions-/apps' --expect-url '/apps(\?|$)'. control-openhands browser goto /extensions and control-openhands browser snapshot 'testid=not-found-screen' show the app's not-found page, like any unknown path: heading Page not found, This address does not match any page. Check the URL, or go back to the home page. and link Home.

  • Add form and its closers (F20.add-modal). On /apps (control-openhands browser goto /apps; the previous bullet ends on the /extensions not-found page) run control-openhands browser click 'testid=canvas-extensions-add-button' and control-openhands browser snapshot 'testid=add-canvas-extension-modal': heading Add app, intro Install from a Git source or a path on the active Agent Server. The app will be installed disabled., textboxes App source, Ref Optional, Path Optional, buttons Close and Install [disabled]. After control-openhands browser fill 'testid=add-canvas-extension-source-input' ' ', control-openhands browser enabled 'testid=add-canvas-extension-submit' is still false. Each of control-openhands browser click 'testid=add-canvas-extension-dismiss', control-openhands browser click 'testid=add-canvas-extension-modal-close', control-openhands browser press Escape and control-openhands browser mouse-click 20 500 (backdrop) closes it: control-openhands browser count 'testid=add-canvas-extension-modal' is 0 (reopen with canvas-extensions-add-button between them).

  • Install error, local path (F20.install-error). Open the form, run control-openhands browser fill 'testid=add-canvas-extension-source-input' /nonexistent/qa-app, control-openhands browser click 'testid=add-canvas-extension-submit', then control-openhands browser toasts: Could not read canvas extension source: Local extension path does not exist: /nonexistent/qa-app. browser count 'testid=add-canvas-extension-modal' stays 1 and the input keeps its value. control-openhands browser errors --app-only lists the expected 400 on POST /api/canvas-extensions/install.

  • Install error, Git source (F20.install-error). In the same form run control-openhands browser toasts --clear, control-openhands browser fill 'testid=add-canvas-extension-source-input' 'http://127.0.0.1:9/qa-owner/qa-missing', control-openhands browser click 'testid=add-canvas-extension-submit', control-openhands browser wait 'testid=add-canvas-extension-submit >> text=Install' --timeout 60000, then control-openhands browser toasts --history and control-openhands browser screenshot --feature F20.install-error --name git-server-reason. The history holds one toast with the server's 400 detail, Could not read canvas extension source: Failed to fetch extension from http://127.0.0.1:9/qa-owner/qa-missing (browser toasts may still list the local-path toast below it). The form stays open with the URL.

  • Install the demo (F20.install). In the open form run control-openhands browser fill 'testid=add-canvas-extension-source-input' "$PWD/src/fixtures/canvas-extensions/demo-page" and control-openhands browser click 'testid=add-canvas-extension-submit' --observe 'testid=add-canvas-extension-submit': the observed states are Install, Installing… [disabled], <absent>. control-openhands browser toasts shows App installed. Review it here, then enable it when you are ready. Then control-openhands browser reload, control-openhands browser attr 'testid=canvas-extension-card-demo-page >> role=switch' aria-checked (false) and control-openhands browser count 'testid=sidebar-canvas-extension-demo-page-hello' (0).

  • Card (F20.card). Run control-openhands browser snapshot 'testid=canvas-extension-card-demo-page': heading Demo page, the source path, switch Enable, A dependency-free fixture for the Canvas Extension page ABI., text Disabled v0.1.0 Pages: 1, list item Hello from an extension, buttons Update and Uninstall. control-openhands browser screenshot --feature F20.card --name disabled.

  • Trust confirmation (F20.enable-confirm). Run control-openhands browser click 'testid=canvas-extension-card-demo-page >> role=switch' and control-openhands browser snapshot 'testid=confirmation-modal': the paragraph This app runs trusted JavaScript inside Agent Canvas and can make authenticated requests to the active Agent Server. Review its source and revision before enabling it., buttons Cancel and Enable trusted app. control-openhands browser click 'testid=confirmation-modal >> testid=cancel-button' closes it and aria-checked stays false. Keyboard: control-openhands browser focus 'testid=canvas-extension-card-demo-page >> role=switch' and control-openhands browser press Space open it again (browser count 'testid=confirmation-modal' is 1); control-openhands browser press Escape closes it and api GET /api/canvas-extensions/installed still says "enabled": false. Backdrop: click the switch again, control-openhands browser mouse-click 20 500, then browser count 'testid=confirmation-modal' is 0 and the API still says "enabled": false. Reopen with the click, then control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button', control-openhands browser reload and read aria-checked: true; control-openhands browser text 'testid=canvas-extension-card-demo-page' contains Enabled.

  • Rail entry (F20.rail-entry, F20.rail-label). After enabling, run control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --timeout 10000, control-openhands browser attr 'testid=sidebar-canvas-extension-demo-page-hello' href (/extensions/demo-page/hello) and control-openhands browser text 'testid=sidebar-canvas-extension-demo-page-hello'. Expected Extension demo (the fixture's nav_label); today it reads Hello from an extension (see Gotchas).

  • Render the page (F20.page-render). Run control-openhands browser click 'testid=sidebar-canvas-extension-demo-page-hello' --expect-url '/extensions/demo-page/hello(\?|$)' and control-openhands browser snapshot 'role=main[name="Hello from an extension"]': heading Hello from a Canvas Extension and paragraph Host API 1 on backend default-local. Direct URL: control-openhands browser goto /extensions/demo-page/hello/nested and the same snapshot show the paragraph Nested extension path: nested. control-openhands browser screenshot --feature F20.page-render --name rail. The browser tab names the app page: control-openhands browser eval "document.title" on /extensions/demo-page/hello (and its nested path) should read the page title with an app suffix (Hello from an extension - OpenHands App), and leaving the app restores the normal title. Known failure (reproduced 2026-10-17, #18557): document.title is OpenHands after the rail click, on the direct and nested URLs, twice.

  • App backend view (F20.app-backend-view). Still on /extensions/demo-page/hello/nested (where Render the page ends) run control-openhands browser text 'testid=demo-extension-app-backend-status', control-openhands api GET /server_info --pick capabilities and control-openhands api GET /server_info --pick app_backend_ingress_url. The host hands a page appBackendView only when the capabilities list canvas_app_backend_bridge_v1 and the ingress URL is not null: with the pinned server and no ingress configured (1.55.1: neither) the line reads App backend view unavailable; a server advertising both would make the demo read App backend view available (the positive fixture below was driven separately). control-openhands browser goto /extensions/demo-page/hello shows the same line, control-openhands browser snapshot 'role=main[name="Hello from an extension"]' lists it as the last paragraph, and control-openhands browser screenshot --feature F20.app-backend-view --name unavailable. For the positive path use the checked-in real bridge fixture on an owned Linux amd64 SDK 1.55.1 run. Its helper backs up and arranges only the standard loopback ingress field; restart and doctor the owned run, install/trust the fixture through Apps, then prepare/start the exact backend revision. Open its rail page: a real iframe returns QA_HTTP_7731 with control-key/cookie presence both false. Require actual negotiated qa.echo.v1 and echo QA_ECHO_7731 for the WebSocket branch, not merely an HTTP success. Navigating away disposes the admitted session; a bounded owned backend pause exposes Retry/Open in new tab, and recovery restores the marker. The 2026-10-17 live drive proved these HTTP/session/recovery paths; the three known SDK failures below remain. Stop/uninstall the fixture, restore the saved ingress field and restart/doctor even after a failed drive. The fixture diagnostic text is not a phone-containment specification.

  • Active and collapsed rail entry (F20.rail-active). With the demo enabled, run control-openhands browser goto /apps; control-openhands browser attr 'testid=sidebar-canvas-extension-demo-page-hello' aria-current is null; after control-openhands browser click 'testid=sidebar-canvas-extension-demo-page-hello' --expect-url '/extensions/demo-page/hello(\?|$)' it is page. Run control-openhands browser click 'testid=sidebar-collapse-toggle': browser visible 'testid=sidebar-canvas-extension-demo-page-hello' stays true (about 40 px wide), browser attr ... aria-label and control-openhands browser tooltip 'testid=sidebar-canvas-extension-demo-page-hello' read Hello from an extension; control-openhands browser screenshot --feature F20.rail-active --name collapsed shows the highlighted icon. Expand again with browser click 'testid=sidebar-collapse-toggle' (its aria-label is Collapse sidebar again). Command menu: browser goto /, browser press Control+k, browser type 'testid=command-menu >> role=combobox' Hello and browser snapshot 'testid=command-menu' read No commands found; browser press Escape.

  • Unavailable page (F20.page-unavailable). Run control-openhands browser goto /extensions/qa-missing/x and control-openhands browser snapshot 'role=main': heading Not available and This app is disabled, missing, or does not provide this page. control-openhands browser goto /extensions/demo-page/nope shows the same card while the demo is enabled.

  • Phone (F20.phone). Run control-openhands browser viewport phone, control-openhands browser goto /customize (the URL stays /customize), control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/apps' --expect-url '/apps(\?|$)', control-openhands browser bbox 'testid=canvas-extensions-screen' (insideViewport true, pageHorizontalOverflow false) and control-openhands browser screenshot --feature F20.phone --name apps. Open the form with canvas-extensions-add-button; control-openhands browser bbox 'testid=add-canvas-extension-modal' is inside the viewport with no page overflow; close it with add-canvas-extension-dismiss. Then control-openhands browser click 'testid=sidebar-mobile-menu-toggle', control-openhands browser visible 'testid=sidebar-mobile-drawer >> testid=sidebar-canvas-extension-demo-page-hello' (true), control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=sidebar-canvas-extension-demo-page-hello' --expect-url '/extensions/demo-page/hello(\?|$)' and control-openhands browser bbox 'role=main[name="Hello from an extension"]' (inside, no overflow). Return with control-openhands browser viewport desktop.

  • Update (F20.refresh). Note installed_at from control-openhands api GET /api/canvas-extensions/installed, then on /apps (control-openhands browser goto /apps; Phone ends on the extension page) run control-openhands browser click 'testid=canvas-extension-refresh-demo-page' and control-openhands browser toasts (App updated.). The API shows a newer installed_at and keeps "enabled": true; browser count 'testid=sidebar-canvas-extension-demo-page-hello' stays 1.

  • Survives a restart (F20.persist-restart). Run control-openhands restart, control-openhands doctor, control-openhands browser goto /, control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --timeout 15000, then control-openhands browser goto /apps and read the switch's aria-checked: true.

  • Update with the backend down (F20.refresh). On /apps run control-openhands service stop agent-server, control-openhands browser click 'testid=canvas-extension-refresh-demo-page' and control-openhands browser toasts: one toast, An error occurred (the ingress answers the Update's POST /api/canvas-extensions/install with a 502 that carries no server reason; see Gotchas), and the card still shows Enabled (browser screenshot --feature F20.refresh --name backend-down). Bring the stack back with control-openhands restart and control-openhands doctor before going on.

  • Disable (F20.disable). On /apps run control-openhands browser click 'testid=canvas-extension-card-demo-page >> role=switch'; control-openhands browser count 'testid=confirmation-modal' is 0 and control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --state detached --timeout 10000 succeeds. After control-openhands browser reload the switch's aria-checked is false; control-openhands browser goto /extensions/demo-page/hello and browser snapshot 'role=main' show Not available.

  • Uninstall (F20.uninstall). Re-enable the demo on /apps (control-openhands browser goto /apps, since Disable ends on the extension page; the switch, then testid=confirmation-modal >> testid=confirm-button, then browser wait 'testid=sidebar-canvas-extension-demo-page-hello'). Run control-openhands browser click 'testid=canvas-extension-uninstall-demo-page' and control-openhands browser snapshot 'testid=confirmation-modal': Uninstall Demo page from this backend?, buttons Cancel and Confirm. control-openhands browser press Escape leaves browser count 'testid=canvas-extension-card-demo-page' at 1; so does clicking Uninstall again and control-openhands browser click 'testid=confirmation-modal >> testid=cancel-button'. Click Uninstall again, control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button' and control-openhands browser toasts (App uninstalled.); control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --state detached --timeout 10000 succeeds. After control-openhands browser reload the card count is 0, the page shows No apps are installed on this backend., and /extensions/demo-page/hello shows Not available. The Uninstall label stays at least 4.5:1 against the card, normal and hovered, in all five themes at desktop and phone width (it uses the theme's error colour).

  • Local source plus Path (F20.install). Run control-openhands browser goto /apps (the Uninstall check ends on /extensions/demo-page/hello), control-openhands browser click 'testid=canvas-extensions-add-button', control-openhands browser fill 'testid=add-canvas-extension-source-input' "$PWD/src/fixtures/canvas-extensions", control-openhands browser fill 'testid=add-canvas-extension-repo-path-input' demo-page, control-openhands browser click 'testid=add-canvas-extension-submit' and control-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 30000. The toast is App installed. … and api GET /api/canvas-extensions/installed shows "source" ending in /src/fixtures/canvas-extensions/demo-page with "repo_path": null. Uninstall it as above (switch untouched, so no rail check).

  • Git tree URL (F20.git-tree-url). Needs the Git precondition (upstream reachable, fixture identical). Run control-openhands browser click 'testid=canvas-extensions-add-button', control-openhands browser fill 'testid=add-canvas-extension-source-input' 'https://github.com/OpenHands/OpenHands/tree/main/src/fixtures/canvas-extensions/demo-page' (Ref and Path empty), control-openhands browser click 'testid=add-canvas-extension-submit' --observe 'testid=add-canvas-extension-submit' (Installing… [disabled] for about 0.4 to 2 s, then <absent>) and control-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 90000; the toast is App installed. …. After control-openhands browser reload, control-openhands browser snapshot 'testid=canvas-extension-card-demo-page' shows source https://github.com/OpenHands/OpenHands, switch Enable, term Ref with the 40-character commit from the precondition and term Path with src/fixtures/canvas-extensions/demo-page; api GET /api/canvas-extensions/installed has the same source, resolved_ref and repo_path. control-openhands browser screenshot --feature F20.git-tree-url --name card.

  • Duplicate install (F20.install-duplicate). With the Git-installed demo present, run control-openhands browser errors --clear, control-openhands browser click 'testid=canvas-extensions-add-button', control-openhands browser fill 'testid=add-canvas-extension-source-input' "$PWD/src/fixtures/canvas-extensions/demo-page", control-openhands browser click 'testid=add-canvas-extension-submit' and control-openhands browser wait 'testid=add-canvas-extension-submit >> text=Install' --timeout 30000. control-openhands browser toasts reads This app is already installed. Use Update or Uninstall on its card. (browser screenshot --feature F20.install-duplicate --name already-installed), browser count 'testid=add-canvas-extension-modal' stays 1, browser count '[data-testid^="canvas-extension-card-"]' stays 1, api GET /api/canvas-extensions/installed still shows the GitHub source, and browser errors --app-only lists the expected 409 on POST /api/canvas-extensions/install. Close the form with control-openhands browser press Escape.

  • Busy lock (F20.busy-lock). Needs the Git-installed demo from the Git tree URL bullet: its Update re-clones in about 0.4 to 2 s, so issue the next commands in the same shell line as the click. Disabled app: run control-openhands browser click 'testid=canvas-extension-refresh-demo-page', then at once control-openhands browser press Space --selector 'testid=canvas-extension-card-demo-page >> role=switch' (focuses the switch, then presses Space) and control-openhands browser eval "[document.querySelector('[data-testid=canvas-extension-uninstall-demo-page]').disabled, document.querySelector('[data-testid=canvas-extension-card-demo-page] [role=switch]').disabled, document.activeElement.tagName].join(' ')", which reads true true BODY (Uninstall and the switch are both disabled, and the busy switch takes no focus), then control-openhands browser count 'testid=confirmation-modal' (0: Space did nothing). Read the three values in that one eval: each browser enabled call takes about 150 ms and can land after a short Update. If the eval reads false for either control, the Update ended mid-line and Space may have reached an idle switch: close any trust dialog with control-openhands browser click 'testid=confirmation-modal >> testid=cancel-button' and run the line again. Once control-openhands browser toasts --history shows App updated., the keyboard works again: browser enabled on the switch is true, and browser focus on it, browser press Space and browser count 'testid=confirmation-modal' give 1. Close the dialog with testid=confirmation-modal >> testid=cancel-button; api GET /api/canvas-extensions/installed --pick canvas_extensions.0.enabled is still false. Enabled app (only when the card's Ref equals the precondition's commit): enable it through the trust dialog and wait for sidebar-canvas-extension-demo-page-hello, then repeat the same line (click Update, Space on the switch, the eval reads true true BODY, no dialog). If the eval reads false for either control there and Space reached the idle switch, it turned the app off with no dialog (api GET /api/canvas-extensions/installed --pick canvas_extensions.0.enabled is false): enable it again through the trust dialog, wait for sidebar-canvas-extension-demo-page-hello and repeat the line. A few seconds later api GET /api/canvas-extensions/installed --pick canvas_extensions.0.enabled is still true, and after browser reload the switch's aria-checked is true and browser count 'testid=sidebar-canvas-extension-demo-page-hello' is 1. Clean up: uninstall as above and confirm api GET /api/canvas-extensions/installed --pick canvas_extensions is [].

  • Ref and Path with the github: shorthand (F20.git-ref-path). Needs the Git precondition. Run control-openhands browser click 'testid=canvas-extensions-add-button', control-openhands browser fill 'testid=add-canvas-extension-source-input' 'github:OpenHands/OpenHands', control-openhands browser fill 'testid=add-canvas-extension-ref-input' main, control-openhands browser fill 'testid=add-canvas-extension-repo-path-input' src/fixtures/canvas-extensions/demo-page, control-openhands browser focus 'testid=add-canvas-extension-repo-path-input', control-openhands browser press Enter (Enter submits) and control-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 90000; the toast is App installed. …. After control-openhands browser reload, browser snapshot 'testid=canvas-extension-card-demo-page' shows source github:OpenHands/OpenHands, Ref with the precondition's commit and Path src/fixtures/canvas-extensions/demo-page. Uninstall it as above.

  • List error with Retry (F20.load-error). On a disposable run you own, first uninstall its apps and verify api GET /api/canvas-extensions/installed returns canvas_extensions: []; never apply this arrangement to an operator's installation. Keep the SDK running. Open /plugins, privately save stat.S_IMODE((RUN / "private/canvas-extensions/installed").stat().st_mode), then temporarily set only that owned empty installation directory's mode to 0 in a Python try/finally. Require api GET /server_info to remain 200 and the actual installed-list request to return non-404 500 (PermissionError). Click testid=sidebar-extensions-/apps, wait for role=button[name="Retry"], read the error and screenshot. In finally, restore the exact saved mode before any further action; doctor the same run. Click the actual Retry button and wait for No apps are installed on this backend.; independent installed-list read must return 200/empty again. This is a real filesystem I/O failure, with no request interception or product changes. The tested fixture directory was <owned-run>/private/canvas-extensions/installed; a guessed canvas-extensions-load-error testid does not exist. Stopping the SDK instead exercises the app-wide Manage backends gate.

  • Unsupported backends (F20.unsupported). Blocked: needs a Cloud backend account (Apps are not available on Cloud backends yet., Apps hidden from Customize), a state with no backend (Add an Agent Server backend to use Apps.), or an Agent Server that passes Canvas's version gate (1.47.0 or newer) but has no /api/canvas-extensions routes (This Agent Server does not support Apps yet. Upgrade the backend and try again.). In each case Add app should be disabled. Released servers cannot produce the last state: the routes ship from 1.44.1, and an older server such as control-openhands launch --new --sdk-ref v1.43.1 (whose GET /api/canvas-extensions/installed is 404) never reaches /apps, because every page shows the Manage backends gate with Agent Canvas requires agent-server 1.47.0 or newer; this backend is running 1.43.1. (doctor still reports ok).

  • Malformed tree-URL escapes (F20.git-tree-url, F20.install-error). On /apps, open canvas-extensions-add-button, fill add-canvas-extension-source-input with https://github.com/o/r/tree/main%/apps/demo, and click add-canvas-extension-submit. Inspect browser errors --app-only, browser toasts --history, and the modal count. Repeat with https://gitlab.com/group/repo/-/tree/main/apps/%E0%A4%A. Expected: submission produces a usable install/validation outcome. Known failure, reproduced 2026-10-12 on fa1f724 with Agent Server 1.54.0: each submit raises URI malformed, emits no toast, skips the install request, and leaves the modal open (#17783). A reviewed local demo source still installs successfully as the control; no malformed source is executed.

  • Extension page home pin (F20.rail-entry). Install and enable the reviewed local src/fixtures/canvas-extensions/demo-page through the form and trust confirmation. Hover sidebar-canvas-extension-demo-page-hello, inspect browser testids 'role=complementary' --filter pin, and compare with hovering sidebar-automations-link. Expected: the enabled extension page offers Pin as home page and the normal home-pin lifecycle. Known failure, reproduced 2026-10-12 on fa1f724: only Automate exposes sidebar-pin-home-toggle-automations; the extension page has no pin control (#16995).

Gotchas

  • The card's refresh button (canvas-extension-refresh-<name>) is labelled Update, not "Refresh".
  • The trust confirmation has no title and reuses the shared confirmation-modal; its body repeats the amber notice. Space on the disabled app's Enable switch focuses Cancel. Tab and Shift+Tab wrap between Cancel and Enable trusted app; Escape and Cancel close it and restore focus to the still-disabled Enable switch.
  • nav_label is dropped by the Agent Server: GET /api/canvas-extensions/installed returns pages with only id, title and path (Agent Server 1.50.1), so the rail shows the page title (OpenHands/software-agent-sdk#5501). Keep F20.rail-label failing until the backend returns it.
  • Install and update errors show the server's reason as sent, even when it says Failed to fetch extension from <url> (an unreachable Git source). A response with no reason in it, such as the ingress's 502 while the Agent Server is stopped, shows the generic An error occurred. Only a request that gets no response at all shows Disconnected (check URL or network)…; no control-openhands verb takes the ingress offline, so that state is not driven here.
  • The page states (empty, error, unsupported) and the /extensions/... unavailable card have no test ids; assert on text with browser snapshot.
  • The Agent Server fetches Git sources with a shallow clone and appends .git to the repo URL: a test Git server must speak smart HTTP and answer both qa-repo and qa-repo.git.
  • The Git bullets read the public upstream repo, so they depend on its main still holding the identical fixture; the precondition's diff -r guards that. A Git install or Update clones in about 0.4 to 2 s here (Updates measured about 0.4 to 1.5 s on 2026-10-06), long enough for the busy-lock checks when they run in the same shell line as the click and read both controls in one eval; on a slower network raise the wait timeouts, not the expectations.
  • A duplicate install answers 409 with the Agent Server's API hint (Canvas extension already installed. Use force=true to overwrite.); the form has no force option, so the toast replaces it with the Update/Uninstall advice. Plugins give the same advice since #18110 (F19 Gotchas).
  • Busy states with a local-path source last about 50 ms: --observe catches Installing…, but checking that controls are disabled during Update needs a Git source (an upstream Update lasts about 0.4 to 2 s).
  • control-openhands launch passes the launcher only a fixed list of environment variables (path, locale, proxy) plus its own flags: OH_AGENT_SERVER_VERSION=<old> in the environment is ignored (the run still gets the pinned server); use --sdk-ref v<version>. Any server older than 1.47.0 is gated by Canvas before /apps renders.
  • Stopping the Agent Server makes the next full page load show the Manage backends gate; always restart and doctor afterwards.
  • A trailing browser errors --app-only sweep shows a 400 per failed install by design; count only other errors.
  • App backend view unavailable on the demo page is the expected text while GET /server_info lists no canvas_app_backend_bridge_v1 capability (Agent Server 1.55.1 with no app-backend ingress configured); it does not mean the app failed to load. Cloud backends and the no-backend state never get a backend view either.
  • Known failure (reproduced 2026-10-17, OpenHands/software-agent-sdk#5648, SDK 1.55.1, F20.app-backend-view): a genuine admitted app-backend WebSocket offers qa.echo.v1, but the proxy does not negotiate it and Chromium rejects the handshake. Two UI mounts reproduced; a separate direct owned backend control negotiated the protocol and echoed the fixed marker. The positive control is not a proxied UI pass. Platform-matching artifacts and configured ingress are available here; native macOS and other artifact platforms remain separate prerequisites.
  • Known failure (reproduced 2026-10-17, OpenHands/software-agent-sdk#5935, SDK 1.55.1, F20.app-backend-view): with an owned JSON app_backend_public_url plus explicit OH_APP_BACKEND_PUBLIC_URL_IS_NONE=1, the actual server still advertises the ingress/capability and admits the app view. Expected: the null override suppresses it. The conflicting standard configuration sources were arranged and restored, not inferred from a default server.
  • Known failure (reproduced twice 2026-10-19, OpenHands/software-agent-sdk#5914, SDK 1.55.1, F20.app-backend-view): the real admitted HTTP response joins duplicate Date values and exposes Server: uvicorn, QAOwnedBridge/1 Python/<version> (the fixture result's http.date and http.server). The SDK fix (software-agent-sdk#5916) is not in the pinned 1.55.1; re-drive when the pin moves past it. Checked-in fixture drives reproduced; a direct request alone was not counted as proxy proof. Preserve the expected valid single response headers; no paired fix retirement is claimed.