🙌 OpenHands: AI-Driven Development
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/extensionspage and no "Apps" command.F20.page:/appsshows 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…, toastsApp 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'sgithub:owner/reposhorthand; 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, arole=switch(Enable/Disable), the description,Disabled/Enabled,v<version>andPages: Npills, 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 assidebar-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 andaria-labelcarry the label. App pages are not listed in the command menu.F20.rail-label: the rail entry is labelled with the page'snav_label(Extension demofor the demo fixture), falling back to its title.F20.page-render: the rail entry and the direct URL mount the app intomainnamed after the page title (demo: h1Hello 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 staysOpenHandsinstead 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 receiveshost.appBackendViewonly when the Agent Server advertisescanvas_app_backend_bridge_v1with 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, toastsApp 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 asksUninstall <display name> from this backend?; Escape or Cancel keep the app, Confirm toastsApp 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+korcommand-menu-trigger): searchCustomize, Enter (lands on/mcp), then Apps. SearchingAppsfinds nothing. - Phone:
/customizeshows 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 --skipdone) on the launcher's local Agent Server. No LLM is needed.No app is installed:
control-openhands api GET /api/canvas-extensions/installedreturns"canvas_extensions": [].Run commands from the checkout root: recipes install the bundled, reviewed fixture
$PWD/src/fixtures/canvas-extensions/demo-page(namedemo-page, display nameDemo page, one pagehelloat/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/OpenHandsanonymously (read-only; no account needed), and that repo'smainholds the same reviewed fixture atsrc/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 HEADmust 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, butcontrol-openhandshas no verb for one; dumb HTTP such aspython3 -m http.serverfails the Agent Server's fetch).Desktop viewport unless a bullet says otherwise.
Sidebar entry and empty page (
F20.entry-points,F20.page). From/runcontrol-openhands browser click 'testid=sidebar-skills-link' --expect-url '/mcp(\?|$)',control-openhands browser click 'testid=sidebar-extensions-/apps' --expect-url '/apps(\?|$)', thencontrol-openhands browser snapshot 'testid=canvas-extensions-screen >> main'. The snapshot shows headingApps for Agent Canvas, the descriptionApps are built with the Canvas Extensions API, linkBuild an app, buttonAdd app, the trust notice, headingInstalled appsand paragraphNo apps are installed on this backend.control-openhands browser enabled 'testid=canvas-extensions-add-button'istrueandcontrol-openhands browser attr 'role=link[name="Build an app"]' targetis_blank.control-openhands browser screenshot --feature F20.page --name empty.Command-menu entry (
F20.entry-points). From/runcontrol-openhands browser press Control+k,control-openhands browser type 'testid=command-menu >> role=combobox' Appsandcontrol-openhands browser snapshot 'testid=command-menu': it readsNo commands found. Thencontrol-openhands browser fill 'testid=command-menu >> role=combobox' Customize,control-openhands browser press Enter,control-openhands browser wait-url '/mcp(\?|$)'andcontrol-openhands browser click 'testid=sidebar-extensions-/apps' --expect-url '/apps(\?|$)'.control-openhands browser goto /extensionsandcontrol-openhands browser snapshot 'testid=not-found-screen'show the app's not-found page, like any unknown path: headingPage not found,This address does not match any page. Check the URL, or go back to the home page.and linkHome.Add form and its closers (
F20.add-modal). On/apps(control-openhands browser goto /apps; the previous bullet ends on the/extensionsnot-found page) runcontrol-openhands browser click 'testid=canvas-extensions-add-button'andcontrol-openhands browser snapshot 'testid=add-canvas-extension-modal': headingAdd app, introInstall from a Git source or a path on the active Agent Server. The app will be installed disabled., textboxesApp source,Ref Optional,Path Optional, buttonsCloseandInstall [disabled]. Aftercontrol-openhands browser fill 'testid=add-canvas-extension-source-input' ' ',control-openhands browser enabled 'testid=add-canvas-extension-submit'is stillfalse. Each ofcontrol-openhands browser click 'testid=add-canvas-extension-dismiss',control-openhands browser click 'testid=add-canvas-extension-modal-close',control-openhands browser press Escapeandcontrol-openhands browser mouse-click 20 500(backdrop) closes it:control-openhands browser count 'testid=add-canvas-extension-modal'is0(reopen withcanvas-extensions-add-buttonbetween them).Install error, local path (
F20.install-error). Open the form, runcontrol-openhands browser fill 'testid=add-canvas-extension-source-input' /nonexistent/qa-app,control-openhands browser click 'testid=add-canvas-extension-submit', thencontrol-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'stays1and the input keeps its value.control-openhands browser errors --app-onlylists the expected400onPOST /api/canvas-extensions/install.Install error, Git source (
F20.install-error). In the same form runcontrol-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, thencontrol-openhands browser toasts --historyandcontrol-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 toastsmay still list the local-path toast below it). The form stays open with the URL.Install the demo (
F20.install). In the open form runcontrol-openhands browser fill 'testid=add-canvas-extension-source-input' "$PWD/src/fixtures/canvas-extensions/demo-page"andcontrol-openhands browser click 'testid=add-canvas-extension-submit' --observe 'testid=add-canvas-extension-submit': the observed states areInstall,Installing… [disabled],<absent>.control-openhands browser toastsshowsApp installed. Review it here, then enable it when you are ready.Thencontrol-openhands browser reload,control-openhands browser attr 'testid=canvas-extension-card-demo-page >> role=switch' aria-checked(false) andcontrol-openhands browser count 'testid=sidebar-canvas-extension-demo-page-hello'(0).Card (
F20.card). Runcontrol-openhands browser snapshot 'testid=canvas-extension-card-demo-page': headingDemo page, the source path, switchEnable,A dependency-free fixture for the Canvas Extension page ABI., textDisabled v0.1.0 Pages: 1, list itemHello from an extension, buttonsUpdateandUninstall.control-openhands browser screenshot --feature F20.card --name disabled.Trust confirmation (
F20.enable-confirm). Runcontrol-openhands browser click 'testid=canvas-extension-card-demo-page >> role=switch'andcontrol-openhands browser snapshot 'testid=confirmation-modal': the paragraphThis 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., buttonsCancelandEnable trusted app.control-openhands browser click 'testid=confirmation-modal >> testid=cancel-button'closes it andaria-checkedstaysfalse. Keyboard:control-openhands browser focus 'testid=canvas-extension-card-demo-page >> role=switch'andcontrol-openhands browser press Spaceopen it again (browser count 'testid=confirmation-modal'is1);control-openhands browser press Escapecloses it andapi GET /api/canvas-extensions/installedstill says"enabled": false. Backdrop: click the switch again,control-openhands browser mouse-click 20 500, thenbrowser count 'testid=confirmation-modal'is0and the API still says"enabled": false. Reopen with the click, thencontrol-openhands browser click 'testid=confirmation-modal >> testid=confirm-button',control-openhands browser reloadand readaria-checked:true;control-openhands browser text 'testid=canvas-extension-card-demo-page'containsEnabled.Rail entry (
F20.rail-entry,F20.rail-label). After enabling, runcontrol-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) andcontrol-openhands browser text 'testid=sidebar-canvas-extension-demo-page-hello'. ExpectedExtension demo(the fixture'snav_label); today it readsHello from an extension(see Gotchas).Render the page (
F20.page-render). Runcontrol-openhands browser click 'testid=sidebar-canvas-extension-demo-page-hello' --expect-url '/extensions/demo-page/hello(\?|$)'andcontrol-openhands browser snapshot 'role=main[name="Hello from an extension"]': headingHello from a Canvas Extensionand paragraphHost API 1 on backend default-local. Direct URL:control-openhands browser goto /extensions/demo-page/hello/nestedand the same snapshot show the paragraphNested 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.titleisOpenHandsafter 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) runcontrol-openhands browser text 'testid=demo-extension-app-backend-status',control-openhands api GET /server_info --pick capabilitiesandcontrol-openhands api GET /server_info --pick app_backend_ingress_url. The host hands a pageappBackendViewonly when the capabilities listcanvas_app_backend_bridge_v1and the ingress URL is notnull: with the pinned server and no ingress configured (1.55.1: neither) the line readsApp backend view unavailable; a server advertising both would make the demo readApp backend view available(the positive fixture below was driven separately).control-openhands browser goto /extensions/demo-page/helloshows the same line,control-openhands browser snapshot 'role=main[name="Hello from an extension"]'lists it as the last paragraph, andcontrol-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 returnsQA_HTTP_7731with control-key/cookie presence both false. Require actual negotiatedqa.echo.v1and echoQA_ECHO_7731for 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, runcontrol-openhands browser goto /apps;control-openhands browser attr 'testid=sidebar-canvas-extension-demo-page-hello' aria-currentisnull; aftercontrol-openhands browser click 'testid=sidebar-canvas-extension-demo-page-hello' --expect-url '/extensions/demo-page/hello(\?|$)'it ispage. Runcontrol-openhands browser click 'testid=sidebar-collapse-toggle':browser visible 'testid=sidebar-canvas-extension-demo-page-hello'staystrue(about 40 px wide),browser attr ... aria-labelandcontrol-openhands browser tooltip 'testid=sidebar-canvas-extension-demo-page-hello'readHello from an extension;control-openhands browser screenshot --feature F20.rail-active --name collapsedshows the highlighted icon. Expand again withbrowser click 'testid=sidebar-collapse-toggle'(itsaria-labelisCollapse sidebaragain). Command menu:browser goto /,browser press Control+k,browser type 'testid=command-menu >> role=combobox' Helloandbrowser snapshot 'testid=command-menu'readNo commands found;browser press Escape.Unavailable page (
F20.page-unavailable). Runcontrol-openhands browser goto /extensions/qa-missing/xandcontrol-openhands browser snapshot 'role=main': headingNot availableandThis app is disabled, missing, or does not provide this page.control-openhands browser goto /extensions/demo-page/nopeshows the same card while the demo is enabled.Phone (
F20.phone). Runcontrol-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'(insideViewporttrue,pageHorizontalOverflowfalse) andcontrol-openhands browser screenshot --feature F20.phone --name apps. Open the form withcanvas-extensions-add-button;control-openhands browser bbox 'testid=add-canvas-extension-modal'is inside the viewport with no page overflow; close it withadd-canvas-extension-dismiss. Thencontrol-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(\?|$)'andcontrol-openhands browser bbox 'role=main[name="Hello from an extension"]'(inside, no overflow). Return withcontrol-openhands browser viewport desktop.Update (
F20.refresh). Noteinstalled_atfromcontrol-openhands api GET /api/canvas-extensions/installed, then on/apps(control-openhands browser goto /apps; Phone ends on the extension page) runcontrol-openhands browser click 'testid=canvas-extension-refresh-demo-page'andcontrol-openhands browser toasts(App updated.). The API shows a newerinstalled_atand keeps"enabled": true;browser count 'testid=sidebar-canvas-extension-demo-page-hello'stays1.Survives a restart (
F20.persist-restart). Runcontrol-openhands restart,control-openhands doctor,control-openhands browser goto /,control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --timeout 15000, thencontrol-openhands browser goto /appsand read the switch'saria-checked:true.Update with the backend down (
F20.refresh). On/appsruncontrol-openhands service stop agent-server,control-openhands browser click 'testid=canvas-extension-refresh-demo-page'andcontrol-openhands browser toasts: one toast,An error occurred(the ingress answers the Update'sPOST /api/canvas-extensions/installwith a502that carries no server reason; see Gotchas), and the card still showsEnabled(browser screenshot --feature F20.refresh --name backend-down). Bring the stack back withcontrol-openhands restartandcontrol-openhands doctorbefore going on.Disable (
F20.disable). On/appsruncontrol-openhands browser click 'testid=canvas-extension-card-demo-page >> role=switch';control-openhands browser count 'testid=confirmation-modal'is0andcontrol-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --state detached --timeout 10000succeeds. Aftercontrol-openhands browser reloadthe switch'saria-checkedisfalse;control-openhands browser goto /extensions/demo-page/helloandbrowser snapshot 'role=main'showNot available.Uninstall (
F20.uninstall). Re-enable the demo on/apps(control-openhands browser goto /apps, since Disable ends on the extension page; the switch, thentestid=confirmation-modal >> testid=confirm-button, thenbrowser wait 'testid=sidebar-canvas-extension-demo-page-hello'). Runcontrol-openhands browser click 'testid=canvas-extension-uninstall-demo-page'andcontrol-openhands browser snapshot 'testid=confirmation-modal':Uninstall Demo page from this backend?, buttonsCancelandConfirm.control-openhands browser press Escapeleavesbrowser count 'testid=canvas-extension-card-demo-page'at1; so does clicking Uninstall again andcontrol-openhands browser click 'testid=confirmation-modal >> testid=cancel-button'. Click Uninstall again,control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button'andcontrol-openhands browser toasts(App uninstalled.);control-openhands browser wait 'testid=sidebar-canvas-extension-demo-page-hello' --state detached --timeout 10000succeeds. Aftercontrol-openhands browser reloadthe card count is0, the page showsNo apps are installed on this backend., and/extensions/demo-page/helloshowsNot 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). Runcontrol-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'andcontrol-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 30000. The toast isApp installed. …andapi GET /api/canvas-extensions/installedshows"source"ending in/src/fixtures/canvas-extensions/demo-pagewith"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). Runcontrol-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>) andcontrol-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 90000; the toast isApp installed. …. Aftercontrol-openhands browser reload,control-openhands browser snapshot 'testid=canvas-extension-card-demo-page'shows sourcehttps://github.com/OpenHands/OpenHands, switchEnable, termRefwith the 40-character commit from the precondition and termPathwithsrc/fixtures/canvas-extensions/demo-page;api GET /api/canvas-extensions/installedhas the samesource,resolved_refandrepo_path.control-openhands browser screenshot --feature F20.git-tree-url --name card.Duplicate install (
F20.install-duplicate). With the Git-installed demo present, runcontrol-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'andcontrol-openhands browser wait 'testid=add-canvas-extension-submit >> text=Install' --timeout 30000.control-openhands browser toastsreadsThis 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'stays1,browser count '[data-testid^="canvas-extension-card-"]'stays1,api GET /api/canvas-extensions/installedstill shows the GitHubsource, andbrowser errors --app-onlylists the expected409onPOST /api/canvas-extensions/install. Close the form withcontrol-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: runcontrol-openhands browser click 'testid=canvas-extension-refresh-demo-page', then at oncecontrol-openhands browser press Space --selector 'testid=canvas-extension-card-demo-page >> role=switch'(focuses the switch, then presses Space) andcontrol-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 readstrue true BODY(Uninstall and the switch are both disabled, and the busy switch takes no focus), thencontrol-openhands browser count 'testid=confirmation-modal'(0: Space did nothing). Read the three values in that oneeval: eachbrowser enabledcall takes about 150 ms and can land after a short Update. If theevalreadsfalsefor either control, the Update ended mid-line and Space may have reached an idle switch: close any trust dialog withcontrol-openhands browser click 'testid=confirmation-modal >> testid=cancel-button'and run the line again. Oncecontrol-openhands browser toasts --historyshowsApp updated., the keyboard works again:browser enabledon the switch istrue, andbrowser focuson it,browser press Spaceandbrowser count 'testid=confirmation-modal'give1. Close the dialog withtestid=confirmation-modal >> testid=cancel-button;api GET /api/canvas-extensions/installed --pick canvas_extensions.0.enabledis stillfalse. Enabled app (only when the card's Ref equals the precondition's commit): enable it through the trust dialog and wait forsidebar-canvas-extension-demo-page-hello, then repeat the same line (click Update, Space on the switch, theevalreadstrue true BODY, no dialog). If theevalreadsfalsefor 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.enabledisfalse): enable it again through the trust dialog, wait forsidebar-canvas-extension-demo-page-helloand repeat the line. A few seconds laterapi GET /api/canvas-extensions/installed --pick canvas_extensions.0.enabledis stilltrue, and afterbrowser reloadthe switch'saria-checkedistrueandbrowser count 'testid=sidebar-canvas-extension-demo-page-hello'is1. Clean up: uninstall as above and confirmapi GET /api/canvas-extensions/installed --pick canvas_extensionsis[].Ref and Path with the
github:shorthand (F20.git-ref-path). Needs the Git precondition. Runcontrol-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) andcontrol-openhands browser wait 'testid=add-canvas-extension-modal' --state detached --timeout 90000; the toast isApp installed. …. Aftercontrol-openhands browser reload,browser snapshot 'testid=canvas-extension-card-demo-page'shows sourcegithub:OpenHands/OpenHands,Refwith the precondition's commit andPathsrc/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 verifyapi GET /api/canvas-extensions/installedreturnscanvas_extensions: []; never apply this arrangement to an operator's installation. Keep the SDK running. Open/plugins, privately savestat.S_IMODE((RUN / "private/canvas-extensions/installed").stat().st_mode), then temporarily set only that owned empty installation directory's mode to0in a Pythontry/finally. Requireapi GET /server_infoto remain200and the actual installed-list request to return non-404500(PermissionError). Clicktestid=sidebar-extensions-/apps, wait forrole=button[name="Retry"], read the error and screenshot. Infinally, restore the exact saved mode before any further action; doctor the same run. Click the actual Retry button and wait forNo apps are installed on this backend.; independent installed-list read must return200/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 guessedcanvas-extensions-load-errortestid 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-extensionsroutes (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 ascontrol-openhands launch --new --sdk-ref v1.43.1(whoseGET /api/canvas-extensions/installedis404) never reaches/apps, because every page shows the Manage backends gate withAgent Canvas requires agent-server 1.47.0 or newer; this backend is running 1.43.1.(doctorstill reportsok).Malformed tree-URL escapes (
F20.git-tree-url,F20.install-error). On/apps, opencanvas-extensions-add-button, filladd-canvas-extension-source-inputwithhttps://github.com/o/r/tree/main%/apps/demo, and clickadd-canvas-extension-submit. Inspectbrowser errors --app-only,browser toasts --history, and the modal count. Repeat withhttps://gitlab.com/group/repo/-/tree/main/apps/%E0%A4%A. Expected: submission produces a usable install/validation outcome. Known failure, reproduced 2026-10-12 onfa1f724with Agent Server 1.54.0: each submit raisesURI 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 localsrc/fixtures/canvas-extensions/demo-pagethrough the form and trust confirmation. Hoversidebar-canvas-extension-demo-page-hello, inspectbrowser testids 'role=complementary' --filter pin, and compare with hoveringsidebar-automations-link. Expected: the enabled extension page offers Pin as home page and the normal home-pin lifecycle. Known failure, reproduced 2026-10-12 onfa1f724: only Automate exposessidebar-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_labelis dropped by the Agent Server:GET /api/canvas-extensions/installedreturns pages with onlyid,titleandpath(Agent Server 1.50.1), so the rail shows the page title (OpenHands/software-agent-sdk#5501). KeepF20.rail-labelfailing 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's502while the Agent Server is stopped, shows the genericAn error occurred. Only a request that gets no response at all showsDisconnected (check URL or network)…; nocontrol-openhandsverb 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 withbrowser snapshot. - The Agent Server fetches Git sources with a shallow clone and appends
.gitto the repo URL: a test Git server must speak smart HTTP and answer bothqa-repoandqa-repo.git. - The Git bullets read the public upstream repo, so they depend on its
mainstill holding the identical fixture; the precondition'sdiff -rguards 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 oneeval; on a slower network raise thewaittimeouts, not the expectations. - A duplicate install answers
409with 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:
--observecatchesInstalling…, but checking that controls are disabled during Update needs a Git source (an upstream Update lasts about 0.4 to 2 s). control-openhands launchpasses 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/appsrenders.- Stopping the Agent Server makes the next full page load show the Manage backends gate; always
restartanddoctorafterwards. - A trailing
browser errors --app-onlysweep shows a400per failed install by design; count only other errors. App backend view unavailableon the demo page is the expected text whileGET /server_infolists nocanvas_app_backend_bridge_v1capability (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 offersqa.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 JSONapp_backend_public_urlplus explicitOH_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 exposesServer: uvicorn, QAOwnedBridge/1 Python/<version>(the fixture result'shttp.dateandhttp.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.