π OpenHands: AI-Driven Development
OpenHands Agent Canvas feature map
This directory is the maintained source for verifying the user-facing behavior
of Agent Canvas. Read this index before driving the app, then open the matching
feature file and run its recipe with control-openhands. The map is not a claim
that every row passes today; the run's evidence ledger is.
Maintenance baseline: main@df87d66078f8e2a3bc95e2118157311896c8b79d (2026-10-22). The next maintenance pass starts from this commit; a pass proposes the next baseline in its PR, and merging that PR accepts it.
Baseline preconditions
control-openhandsis onPATH(see the skill).control-openhands launchstarted this checkout;control-openhands doctorisokfor the run in$OH_VERIFY_RUN(or thecurrentsymlink).control-openhands onboard --skiphas answered telemetry consent and closed the onboarding modal, unless the recipe tests onboarding itself.- Model-backed recipes:
control-openhands llm preset deepseeksaveddeepseek-flash(active) anddeepseek-profromDEEPSEEK_API_KEY(or--api-key-file PATH). States that exist only while no LLM is configured (the home banner, onboarding's LLM step) need a freshlaunch --newand must run before the preset. When the key fails validation (an empty balance, a rate limit),llm preset deepseek --no-validatestill saves the profiles: recipes that only need a conversation to exist can run on, and every recipe that reads a model reply isblocked, never a pass. - For critic checks, use an available, authorized OpenHands (
openhands/β¦) or compatible OpenHands LLM-proxy profile, regardless of the main profile used for the pass. Its LLM key is reused when Critic API Key is empty. For a non-default proxy deployment, use its compatible critic endpoint. Restore the previous profile afterwards; see F06. Do not declare the critic blocked merely because the main model uses another provider. This does not authorize new credentials, additional budget, or sending private test data to another service. - The browser is at the desktop viewport (1440Γ1000) unless a recipe says
otherwise;
control-openhands browser viewport phoneis 390Γ844. - Never drive an instance that this verification run did not start.
Driving conventions
- Start every recipe from the baseline state unless its preconditions say
otherwise, and return to it afterwards (delete fixtures, re-activate
deepseek-flash, restore toggles). - Selectors: prefer
testid=...scoped with>>to the owning form, row or dialog, thenrole=...[name="..."], thenlabel=/text=. Discover handles withcontrol-openhands browser testidsandbrowser snapshot. - Treat commands as literal. Fixture names start with
QA_orqa-so cleanup and assertions never collide with real data. - UI navigation and direct URL entry are different entry points; record which
one a check used. After a navigating click, wait for the destination:
browser click '<sel>' --expect-url '<regex>'; the plain click returns the old URL. - Many settings switches are a hidden
<input>inside a<label>: click'testid=<switch> >> xpath=ancestor::label'(language-independent; the label text also works in English) and read.checkedwithbrowser eval. - Verbs that are easy to miss:
browser mouse-click X Y(backdrops and overlays),click --modifiers Control,Meta(open in new tab, multi-select),click --hover-first(hover-driven toggles),click --expect-new-url,browser tooltip <sel>(it returns a tooltip that is still open: before reading another one, hover elsewhere andbrowser wait 'role=tooltip' --state detached),browser wait <sel> --state hidden|visible|detached(use it after toggles: animations make an immediatecountorvisiblelie),browser media --clear(forget earlier sounds before a negative sound check).browser evaltakes one expression; wrap statements in an IIFE. - Input that is not a click:
browser upload-via <trigger> <file>answers the real file chooser;browser drop-files <sel> <file>andbrowser paste <sel> --file F --text Tdeliver drag-and-drop and paste events (target an element inside the drop zone: events bubble up);browser dragreorders draggable rows or moves a grip--by DX,DY;browser choose <combobox> <label>picks an autocomplete option;browser clipboardreads what a Copy button wrote. - Short-lived feedback:
browser toasts --historylists every toast since the page loaded;click --observe SELrecords transient labels. An error toast is neither a page nor an HTTP error, sobrowser errorsmisses it: read the toast history after every mutation, backend add or switch. - Hover-driven controls open on pointer enter only:
browser hoveron the element the pointer is already over does nothing. Hover something else first (browser hover 'testid=command-menu-trigger'), or useclick --hover-first. - Agent-side proof:
conversation events <id> --grep TEXT [--from-start]searches whole events (the system prompt's skills and tools, tool arguments); rows show activated skills. After sending a follow-up message,conversation wait <id> --freshignores the previous terminal status.fixture skillwrites a personal or projectSKILL.md;api GET ... --pick a.b.creads one field. - An already-open page does not refetch settings written by
llmorapi --write:browser reloadbefore asserting UI state after an arrange step. - Settings and panels scroll inside a container:
browser scroll '<sel>' --by 600scrolls the right one.--full-pagecannot help there, because the page itself is only one viewport tall: take one screenshot per scroll position. conversation startleaves the browser on the conversation page, which also has atestid=submit-button.browser gotothe next page explicitly, or a laterwait --state detachedpasses vacuously on the wrong page.click --expect-urlpasses at once when the URL already matches (one conversation to another); use--expect-new-urlthere.- Select rows by a prompt word or an id prefix, never by a model-written title: titles differ between runs. Only the 20 most recently updated conversations load, so a recipe that creates more must not rely on older rows after a reload.
- Click composite cards by their title or a detail element: the centre can be a region that stops propagation, and the click then does nothing.
- Dialogs can match twice (nested
role=dialog): scope by test id or add>> nth=0.browser testids <scope>misses portaled parts of a dialog or menu; run it unscoped with--filter. - Panels opened by a click mount after a moment:
browser waitbefore counting. A disabled rich composer iscontenteditable=false, sofillfails there; checkbrowser attr ... contenteditable. - Error toasts can arrive after the UI retries (about 1.5 s): read them with
browser toasts --history. - Pop-ups opened with
window.open(sign-in, docs links) appear a moment after the click:browser wait-tab '<url regex>', thenbrowser tab <i>. - Drag:
browser drag <sel> <target-sel>moves the pointer in steps; if a list still does not reorder, drag its handle with--by DX,DY --steps 20. - An MCP server to test with:
control-openhands fixture mcp-serverwrites a dependency-free stdio server with one tool,qa_echo. - A conversation in a folder or repo:
control-openhands fixture git-repo --name qa-repo [--remote https://github.com/qa-example/qa-repo.git], thencontrol-openhands conversation start --workspace qa-repo --prompt .... It drives Open Workspace and the folder browser, which has no path field (workspace open qa-repodoes only the picking).--remoteonly setsorigin, which is enough for the repo/branch links and Pull/Push chips; on a repo that already exists it still sets or updatesoriginand reportsremoteChanged. A family that needs a remote on the shared repo uses its own name instead (qa-f27-repo), so F08'sqa-repokeeps none. - Sidebar and row navigation can append
?backend=<id>: end--expect-urlregexes with(\?|$), not$. - Some confirmation buttons render without the
data-testidtheir source passes (BrandButtontakestestId, notdata-testid). Whenbrowser testids 'role=dialog'lists nothing, use'role=dialog >> role=button[name="Confirm"]'. browser errors --clearandbrowser network --clearprint the list, then empty it: run them before the action, then read again after it.errorslists failures only; prove that a request happened (or did not) withnetwork. Page errors (uncaught exceptions) are failures; console warnings such as missing translations are reported, not failures.api GET ... --pick a.b.cpaths start inside the response body (a leadingbody.is accepted).- In a sandbox, requests to external hosts (fonts, model catalogs) can fail;
judge the errors sweep by its
app:rows, andbrowser errors --app-only --no-warningshides translation warnings. - Downloads are saved as
<run>/private/downloads/<ms>-<suggested name>; claims about their content needbrowser downloads --last 1 --inspect. onboard --skipafterbrowser resetskips only the modal: consent is stored on the backend, so it is not asked again.- The Agent Server runs with
HOME=<run>/private/home(personal skills, plugins,~/.agents) and keeps catalog caches under<run>/private/cache. Fixtures that belong there (fixture skill) write into the run, never into the operator's home. - Each port is its own origin:
browser gotoneeds--allow-externalfor any other localhost port, and that origin starts at first run again. - Two stacks (a second backend, backend switching): launch the second one with
export OH_VERIFY_RUN_2=$(OH_VERIFY_RUN= control-openhands launch --new --no-browser --print-run)and address it with--run "$OH_VERIFY_RUN_2"(before or after the command). Add it in the UI as a backend; activating a backend asks for its own telemetry consent, whichonboard --skipanswers. While its services are stopped the browser logs CORS errors for that origin; they come from the dead upstream, not from the app. - At phone width the desktop sidebar stays in the DOM, hidden, so sidebar test
ids match twice: scope them,
'testid=sidebar-mobile-drawer >> ...'. - Card toggles that swap their icon on hover (plugins, skills, pickers) can
swallow a plain click: use
click --hover-firstand assertaria-checkedplus the API state. - An open autocomplete listbox closes when another command touches the page;
browser chooseopens, filters and picks in one step. - Side effects outside the app are valid second views:
git -C <path> logon afixture git-remoteafter a push or Git Sync, a downloaded file withdownloads --inspect. Mark such shell commands as read-only checks. - Negative tests (a 409, a 422, a stopped service) add expected HTTP errors:
run
browser errors --clearafter them so the family's sweep only shows surprises, and name the expected ones in the evidence row. - Cleanup across families: deleting a fixture through the UI belongs to the
family that maps deletion; elsewhere
api DELETE ... --writeis fine (arrange, not proof). - When a label depends on the UI language or a toast may already be gone,
assert the persisted state after
browser reloadinstead ofwait-text. - Pass
--timeout 5000to waits for elements that may legitimately not appear; the 30 s default adds up quickly. - Conversations created as fixtures may stay when no recipe in the family covers deleting them; they vanish with the run's private state.
- Rows with generated ids: select by prefix plus the fixture name,
'[data-testid^="automation-card-"] >> has-text=QA_Pong'. Portal menus without test ids: scope by role and a unique item,'role=menu >> has-text=Delete'. - Restore per-viewer state too (view mode, pinned home route, collapsed panels live in localStorage); some controls disable themselves once their data is gone, so restore before deleting fixtures.
control-openhands api ... --write,llmandfixturearrange preconditions. They are never the proof step for the feature under test.- Accessible-name matching is a case-insensitive substring match:
role=heading[name="Activity"]also matches Activity Log. Add[exact](role=heading[name="Activity"][exact]) when a shorter name is a prefix of another. Use plaintext=substrings inside>>chains; a regextext=/.../segment there does not match. - Give every asserted value its selector (
browser text 'role=heading[level=1]', not "the h1 is X"): pages differ in landmarks, and the automation detail page has nomain, so a habitual'role=main >> ...'times out there. - Time-sensitive steps (a key press inside a 2 s busy window, a click while a
request is pending) go in the same shell line as the action that opens the
window:
browser click A && browser press Space. A separate tool call is often too late. browser network --last Nreturns its rows underrecent.- Backend versions come from launch flags only (
--sdk-version,--sdk-ref,--sdk-pathand the--automation-*equivalents);OH_AGENT_SERVER_*in your shell is not forwarded. An Agent Server below the UI's minimum (config/defaults.jsoncompatibility.minimumAgentServer) never gets past the backend-compatibility gate, so it cannot reach capability-missing states inside a page.
Proof and skip reporting
- Capture the user action and the resulting state, not only the final screen.
- Mutations need a read-only second view:
browser reload, reopening the item, orcontrol-openhands api GET .... - Visual checks:
browser screenshot --feature <ID> --name <label>at the stated viewport, plusbrowser bboxfor overflow/geometry claims. - After each family,
control-openhands browser errors --app-onlymust not show new page errors; count and report them even when the UI recovered. Record the sweep under the sub-feature whose page produced the errors (or the family's page-level ID);evidence addwarns about IDs that are not in the map. - Exports and downloads:
browser downloads --last 1 --inspect [--contains TEXT]shows a text file's head or a zip's entry names. - Record every check with
control-openhands evidence add --feature <ID> --result pass|fail|blocked|not-run, one row per sub-feature ID a recipe bullet proves (a bullet that covers two IDs gets two rows). A skipped entry point is never verified through a different one. Blocked rows name the missing prerequisite and the attempted path. - Resuming after
stop:control-openhands restartbrings the stack back with its state, ports and ledger, andbrowser startopens a fresh page atabout:blank;browser gotothe page you were on before asserting.
Feature entry contract
Each feature file starts with an H1 title, a short paragraph describing the
user-visible behavior and a Source: line whose paths must exist. It then uses
exactly four H2 sections in this order (control-openhands map check enforces it):
Sub-features: one bullet per stable ID (`Fnn.slug`) and behavior.How to get to it (user POV): every user entry point.Driving it with control-openhands: starts withPreconditions:, then labeled bullets pairing each user action with exact commands and the observable result.Gotchas: traps that waste or invalidate a run, and linked known issues.
How to write and prove new entries: ../mapping.md.
Features
| ID | Family | What it covers | Entry points | Needs | Sub-features |
|---|---|---|---|---|---|
| F01 | First run, onboarding and sign-in | telemetry consent, onboarding modal, public-mode backend step and API-key screen, route error page | any URL on a fresh browser profile; launch --public |
fresh run or browser reset; LLM for say-hello |
22 |
| F02 | App shell, sidebar and command menu | rail and phone drawer, collapse, home pinning, getting-started checklist, command menu, toasts | every page; Control+k / Meta+k |
baseline; LLM for checklist progress | 28 |
| F03 | Home and starting work | home composer, workspace picker, plugin picker, recommended automations rail, no-LLM banner | /, New Chat, command menu |
runs before and after llm preset; fixture repo |
44 |
| F04 | Conversation list and folders | sidebar list, View presets, workspace folders, tags, rename/pin/archive/delete, load more | sidebar on every page | several conversations; fixture repos | 41 |
| F05 | Composer, slash commands and plan mode | send, drafts, attachments, model pill, slash commands, /goal, plan mode, dictation |
home and conversation composer | LLM | 26 |
| F06 | Agent activity | messages, tool events, thinking, empty state, confirmation mode, stop/resume, errors, branching | /conversations/<id> |
LLM | 37 |
| F07 | Conversation page, header and menu | title rename, status menu, β― menu (skills, hooks, tools, export, download, cost, stop, delete), git bar, overview | sidebar row, URL, /panel |
LLM; fixture repo; Cloud items blocked | 25 |
| F08 | Workspace drawer: files and changes | Files tab, Commits and uncommitted changes, diff viewer, file links in chat | panel toggle, file links | LLM; fixture repo | 34 |
| F09 | Settings shell and navigation | settings navigation, phone hub, deep links, update card, backend note | gear, command menu, URLs | baseline; deep links before llm preset |
26 |
| F10 | LLM profiles | list, add, edit, rename, duplicate, delete, default, advanced fields, validation | /settings/llm |
fresh run; DeepSeek key | 34 |
| F11 | Provider connections | add, edit, rotate key, delete connections; profiles from a connection | /settings/llm |
fresh run; DeepSeek key | 21 |
| F12 | Model router | meta-profiles, templates, run on first message, routing effect | /settings/meta-llm |
LLM profiles | 25 |
| F13 | Agent profiles | OpenHands and ACP profiles, editor, name rules, active profile, MCP and secret scoping | /settings/agents |
fresh run; LLM | 25 |
| F14 | Secrets | list, add, edit, rename, delete, agent access | /settings/secrets |
LLM for agent access | 12 |
| F15 | Condenser, agent context and verification | condenser fields, agent context, confirmation mode and critic, their effect on runs | /settings/condenser, /agent-context, /verification |
LLM for the effects | 24 |
| F16 | Application settings | language, theme, analytics, sound, checklist, title model, voice input, git identity | /settings/app |
LLM for title and git checks | 21 |
| F17 | Customize hub and MCP servers | catalog, install, test, edit, delete, custom servers, agent use | Customize, /mcp |
uvx/npx; LLM |
31 |
| F18 | Skills catalog | facets, search, enable/disable, add skill, Use skill, personal and project skills | /skills |
fixture skill; LLM |
22 |
| F19 | Plugins and plugin launch | catalog, install, update, uninstall, enable, launch deep links | /plugins, /launch |
LLM | 25 |
| F20 | Canvas apps | install from path or git, enable, update, uninstall, extension pages | /apps |
none | 24 |
| F21 | Automations dashboard and actions | cards and list, filters, sort, Run now, enable, export, import, delete, pin | /automations |
LLM; automation service | 35 |
| F22 | Creating automations | templates, setup dialog, custom automations, import | /automations/templates, /automations/new/<id> |
LLM | 31 |
| F23 | Automation detail, runs and editing | detail page, runs, logs, edit dialog, triggers, debug | /automations/<id> |
LLM; runs | 41 |
| F24 | Automation Git Sync | configure, sync cycles, encryption, status | /automations/git-sync |
fixture git-repo |
26 |
| F25 | Backends, Cloud and sharing | add, edit, remove and switch backends, per-backend consent, Cloud login, shared pages | backend selector | a second stack; Cloud account (blocked) | 33 |
| F26 | Launcher modes, Docker, desktop and library | launcher flags, partial stacks, LAN bind, Docker, Electron, embeddable library | a terminal | Docker/Electron where available | 34 |
| F27 | Workspace tools | terminal, browser, planner, task list, usage, canvas_ui_control |
drawer tabs | LLM | 30 |
| F28 | Automation setup page | blank form, kind toggle, schedule presets, event fields, timeout, draft save and validation, draft Test, Create | Add Automation β Create Automation, /automations/setup, draft Resume, kebab Edit |
automation service; no LLM | 13 |
28 families, 790 sub-features. control-openhands map ids lists every ID with its file.
Neighbouring families
Several pages are shared. Each behavior has one owner; the others reference its ID instead of re-mapping it.
- Conversation page: the composer is F05, what the agent produces is F06, the header and its menus are F07, the drawer is F08 (files, changes) and F27 (tools).
- Starting work: Home is F03; the recommended-automation launcher is shared by F01 (onboarding), F03 (rail) and F22 (templates), and owned by F22.
- LLM settings: profiles are F10, provider connections F11 (same page), routers F12, agent profiles F13.
- Automations: dashboard F21, creation F22, detail and runs F23, Git Sync F24; the setup page's form, drafts and Test are F28 (F22 keeps the agent-assisted recipes, F23 owns edit mode).
- Customize: MCP F17, skills F18, plugins F19, apps F20; the hub and its navigation are in F17.
- Backends: adding and switching backends is F25; launcher flags that create them are F26.
Not mapped
Everything else a user can reach is mapped. These are left out on purpose:
src/components/features/context-menu: a shared menu primitive, not a feature of its own. Its behavior is checked through the menus that use it (F04, F07, F21, F27).- OpenHands Cloud behavior (Cloud login and device flow, organizations, sharing, task URLs, sandbox pause): needs a Cloud account. The recipes are written up to that point and recorded as
blocked(for exampleF07.cloud-onlyand the Cloud rows of F25). - Suspended Cloud workspaces (
src/components/features/backends/cloud-organization-boundary.tsx, #17988): Mapped prerequisites/local absence:F25.cloud-org-suspendedrecords the expected alert and the prerequisite; a local backend can check only that the Cloud suspension surface is absent. Positive paths not live-mapped: the selected Cloud organization must receive a genuine scoped HTTP 403 withdetail: "Organization is suspended"ordetail: "User membership is suspended"; recovery also needs another accessible workspace. Desktop/phone alerts, workspace switching and request/backend/organization isolation remain blocked until those genuine states are available. An unrelated 403 is not that prerequisite. - Enterprise Super Admin setup guide (
src/components/features/setup-guide, #17969): Mapped prerequisites/local absence:F02.super-admin-setup-guiderecords its prerequisites and the local check for no guide or/api/admin/setup-staterequest. Positive paths not live-mapped: an authenticated enterprise Cloud backend must have a selected organization whose/mepermissions includemanage_super_admins, plus a genuine/api/admin/setup-stateresponse with a non-nullguide_org_id,guide_dismissed: false, and at least one unfinished required guide step. A local backend cannot establish those prerequisites. Progress, step destinations, collapse/reopen, server-driven guide removal, progress persistence and desktop/phone layouts remain blocked until an entitled account can drive them; source inspection is not runtime proof. - Setup-guide continuation and Canvas tours (#18138,
src/components/features/setup-guide/,src/components/features/manifest/manifest-setup-dialog.tsx,src/hooks/mutation/use-add-mcp-server.ts) are not live-mapped. They shareF02.super-admin-setup-guide's genuine Cloud account and setup-state prerequisites above, with the next required step set tofirst-automationoradd-integration. Verification additionally needs a successful direct automation creation or MCP-server addition and a subsequent server response confirming that step complete; assisted setup and out-of-order or unconfirmed completion have different control flow. The next Canvas step/tour, Cloud-host same-tab invitation handoff withorgandsetup_tour, standalone/Electron Start fallback, and tour entry viasetup_tourremain blocked across desktop/phone and those deployment boundaries. The invitation handoff also needs an accessible enterprise invitation page for the guide organization. No positive recipe is accepted from source or mocked enterprise responses. - New automation setup boundaries (#17199, #17200, #17201, #17242, #17688):
F22.agent-assisted-setupmaps credential-free draft save/reload/resume/custom-script tests and genuineautomation_form_update, desktop Hide/Show, phone Form/Conversation, associated-draft resumption, final prompt/plugin creation and execution. These model paths were verified with real DeepSeek on Linux Local, SDK 1.54.0/automation 1.19.3, on 2026-10-10. Draft-Test completion is mapped with known failure #18263; ordinary final-automation polling passes.F28maps the create-mode setup form, drafts and Test;F23maps the existing-automation editor, including edit-mode Test and unsaved edits. Every F28 recipe and those two F23 rows were run on a fresh localcontrol-openhands launchwith Agent Server 1.54.0 and no LLM on 2026-10-14 (run results). Not yet live-mapped: home Code/Automate handoff (src/components/features/home/home-launcher-mode-toggle.tsx) and full dashboard draft management beyond the verified Resume and credential-free Delete paths (src/routes/automations-list.tsx). The distinct template Plugin review/timezone path remains unverified by the agent-created plugin checks. This partial delta retains its baseline. - Built-in Pi/OpenCode (#17758,
src/constants/acp-providers.ts,src/constants/acp-brand-marks.ts): Not yet live-mapped: the added local onboarding/profile presets, Pi credentials, multilineOPENCODE_AUTH_CONTENT, actual SDK commands/models and Cloud exclusion. Needs fresh local onboarding/profile drives and genuine ACP execution. Pi needs its corresponding credentials/login; OpenCode credentials are optional (the SDK provides a keyless default), so absence of credentials alone does not block its preset. Provider authorization and bounded execution still apply. Cloud exclusion/reset needs a genuine Cloud backend. Source review and the existing Claude/Codex/Gemini recipes do not verify these additions. - Cloud organization handback (#18228,
src/api/backend-registry/url-selection.ts): Not yet live-mapped: locked Cloud?org=handback must select the returned accessible organization and consume only that parameter. Needs a genuine locked Cloud deployment, an authenticated account with multiple accessible organizations and the actual web-app handoff. A local backend cannot supply that state. - Locked-to-Cloud deployments:
scripts/static-server.mjs --lock-to-cloudexists, butbin/agent-canvas.mjsdoes not forward it, socontrol-openhands launchcannot start that mode. - Page-local load errors (for example the LLM profiles or apps list failing while the rest of the backend works) need fault injection; stopping a service with
service stopreplaces the whole app with the backend-unavailable screen instead. The pages' empty and error copy is mapped where reachable. - Real microphone dictation, native file dialogs outside the browser, and Electron window chrome beyond what F26 drives.