Skip to content

🙌 OpenHands: AI-Driven Development

72.3 KB
Raw Blame

F22 — Creating automations: templates, setup and import

A user adds an automation in three ways. The Templates sub-page (/automations/templates) lists the prebuilt catalog from @openhands/extensions (6 featured, 17 Beta) with search and integration and trigger filter chips; picking a card either opens a manifest-driven setup dialog at /automations/new/<id> (prerequisites → form → review → Confirm and create), or first asks where a GitHub/Slack responder should run (on OpenHands Cloud, whether to use the built-in integration instead), or first asks the user to install missing MCP integrations, or seeds a conversation with the entry's launch prompt. Add Automation → Create Automation opens the agent-assisted setup page at /automations/setup, where the form opens before a conversation exists. Saving a server-backed draft and testing its generated custom script need no LLM; sending a prompt starts genuine model assistance through automation_form_update. The setup page's own fields, draft validation, Test and Create each have their own IDs in F28. Add Automation → Import automation reads an exported JSON file, previews it and creates it disabled.

Source: src/routes/automation-templates.tsx, src/routes/automation-setup-route.tsx, src/routes/automation-setup-new.tsx, src/components/features/automations/ (recommended-automations-launcher.tsx, recommended-automations-section.tsx, template-filter-chips.tsx, built-in-integration-choice-modal.tsx, responder-deployment-modal.tsx, create-instructions.tsx, import-automation-modal.tsx, agent-profile-selector.tsx, setup/), src/components/features/conversation/conversation-main/conversation-main.tsx, src/components/features/manifest/, src/manifests/, src/hooks/use-start-automation-setup.ts, src/hooks/use-launch-skill-in-chat.ts, src/hooks/use-responder-url-secret.ts, src/utils/automation-export.ts, src/utils/automation-catalog.ts, src/api/automation-service/automation-service.api.ts, src/api/automation-form-client-tool.ts, src/api/automation-form-session.ts, src/services/automation-form.ts, src/constants/automation-form.ts, node_modules/@openhands/extensions/automations/.

Sub-features

  • F22.templates-page: /automations/templates shows the h1 Templates, a description, a search box, the Filter templates chips, Start from a proven workflow with a count badge (6) and a Beta section (17).
  • F22.template-card: each card shows an icon or logo stack, name, category, two-line description, one trigger-kind badge per way it runs (a clock for Cron, a bolt for Event driven, named in a tooltip), a plus badge and integration pills (N MCPs to connect before launch; Needs external setup only for an integration with no installable MCP or native connection, which no current catalog entry has; Connected once installed, which needs a working integration and was not reached here); a +N overflow button opens a popover without launching the card.
  • F22.templates-search: the search box narrows cards by name, category, description, launch prompt and integration names; a query (or filter) that matches nothing shows No matching templates found — check back again soon. with Clear filters, which empties the search and resets the chips.
  • F22.template-filters: the Filter templates chips above the grid are All, one chip per integration the offered templates use (their declared integrations plus the provider of a repository picker in their setup form) and Cron / Event driven. One integration and one trigger kind can be active at once and combine; clicking an active chip clears it and All clears both.
  • F22.template-launch-setup: a card whose entry ships a setup form (custom-automation, news-digest, github-pr-reviewer, qa-changes, …) navigates to /automations/new/<id>.
  • F22.template-launch-conversation: a card without a setup form and with no installable integration missing creates a conversation and pre-fills its composer with the entry's launch command (for example /ticket-to-code-change:setup); nothing is sent until the user presses send.
  • F22.template-mcp-install-queue: a card with missing required integrations opens each one's install dialog in turn; Cancel abandons the launch without creating anything.
  • F22.responder-deployment-choice: on a local backend a GitHub/Slack-only responder card first asks Choose how your responder should run; Continue with local setup creates the OPENHANDS_URL secret and continues, Open OpenHands Cloud integrations opens Cloud in a new tab, X and Escape cancel.
  • F22.built-in-integration-choice: on an OpenHands Cloud backend whose built-in integration covers a template (GitHub issue to PR, GitLab issue to MR, the Jira issue-to-PR templates, Slack channel monitor), the card first opens Choose your setup. When the user has connected that integration it reads You can use OpenHands in <name> today — here's an example: with an example message and Got it; otherwise Use Built-In Integration offers Connect to . Setup Polling Automation / Continue with polling setup is the alternative in both states. A disabled integration, and every local backend, skips the dialog.
  • F22.responder-local-launch: with the responder's integration already installed (Slack for Slack standup digest), Continue with local setup skips the install dialog and opens a new conversation whose composer is pre-filled with the entry's setup command (/standup-digest:setup). Nothing is sent until the user presses send; Send delivers it as the user message.
  • F22.setup-prerequisites: Before you start lists the entry's integrations with the reason each is needed and Manage integrations (/mcp); Continue is disabled while a required integration is missing; an entry with nothing to check skips the step.
  • F22.setup-action-kind: the Action combobox (custom-automation: Prompt / Plugin / Upload tarball) swaps the action fields and keeps shared values.
  • F22.setup-form-validation: Continue checks fields locally (This field is required., Must be at least N characters., Must be at most N.) and a field blur sends the draft to the service, whose errors appear under the field (Value error, Invalid cron expression: …).
  • F22.setup-agent-profile: the Agent profile combobox appears only for actions that create through /v1 (Upload tarball and bundle entries), not for Prompt or Plugin; it lists Default and every saved agent profile and shows Default while no profile is chosen (also after a switch through Prompt or Plugin and after picking Default, #18111), picking a profile hides the LLM profile field, switching to Prompt or Plugin clears the choice, and the automation is created with that agent_profile_id.
  • F22.setup-plugin-create: the Plugin action takes plugin sources and a prompt, and a picked Timezone carries through Review into the created automation (preset_metadata.plugins, trigger.timezone).
  • F22.setup-tarball-create: the Upload tarball action requires a .tar/.tar.gz file, shows its file name in Review and creates an automation with the uploaded tarball and the entrypoint. The native file chooser button follows the color theme (its interactive-hover background with contrast text).
  • F22.setup-repository-list: a repository list field has Add (disabled while the input is empty) and a Remove per row; an empty required list is refused.
  • F22.setup-review-confirm: Review lists every value (Not set for blanks); Back keeps the values; Confirm and create creates the automation (enabled) and replaces the URL with its detail page.
  • F22.setup-bundle-create: a bundle entry (Daily news digest) uploads its script tarball and creates an automation with the bundle's entrypoint, without any account.
  • F22.setup-unsupported: an entry this deployment cannot run (qa-changes needs event triggers) shows Not available, the unmet requirements, Close and Set up in a conversation.
  • F22.setup-fallback-conversation: Set up in a conversation creates a conversation seeded with the entry's setup message.
  • F22.setup-close: X or Escape goes back in history; on a cold deep link it replaces the location with /automations.
  • F22.setup-unknown-id: /automations/new/<id> for an id no catalog entry claims is a 404.
  • F22.agent-assisted-setup: Add Automation → Create Automation opens /automations/setup, whose setup panel collects name, action, trigger, model (LLM profile) and custom code, can ask the agent for help, saves server-backed drafts, opens test runs behind a Back button and dispatches the finished automation. A Prompt or Plugin draft offers no agent profile (their /v1/preset/prompt and /v1/preset/plugin endpoints take none), so Save draft sends no agent_profile_id and succeeds even when other agent profiles are saved.
  • F22.import-picker: Add Automation → Import automation opens a dialog that explains the format (docs link), says the import is disabled, and offers a dropzone and Choose file.
  • F22.import-validation: a file that is not JSON shows the toast The selected file is not valid JSON.; a JSON file that breaks the format shows one toast listing every issue; the dialog stays on the picker.
  • F22.import-preview: a valid file switches the dialog to a preview (Name, Trigger, Prompt, Plugins) with the disabled notice, Cancel and Import automation.
  • F22.import-confirm: Import automation reads Importing... while pending, closes the dialog, shows Imported "<name>" as disabled. View automation, and the automation is listed disabled; the toast link opens its detail page.
  • F22.import-choose-file: Choose file, and a click anywhere on the dropzone, open the browser's file chooser; the chosen file is previewed.
  • F22.import-dropzone: dragging a file over the dropzone highlights it (data-active="true"); dropping a .json file previews it like Choose file.
  • F22.phone: the Templates grid, the setup dialog and the import dialog fit a 390 px viewport without horizontal overflow.

How to get to it (user POV)

  • Sidebar Automate (sidebar-automations-link), then Templates in the Automate sub-page nav (automations-navbar-desktop >> automations-navigation-templates; at phone width automations-navbar-mobile). The command menu has no Templates entry (searching template gives No commands found).
  • Direct URLs /automations/templates and /automations/new/<catalog-id> (for example /automations/new/custom-automation, /automations/new/news-digest, /automations/new/qa-changes). A deep link opens the setup dialog over the page; it bypasses the responder and install-queue dialogs that a card click shows first.
  • Template cards elsewhere use the same launcher: the Recommended automations rail on home/New Chat (F03) and on the empty dashboard (F21.empty-rail), and the onboarding say-hello step (F01).
  • Dashboard header Add Automation (automations-add-automation) → Create Automation (automations-add-automation-create) or Import automation (automations-import-automation). The empty dashboard also shows the Create Automation instructions inline (automations-empty >> automations-create-automation).

Driving it with control-openhands

Preconditions:

  • Baseline state (launched, doctored, onboard --skip done) and control-openhands llm preset deepseek for model/profile-dependent checks. Agent assistance, prompt/plugin Test and Run now use genuine deepseek-flash within the run's authorized model budget. The Open and save a draft, Credential-free script test and Resume at phone width bullets may start on an unconfigured fresh stack without this preset.

  • No automation named QA_F22 … or Daily news digest (control-openhands api GET '/api/automation/v1?limit=100'), no OPENHANDS_URL secret (control-openhands api GET /api/settings/secrets) and no MCP server installed (control-openhands api GET /api/settings, mcp_config empty). An existing OPENHANDS_URL skips the secret creation in the responder recipe; an installed Slack/Linear/Tavily server skips its install dialog.

  • Import fixtures (arrange only; each command prints the path, $OH_VERIFY_RUN/evidence/_fixtures/<name>): control-openhands fixture file --name qa-f22-import.automation.json --content '{"version":1,"kind":"automation","spec":{"name":"QA_F22 Imported","trigger":{"type":"cron","schedule":"0 0 1 1 *","timezone":"UTC"},"enabled":true,"prompt":"Reply with the single word: pong. Do not run any tools.","plugins":["github:OpenHands/extensions/plugins/qa-none"]}}', control-openhands fixture file --name qa-f22-view.automation.json --content '{"version":1,"kind":"automation","spec":{"name":"QA_F22 View","trigger":{"type":"cron","schedule":"0 0 1 1 *"},"enabled":true,"prompt":"Reply with the single word: pong. Do not run any tools."}}', control-openhands fixture file --name qa-f22-broken.json --content '{"version": 1, "kind": ' and control-openhands fixture file --name qa-f22-schema.json --content '{"version":2,"kind":"automation","spec":{"name":"","trigger":{"type":"event"},"enabled":"yes","prompt":"x"}}'.

  • Every automation created here uses the yearly cron 0 0 1 1 *, so none fires during the run.

  • Tarball fixture (arrange only): control-openhands fixture tarball --name qa-f22-tarball writes $OH_VERIFY_RUN/evidence/_fixtures/qa-f22-tarball.tar.gz (one main.py that prints pong).

  • Blocked here: F22.built-in-integration-choice needs an OpenHands Cloud backend with a built-in GitHub, GitLab, Jira or Slack integration enabled (and, for the connected state, linked to the account). On a local backend the Slack channel monitor card opens the responder choice instead, which the Responder choice bullet checks.

  • Blocked here: completing F22.template-mcp-install-queue (and launching a card whose only missing integration is installable, such as research-brief-writer) needs a real Slack, Linear or Tavily credential: the install dialog tests the connection before saving.

  • Templates page (F22.templates-page). From / run control-openhands browser click 'testid=sidebar-automations-link' --expect-url '/automations$', control-openhands browser click 'testid=automations-navbar-desktop >> testid=automations-navigation-templates' --expect-url '/automations/templates', control-openhands browser text 'role=main >> role=heading[level=1]' (Templates), control-openhands browser count '[data-testid^="recommended-automation-card-"]' (23) and control-openhands browser count 'testid=recommended-automations-beta-section >> [data-testid^="recommended-automation-card-"]' (17); browser text 'testid=recommended-automations-beta-heading' is Beta and 17. control-openhands browser snapshot 'role=main' --max-lines 60 shows group "Filter templates" (buttons All [pressed], GitHub, Slack, Linear, GitLab, Bitbucket, Atlassian Rovo, Tavily, Notion, Cron, Event driven) and heading "Start from a proven workflow" with the count 6. Take control-openhands browser screenshot --feature F22.templates-page --name grid. control-openhands browser goto /automations/templates renders the same page.

  • Cards and pills (F22.template-card). Run control-openhands browser testids 'testid=recommended-automation-card-research-brief-writer' --hidden: recommended-automation-icon-…, recommended-automation-trigger-research-brief-writer-cron, recommended-automation-plus-…, recommended-automation-pills-… and recommended-automation-pills-research-brief-writer-overflow (Show 1 more). control-openhands browser count '[data-testid^="automation-integration-external-"]' is 0: Jira and Bitbucket connect through the installable Atlassian Rovo MCP, so jira-issue-to-bitbucket-pr shows Atlassian Rovo, Bitbucket and 2 MCPs to connect before launch. control-openhands browser click 'testid=recommended-automation-pills-research-brief-writer-overflow' opens a popover (browser snapshot 'role=dialog': dialog: 2 MCPs to connect before launch) and the URL stays /automations/templates; control-openhands browser press Escape closes it (browser count 'role=dialog' 0). Trigger badges: control-openhands browser count '[data-testid^="recommended-automation-trigger-"][data-testid$="-cron"]' is 22 and ... -event"]' is 8; seven templates carry both (Custom automation among them) and only QA changes has no Cron badge, and control-openhands browser tooltip 'testid=recommended-automation-trigger-custom-automation-event' reads Event driven.

  • Search (F22.templates-search). Run control-openhands browser fill 'role=main >> placeholder=Search automations...' tavily and control-openhands browser testids 'role=main' --filter recommended-automation-card: only recommended-automation-card-research-brief-writer (matched through its Tavily integration). Then control-openhands browser fill 'role=main >> placeholder=Search automations...' qa-no-such-template and control-openhands browser text 'testid=automations-filtered-empty': No matching templates found — check back again soon. and Clear filters; take control-openhands browser screenshot --feature F22.templates-search --name no-match. control-openhands browser click 'testid=automations-clear-filters' empties the search box (browser value 'role=main >> placeholder=Search automations...' is '') and brings back all 23 cards.

  • Filter chips (F22.template-filters, F22.templates-search). Count with control-openhands browser count '[data-testid^="recommended-automation-card-"]' after each click (browser testids lists only on-screen cards). control-openhands browser click 'testid=template-filter-integration-github': 12, and browser attr 'testid=template-filter-integration-github' aria-pressed is true while template-filter-all is false. control-openhands browser click 'testid=template-filter-trigger-event': 4 (GitHub code review, Custom automation, Linear issue to GitHub PR, QA changes). Clicking testid=template-filter-integration-github again clears only that chip: 8 (every Event driven template). testid=template-filter-trigger-cron replaces Event driven (22; template-filter-trigger-event aria-pressed false). Click testid=template-filter-trigger-cron again to clear it; then testid=template-filter-integration-slack alone gives 3 (Slack channel monitor, Slack standup digest, Incident retrospective drafter). testid=template-filter-integration-tavily plus testid=template-filter-trigger-event matches nothing: the same automations-filtered-empty message appears under the chips (browser screenshot --feature F22.template-filters --name no-match), and testid=automations-clear-filters resets them (template-filter-all aria-pressed true, 23 cards). Finish with control-openhands browser click 'testid=template-filter-all'.

  • Card opens setup, prerequisites (F22.template-launch-setup, F22.setup-prerequisites). Run control-openhands browser click 'testid=recommended-automation-card-custom-automation' --expect-url '/automations/new/custom-automation' and control-openhands browser snapshot 'testid=setup-dialog': heading Before you start, GitHub Optional. Used when you choose a GitHub repository…, link Manage integrations (/mcp) and Continue; control-openhands browser enabled 'testid=setup-continue-button' is true (an optional integration only warns). Run control-openhands browser click 'testid=setup-continue-button'; the heading becomes Custom automation and browser testids 'testid=setup-dialog' lists setup-action-kind, setup-field-schedule (0 9 * * *), setup-field-timezone (UTC), setup-field-name, setup-field-model, setup-field-timeout, setup-field-prompt, setup-field-repository and setup-field-ref. There is no Trigger selector here because this deployment only supports cron, and no automation-agent-profile because the default Prompt action cannot take one (F22.setup-agent-profile).

  • Validation (F22.setup-form-validation). Click testid=setup-continue-button with the form untouched: control-openhands browser text 'testid=setup-field-name-error' and ... 'testid=setup-field-prompt-error' are This field is required. Fill testid=setup-field-timeout with 5000, testid=setup-field-name with QA_F22 Custom, testid=setup-field-prompt with Reply with the single word: pong. Do not run any tools., click Continue: browser text 'testid=setup-field-timeout-error' is Must be at most 1800. Fill the timeout with 60. Service preflight: control-openhands browser fill 'testid=setup-field-schedule' 'every day', control-openhands browser press Tab, control-openhands browser wait 'testid=setup-field-schedule-error' --timeout 5000, then browser text 'testid=setup-field-schedule-error': Value error, Invalid cron expression: every day (from POST /api/automation/v1/validate, see browser network --last 5). Fill the schedule with 0 0 1 1 *, press Tab, and control-openhands browser wait 'testid=setup-field-schedule-error' --state detached --timeout 5000 succeeds.

  • Setup form colours (F22.setup-form-validation, #18330). In the custom-automation setup dialog, the required and service errors read rgb(231, 106, 94) on OpenHands-Neutral and rgb(209, 52, 56) (field errors) / rgb(192, 40, 45) (prompt error) on white under Light+ (F16.color-theme); read them with control-openhands browser eval "getComputedStyle(document.querySelector('[data-testid=setup-field-schedule-error]')).color". The schedule preflight answers only once name and prompt are filled: with them empty /validate returns 200 and no schedule error appears.

  • Action kinds (F22.setup-action-kind). Run control-openhands browser click 'testid=setup-action-kind', control-openhands browser snapshot 'role=listbox' (Prompt selected, Plugin, Upload tarball); the snapshot closes the listbox, so click testid=setup-action-kind again and then control-openhands browser click 'role=listbox >> role=option[name="Plugin"]': browser testids 'testid=setup-dialog' now includes setup-field-plugins. Choose Upload tarball the same way: setup-field-tarball, setup-field-entrypoint and setup-field-setupScript replace prompt, repository and ref. Choose Prompt again; control-openhands browser value 'testid=setup-field-name' is still QA_F22 Custom and setup-field-prompt still holds the prompt.

  • Agent profile (F22.setup-agent-profile). In the same form (Prompt action, name QA_F22 Custom, prompt and schedule 0 0 1 1 * filled), control-openhands browser count 'testid=automation-agent-profile' is 0; after control-openhands browser choose 'testid=setup-action-kind' 'Plugin' it is still 0, and after control-openhands browser choose 'testid=setup-action-kind' 'Upload tarball' it is 1 (only actions that create through /v1 can carry a profile; the preset endpoints behind Prompt and Plugin reject agent_profile_id). Run control-openhands browser value 'testid=automation-agent-profile', control-openhands browser click 'testid=automation-agent-profile' and control-openhands browser snapshot 'role=listbox': the value is Default and the listbox has option "Default" [selected] and option "default" (the seeded agent profile from api GET /api/agent-profiles), the same as on a fresh Upload tarball form (F22.setup-tarball-create). control-openhands browser press Escape closes the listbox and leaves the dialog open (browser count 'testid=setup-dialog' is 1). Run control-openhands browser choose 'testid=automation-agent-profile' 'default': browser count 'testid=setup-field-model' is 0 (LLM profile hidden); browser choose 'testid=automation-agent-profile' 'Default' brings it back (1). Pick default again, then control-openhands browser choose 'testid=setup-action-kind' 'Prompt': the selector is gone and setup-field-model is back (1). Choose Upload tarball once more and run control-openhands browser value 'testid=automation-agent-profile': Default (the choice was cleared, shown as on a fresh form; choosing Default from the list also reads Default). Choose Prompt again before continuing. Creating an automation with a profile is in the Upload tarball bullet below.

  • Review and create (F22.setup-review-confirm). Run control-openhands browser click 'testid=setup-field-model', control-openhands browser click 'role=listbox >> role=option[name="deepseek-flash"]', control-openhands browser click 'testid=setup-continue-button', control-openhands browser wait 'testid=setup-review' --timeout 10000 and control-openhands browser snapshot 'testid=setup-dialog': heading Review, terms Action Prompt, Schedule 0 0 1 1 *, Timezone UTC, Automation name, LLM profile deepseek-flash, Timeout 60, Prompt, Repository Not set, Branch or ref Not set, and buttons Back and Confirm and create. Take browser screenshot --feature F22.setup-review-confirm --name review. control-openhands browser click 'testid=setup-back-button' returns to the form with setup-field-name still QA_F22 Custom; click Continue, wait for setup-review again, then control-openhands browser click 'testid=setup-continue-button' --expect-url '/automations/[0-9a-f-]{8,}'. browser url is /automations/<id> (the id of the new automation); after control-openhands browser reload, control-openhands browser text 'role=heading[level=1]' is QA_F22 Custom and browser text 'testid=active-status-badge-active' is Active (the detail page has no main landmark: 'role=main >> …' times out there), and api GET '/api/automation/v1?limit=100' shows it enabled: true, trigger.schedule 0 0 1 1 *, timeout 60, model deepseek-flash. control-openhands browser back lands on /automations/templates (the setup URL was replaced).

  • Plugin action and timezone (F22.setup-plugin-create). Run control-openhands browser goto /automations/new/custom-automation, click testid=setup-continue-button, then control-openhands browser choose 'testid=setup-action-kind' 'Plugin' and control-openhands browser choose 'testid=setup-field-timezone' 'Europe/Berlin'. Fill testid=setup-field-schedule with 0 0 1 1 *, testid=setup-field-name with QA_F22 Plugin, testid=setup-field-plugins with github:OpenHands/extensions/plugins/qa-none and testid=setup-field-prompt with Reply with the single word: pong. Do not run any tools.; click Continue and browser wait 'testid=setup-review' --timeout 10000. browser snapshot 'testid=setup-dialog': Action Plugin, Timezone Europe/Berlin, LLM profile Not set, Timeout Not set, Plugins github:OpenHands/extensions/plugins/qa-none. control-openhands browser click 'testid=setup-continue-button' --expect-url '/automations/[0-9a-f-]{8,}' --timeout 60000; api GET '/api/automation/v1?limit=100' shows QA_F22 Plugin enabled with trigger.timezone Europe/Berlin and preset_metadata {preset_type: plugin, plugins: [{source: github:OpenHands/extensions/plugins/qa-none}]}.

  • Upload tarball action, with an agent profile (F22.setup-tarball-create, F22.setup-agent-profile). Run control-openhands browser goto /automations/new/custom-automation, click testid=setup-continue-button, control-openhands browser choose 'testid=setup-action-kind' 'Upload tarball' (Entrypoint defaults to python3 main.py, and on this fresh form control-openhands browser value 'testid=automation-agent-profile' is Default), fill testid=setup-field-name with QA_F22 Tarball and testid=setup-field-schedule with 0 0 1 1 *, click Continue: browser text 'testid=setup-field-tarball-error' is This field is required. The chooser button follows the theme: control-openhands browser eval "(s=>s.backgroundColor+' '+s.color)(getComputedStyle(document.querySelector('[data-testid=setup-field-tarball]'),'::file-selector-button'))" is rgb(64, 64, 64) rgb(255, 255, 255) on OpenHands-Neutral and Neo, rgb(75, 84, 104) rgb(255, 255, 255) on DeepSea, rgb(229, 229, 229) rgb(31, 31, 31) on Light+ and rgb(230, 223, 204) rgb(0, 43, 54) on Solarized Light (F16.color-theme; restore OpenHands-Neutral). Run control-openhands browser upload 'testid=setup-field-tarball' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-tarball.tar.gz" and control-openhands browser choose 'testid=automation-agent-profile' 'default' (browser count 'testid=setup-field-model' is 0); take control-openhands browser screenshot 'testid=setup-dialog' --feature F22.setup-agent-profile --name upload-profile. Click Continue, browser wait 'testid=setup-review' --timeout 10000: Review shows Action Upload tarball, LLM profile Not set, Tarball qa-f22-tarball.tar.gz, Entrypoint python3 main.py, Setup script Not set (Review does not list the agent profile). control-openhands browser click 'testid=setup-continue-button' --expect-url '/automations/[0-9a-f-]{8,}' --timeout 60000; browser text 'role=heading[level=1]' is QA_F22 Tarball, and control-openhands api GET /api/automation/v1/<id> (the id in the URL) shows it enabled with entrypoint python3 main.py, a tarball_path oh-internal://uploads/…, model null and agent_profile_id equal to the default profile's id from control-openhands api GET /api/agent-profiles.

  • Close (F22.setup-close). From /automations/templates (control-openhands browser goto /automations/templates; the previous bullet ends on the new automation's page), control-openhands browser click 'testid=recommended-automation-card-news-digest' --expect-url '/automations/new/news-digest' then control-openhands browser click 'testid=setup-dialog-close' --expect-url '/automations/templates'; the same with control-openhands browser press Escape instead of X also returns to /automations/templates. Cold deep link: control-openhands browser goto /automations/new/news-digest, control-openhands browser click 'testid=setup-dialog-close' --expect-url '/automations$' (replaced, not back).

  • Bundle entry, min length (F22.setup-bundle-create, F22.setup-form-validation). From /automations/templates (control-openhands browser goto /automations/templates; Close ends on /automations) click testid=recommended-automation-card-news-digest (--expect-url '/automations/new/news-digest'): there is no prerequisites step and the form shows automation-agent-profile (a bundle creates through /v1, so it offers a profile; leave it on Default), setup-field-schedule (0 8 * * *), setup-field-timezone, setup-field-feeds (three default feeds) and setup-field-topics. Fill testid=setup-field-feeds with short and click Continue: browser text 'testid=setup-field-feeds-error' is Must be at least 8 characters. Close (testid=setup-dialog-close), click the card again (the draft is gone), fill testid=setup-field-schedule with 0 0 1 1 *, click Continue, browser wait 'testid=setup-review' --timeout 10000, then control-openhands browser click 'testid=setup-continue-button' --expect-url '/automations/[0-9a-f-]{8,}' --timeout 60000. The detail h1 is Daily news digest; api GET '/api/automation/v1?limit=100' shows it enabled with entrypoint python3 main.py, a tarball_path oh-internal://uploads/… and timeout 900.

  • Repository list (F22.setup-repository-list). Run control-openhands browser goto /automations/new/github-pr-reviewer (no prerequisites step locally). control-openhands browser enabled 'testid=setup-list-repositories-add' is false; fill testid=setup-field-repositories with qa-org/qa-repo (enabled turns true), click testid=setup-list-repositories-add: browser text 'testid=setup-list-repositories' starts qa-org/qa-repo / Remove and the input is empty again. control-openhands browser click 'testid=setup-list-repositories-remove-qa-org/qa-repo' removes it (count 0); Continue then shows setup-field-repositories-error This field is required. Close the dialog.

  • Blocking prerequisite (F22.setup-prerequisites). Run control-openhands browser goto /automations/new/incident-retrospective-drafter, control-openhands browser snapshot 'testid=setup-dialog' (Slack, Linear and Notion with reasons) and control-openhands browser enabled 'testid=setup-continue-button': false while Slack and Linear are not installed.

  • Not available and fallback (F22.setup-unsupported, F22.setup-fallback-conversation). Run control-openhands browser goto /automations/new/qa-changes and control-openhands browser snapshot 'testid=setup-dialog': heading Not available, This deployment does not support everything this automation needs., setup-unmet-requirements webhookDelivery, event, buttons Close and Set up in a conversation. Run control-openhands browser click 'testid=setup-fallback-conversation' --expect-url '/conversations/[0-9a-f]' --timeout 60000 and control-openhands browser eval "document.querySelector('[data-testid=chat-input]').innerText": /qa-changes, a blank line and This deployment cannot run the webhook-driven QA automation directly. Set it up in this conversation instead: …. The message is pre-filled, not sent (no model cost until the user presses send).

  • Unknown id (F22.setup-unknown-id). control-openhands browser goto /automations/new/qa-no-such-template then control-openhands browser snapshot: heading "404" and Not Found.

  • Responder choice (F22.responder-deployment-choice). On /automations/templates (control-openhands browser goto /automations/templates; the previous bullet ends on a 404 page) run control-openhands browser click 'testid=recommended-automation-card-slack-channel-monitor' and control-openhands browser snapshot 'testid=responder-deployment-modal': Choose how your responder should run, Poll locally on your laptop / Continue with local setup, Use OpenHands Cloud / Open OpenHands Cloud integrations. control-openhands browser press Escape and, after reopening, control-openhands browser click 'testid=responder-deployment-modal-close' each make browser count 'testid=responder-deployment-modal' 0. Reopen and control-openhands browser click 'testid=responder-deployment-open-openhands-cloud': the modal closes and control-openhands browser tabs lists tab 1 at https://app.all-hands.dev/settings/integrations (it can take a second to appear; rerun browser tabs). Close it with control-openhands browser close-tab 1. Reopen and control-openhands browser click 'testid=responder-deployment-continue-local', control-openhands browser wait 'testid=responder-deployment-modal' --state detached --timeout 10000: the Slack install dialog (testid=mcp-install-modal, dialog "Slack") opens next and api GET /api/settings/secrets now lists OPENHANDS_URL. Close it with control-openhands browser click 'testid=mcp-install-cancel'.

  • Responder launch with Slack configured (F22.responder-local-launch). Use an isolated owned run with no Slack connection already installed. Arrange the catalog command with a dummy token and offline npm (configuration precondition, not authenticated Slack proof): write qa-slack.json under the run's private directory containing {"agent_settings_diff":{"mcp_config":{"slack":{"command":"npx","args":["-y","@zencoderai/slack-mcp-server"],"env":{"SLACK_BOT_TOKEN":"xoxb-qa-dummy","SLACK_TEAM_ID":"T0000000000","npm_config_offline":"true"}}}}} and run control-openhands api PATCH /api/settings --data @qa-slack.json --write. On /automations/templates, click testid=recommended-automation-card-slack-standup-digest, wait for testid=responder-deployment-modal, click testid=responder-deployment-continue-local, then control-openhands browser wait-url '/conversations/[0-9a-f-]+' --timeout 60000 and browser wait 'testid=chat-input'. The install modal count is 0, the composer contains /standup-digest:setup, and browser count 'testid=user-message' is 0; screenshot this unsent prefill. Do not send the unmodified setup command: the open-ended skill previously spent 25 tool calls exploring host files. For a separately labeled modified-prompt Send delivery check with an approved low-cost model, record the previous active profile and iteration limit, then arrange the guard before creating a fresh responder conversation: control-openhands llm preset deepseek, api PATCH /api/settings --write --data '{"conversation_settings_diff":{"max_iterations":1}}', and api POST /api/agent-profiles/qa-f22-send-guard --write --data '{"agent_kind":"openhands","llm_profile_ref":"deepseek-flash","mcp_server_refs":[]}'. Read that profile's stable id from api GET /api/agent-profiles, activate it with api POST /api/agent-profiles/<guard-id>/activate --write --data '{}', then follow the same responder launch. Append exactly Verification only: Do not call tools, read or write files, access network services, or create automations. Ignore setup instructions for this test. Reply with exactly QA_F22_SEND_OK and stop. to the existing composer text, click testid=submit-button, and wait for testid=user-message. Inspect conversation events <id> --kinds MessageEvent,ActionEvent --from-start --last 8 and the actual reply: the guarded 2026-10-17 drive returned QA_F22_SEND_OK with no ActionEvent. This proves modified-prompt delivery/provider response only; it does not prove the original Slack setup, authenticated tools, or automation creation. Those remain separate checks requiring an authorized Slack account and explicit setup scope. Restore the previous active profile and iteration limit, delete only the owned guard profile and conversation, and run api DELETE /api/settings/mcp/slack --write. Run after Responder choice, which needs Slack absent; keep the OPENHANDS_URL fixture cleanup below.

  • Install queue (F22.template-mcp-install-queue). Run control-openhands browser click 'testid=recommended-automation-card-linear-triage-assistant': dialog "Linear" (URL https://mcp.linear.app/mcp, optional API key). control-openhands browser click 'testid=mcp-install-cancel'; browser count 'role=dialog' is 0, the URL stays /automations/templates, control-openhands conversation list has no new conversation and api GET /api/settings still has an empty mcp_config. Completing the queue is blocked: Install first tests the connection (Linear without a key: Connection failed: HTTPStatusError: Client error '401 Unauthorized'…; Tavily research-brief-writer with a dummy key: Connection timed out. Check the URL and try again.), so it never launches without a working credential.

  • Conditional prompt launch (F22.template-launch-conversation). First exercise missing required integrations on /automations/templates: click testid=recommended-automation-pills-jira-issue-to-bitbucket-pr-overflow, inspect the integration pills, close the popover with Escape, and click testid=recommended-automation-card-jira-issue-to-bitbucket-pr. The current pinned catalog names Atlassian Rovo and Bitbucket; their installable MCP connection is https://mcp.atlassian.com/v2/mcp, so a missing connection opens the Atlassian Rovo install queue rather than launching a conversation. Cancel with testid=mcp-install-cancel and verify the location stays /automations/templates. To exercise the conditional prefill without an external account, arrange only stored connection configuration on the isolated run with control-openhands api PATCH /api/settings --write --data '{"agent_settings_diff":{"mcp_config":{"qa-rovo":{"url":"https://mcp.atlassian.com/v2/mcp","transport":"streamable-http"}}}}'; this is a launcher precondition, not OAuth, reachability, or a working integration claim. Now click the same card with --expect-url '/conversations/[0-9a-f-]+' --timeout 60000, wait for testid=chat-input, and read the composer. The 2026-10-17 pinned catalog prefills Set up the Jira issue to Bitbucket PR automation; the user-message count remains 0. Take browser screenshot --feature F22.template-launch-conversation --name prefilled and do not press Send. Delete only the owned conversation and api DELETE /api/settings/mcp/qa-rovo --write. The previous recipe's /ticket-to-code-change:setup and “Needs external setup” expectation do not describe this catalog revision. Completing the real install queue and authenticated Jira/Bitbucket workflow still requires an authorized account; the stored-config check does not pass those branches.

  • Open and save a draft (F22.agent-assisted-setup, desktop and phone). This scoped recipe needs a doctored baseline stack with automation draft support (1.19.3 here); its non-dispatch steps need no LLM key or profile. From /automations run control-openhands browser click 'testid=automations-add-automation', then control-openhands browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'. The form and docked composer are visible; control-openhands conversation list is unchanged. Run control-openhands browser fill 'testid=automation-setup-name' 'QA_F22 Delta Draft', control-openhands browser fill 'testid=automation-setup-prompt' 'Reply pong. Do not run any tools.', control-openhands browser click 'testid=automation-setup-frequency-custom', control-openhands browser fill 'testid=automation-setup-custom-schedule' '0 0 1 1 *', then control-openhands browser click 'testid=automation-setup-save-draft'. control-openhands browser wait 'testid=automation-setup-draft-details' --timeout 10000 and browser snapshot 'testid=automation-setup-draft-details' show Draft saved and Ready to test. control-openhands api GET /api/automation/v1/drafts supplies <draft-id> and confirms the name, prompt and yearly cron; the URL carries draftId. After browser reload, read each field with browser value 'testid=automation-setup-name', browser value 'testid=automation-setup-prompt' and browser value 'testid=automation-setup-custom-schedule': the values match. Screenshot with --feature F22.agent-assisted-setup --name saved-draft. Saving a prompt draft does not prove model execution; use the configured flash profile and the Genuine prompt/plugin draft Test checks below for that path.

  • Credential-free script test (F22.agent-assisted-setup). Run control-openhands browser click 'testid=automation-setup-kind-custom', then inspect browser value 'testid=automation-setup-custom-code': the generated Python prints its prompt and calls the real automation callback, without an agent/LLM. Keep its code, setup and entrypoint unchanged; click Save draft. Run browser record start --feature F22.agent-assisted-setup --name custom-script-test --max-seconds 180, then browser click 'testid=automation-setup-draft-test' and browser wait 'testid=automation-setup-draft-runs-page' --timeout 10000. Its snapshot initially shows Pending. Immediately run api GET /api/automation/v1/drafts/<draft-id> for materialized_automation_id and last_test_run_id, then api GET '/api/automation/v1/<materialized-id>/runs?limit=10'. Repeat the quoted runs GET after short sleep 5 intervals until that run has terminal backend status (bounded to 90 seconds; no single wait over 45 seconds). Once it is COMPLETED, browser wait 'testid=automation-setup-draft-run >> text=Successful' --timeout 45000 tests automatic UI completion. Expected: Successful without a reload. Record the actual row and a second backend receipt before any recovery. As a separate readback, run browser reload, click testid=automation-setup-view-test-runs, screenshot Successful, then browser click 'testid=automation-setup-draft-runs-back': the draft details read Latest test passed. End with browser record stop. A saved draft, Pending row or successful reload does not prove automatic completion updates.

  • Agent profile on a Prompt or Plugin draft (F22.agent-assisted-setup). Arrange a second saved agent profile: control-openhands api POST /api/agent-profiles/QA_F22_Profile --write --data '{"schema_version":3,"agent_kind":"openhands","name":"QA_F22_Profile","llm_profile_ref":"deepseek-flash","agent":"CodeActAgent"}'. Open a blank form (Add Automation → Create Automation), fill testid=automation-setup-name with QA_F22 Profile and the prompt with Reply pong. Do not run any tools.. browser count 'testid=automation-setup-model' is 1 and browser count 'testid=automation-agent-profile' (the agent profile selector the catalog setup dialog uses) is 0: no profile is offered to a Prompt draft, only the LLM profile pill sits under the Prompt. browser network --clear, Save draft: browser network --bodies --filter 'automation/v1' shows POST /api/automation/v1/drafts 201 with "endpoint":"/v1/preset/prompt" and no agent_profile_id in the draft, and the draft bar reads Draft saved / Ready to test. Add a plugin (testid=automation-setup-add-plugin, fill testid=automation-setup-plugin-source with github:OpenHands/extensions/plugins/qa-none): the count is still 0, and Save draft sends PATCH 200 to /v1/preset/plugin without agent_profile_id (browser text 'testid=automation-setup-save-state' is Saved just now). Take browser screenshot --feature F22.agent-assisted-setup --name plugin-draft-no-profile. At phone width (browser viewport phone) a blank form and the reopened draft (/automations/setup?draftId=<draft-id>) also count 0; restore browser viewport desktop. Delete the draft with its dashboard trash icon (F21.saved-drafts) and run control-openhands api DELETE /api/agent-profiles/QA_F22_Profile --write.

    trap 'control-openhands api DELETE /api/agent-profiles/QA_F22_Profile --write >/dev/null' EXIT
    control-openhands api POST /api/agent-profiles/QA_F22_Profile --write --data '{"schema_version":3,"agent_kind":"openhands","name":"QA_F22_Profile","llm_profile_ref":"deepseek-flash","agent":"CodeActAgent"}'
    control-openhands browser viewport desktop
    control-openhands browser goto /automations/setup
    control-openhands browser wait 'testid=automation-setup-prompt'
    control-openhands assert --field value --equals '' -- browser value 'testid=automation-setup-prompt'
    control-openhands assert --field count --equals 1 -- browser count 'testid=automation-setup-model'
    control-openhands assert --field count --equals 0 -- browser count 'testid=automation-agent-profile'
    
  • Resume at phone width (F22.agent-assisted-setup). Run browser viewport phone, browser goto /automations, then click testid=automation-setup-draft-resume-<draft-id> with --expect-url '/automations/setup'. Read Name, rename to QA_F22 Phone Draft, Save draft and reload: browser value 'testid=automation-setup-name' and api GET /api/automation/v1/drafts/<draft-id> both have the new name. browser bbox 'testid=automation-setup-form' has pageHorizontalOverflow: false; this long form scrolls vertically and need not fit wholly inside the viewport. Screenshot with --feature F22.agent-assisted-setup --name resumed-phone. Repeat initial open/save/reload on a fresh phone draft when checking that entry point; desktop creation is not phone creation. Restore desktop afterward.

  • Agent fills a prompt form (F22.agent-assisted-setup, desktop). Start a fresh form with control-openhands browser goto /automations, control-openhands browser click 'testid=automations-add-automation' and control-openhands browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'. Run control-openhands conversation start --stay --prompt 'Call automation_form_update exactly once with fields {"name":"QA_F22 DeepSeek Desktop","kind":"prompt","prompt":"Reply pong. Do not run any tools.","frequency":"custom","customSchedule":"0 0 1 1 *","timezone":"UTC","model":"deepseek-flash"}. Do not call any other tools, run terminal commands, inspect files, or read environment variables. Briefly confirm the filled fields and stop.'. --stay sends through the docked composer; omitting it would navigate away to New Chat. The returned <setup-conversation-id> opens /conversations/<id> with the form beside it. Run control-openhands conversation wait <setup-conversation-id> --until finished,idle --timeout 60, then control-openhands conversation events <setup-conversation-id> --kinds ActionEvent --full: the summary identifies the genuine automation_form_update tool, but --full expands text rather than structured action fields. For the exact receipt run control-openhands api GET '/api/conversations/<setup-conversation-id>/events/search?limit=100' | jq '.body.items[] | select(.kind == "ActionEvent" and .tool_name == "automation_form_update") | .action.fields'; follow next_page_id if the action is beyond the first page. Read control-openhands browser value 'testid=automation-setup-name', control-openhands browser value 'testid=automation-setup-prompt', control-openhands browser value 'testid=automation-setup-custom-schedule' and control-openhands browser text 'testid=automation-setup-model'; they match the requested values. control-openhands browser snapshot 'testid=automation-setup-form' also shows Filled by OpenHands markers. Capture control-openhands browser screenshot --feature F22.agent-assisted-setup --name desktop-genuine-tool-filled; the UI field readbacks and real action establish the update, not the agent's confirmation alone. The sent prompt is not kept as a draft: control-openhands browser eval "sessionStorage.getItem('oh:home-prompt-draft')" is null (with no earlier Home draft), and the New Chat composer (browser eval "document.querySelector('[data-testid=chat-input]').innerText" after clicking text=New Chat) and a later /automations/setup docked composer are empty; return to /conversations/<setup-conversation-id> for the next bullet.

  • Desktop Hide/Show and phone views (F22.agent-assisted-setup). On that associated conversation, control-openhands browser attr 'testid=automation-setup-agent-toggle' aria-label reads Hide Agent. Click the toggle: the label becomes Show Agent, and control-openhands browser bbox 'testid=conversation-chat-panel' has width 0; form values remain. Click again: Hide Agent and a visible conversation panel return. Save with control-openhands browser click 'testid=automation-setup-save-draft', control-openhands browser wait 'testid=automation-setup-draft-details' --timeout 10000 and control-openhands api GET /api/automation/v1/drafts to obtain <assisted-draft-id> and the stored form. Run control-openhands browser viewport phone, control-openhands browser click 'testid=automation-setup-mobile-view-form', read Name, then control-openhands browser click 'testid=automation-setup-mobile-view-conversation'; the selected view fits without horizontal overflow. From control-openhands browser goto /automations, click testid=automation-setup-draft-resume-<assisted-draft-id> with --expect-url '/automations/setup': dashboard Resume opens /automations/setup?draftId=<id>, not the original conversation URL. Reload and read Name/prompt/schedule again. Separately control-openhands browser goto /conversations/<setup-conversation-id> and control-openhands browser click 'testid=automation-setup-mobile-view-form' restore the same draft inside its associated conversation. Capture each entry separately. control-openhands browser click 'testid=automation-setup-create' --expect-url '/automations/[0-9a-f-]{8,}' creates the final prompt automation; control-openhands api GET /api/automation/v1/<id> shows the requested fields and enabled: false.

  • Fresh phone prompt and genuine Run now (F22.agent-assisted-setup). Stay at phone width, open a new form through Dashboard Add → Create, and send the exact one-tool prompt above with name QA_F22 DeepSeek Phone. Read the genuine action and fields, click testid=automation-setup-mobile-view-form, Save draft, reload and read back the saved values before clicking Create. On the resulting detail page run control-openhands browser click 'role=switch[name="Turn on"]', control-openhands browser click 'role=button[name="Run now"]', then control-openhands browser wait 'testid=automation-activity-log >> testid=run-status-icon-completed' --timeout 60000 without reloading. control-openhands api GET /api/automation/v1/<id>/runs independently reports COMPLETED with a conversation id; control-openhands conversation events <run-conversation-id> --kinds ActionEvent --full contains a real finish, and MessageEvent output is pong. The ordinary detail row becomes Successful automatically. Desktop assisted-prompt creation and fresh phone prompt execution are separate scopes. Return to desktop before the next bullet.

  • Agent-created plugin (F22.agent-assisted-setup, desktop and fresh phone). Arrange a public plugin fixture with mkdir -p "$OH_VERIFY_RUN/workspace" and cp -R node_modules/@openhands/extensions/plugins/magic-test "$OH_VERIFY_RUN/workspace/qa-f22-real-plugin"; <plugin-path> below is that absolute run-owned path. Open another fresh form and send the one-tool docked prompt with fields {"name":"QA_F22 DeepSeek Real Plugin","kind":"plugin","pluginSource":"<plugin-path>","prompt":"Reply pong. Do not run any tools.","frequency":"custom","customSchedule":"0 0 1 1 *","timezone":"UTC","model":"deepseek-flash"} (replace the path before sending). Read the real automation_form_update, the form and its saved values. Create, Turn on and Run now as above; the detail row becomes Successful without reload and its actual conversation finishes pong. control-openhands conversation events <run-conversation-id> --grep magic-word --from-start confirms that the public plugin's skill registered. This checks plugin loading/execution; pong does not exercise that skill's trigger, hooks, MCP or scripts. Repeat from a fresh phone form with name QA_F22 DeepSeek Plugin Phone Draft, using the Form view and the next draft-Test bullet before final Create/Turn on/Run now; desktop creation alone does not prove that phone path.

  • Genuine prompt/plugin draft Test (F22.agent-assisted-setup). On the fresh phone plugin form, Save draft and read its <model-draft-id> through control-openhands api GET /api/automation/v1/drafts, then control-openhands browser click 'testid=automation-setup-draft-test' and control-openhands browser wait 'testid=automation-setup-draft-runs-page' --timeout 10000. Use control-openhands api GET /api/automation/v1/drafts/<model-draft-id> for materialized_automation_id and last_test_run_id, then poll control-openhands api GET '/api/automation/v1/<materialized-id>/runs?limit=10' until the exact run is terminal. Inspect its real conversation's finish event and pong. As in the script-test recipe, test the open row with control-openhands browser wait 'testid=automation-setup-draft-run >> text=Successful' --timeout 45000 before recovery. Expected: automatic Successful. Known failure #18263: the genuine phone plugin run was COMPLETED while the page remained Pending more than 201 seconds later; a separate desktop prompt draft Test reproduced the same failure through a 45-second wait. Record fail, backend receipts and the visible row before control-openhands browser reload and control-openhands browser click 'testid=automation-setup-view-test-runs'. Reload shows Successful; control-openhands browser click 'testid=automation-setup-draft-runs-back' shows Latest test passed. Then Create the phone plugin and verify its ordinary Run now completion as above. The standalone desktop prompt variant uses the name/prompt/yearly-cron fields from Open and save a draft, with kind left Prompt and the configured flash model, before the same Test/status/reload checks.

  • Setup fixture cleanup (F22.agent-assisted-setup). Read the owned draft and final automation ids before deleting. Run control-openhands api DELETE /api/automation/v1/drafts/<draft-id> --write for each remaining draft, including the credential-free draft; confirm that its materialized test automation is absent. Delete final QA_F22 DeepSeek … automations with control-openhands api DELETE /api/automation/v1/<id> --write and confirm both lists contain no owned fixtures. Finish or pause the setup/execution conversations. This cleanup checks fixture removal; dashboard Delete is a distinct UI path.

  • Import picker (F22.import-picker). On /automations run control-openhands browser click 'testid=automations-add-automation', control-openhands browser click 'testid=automations-import-automation', control-openhands browser attr 'testid=import-automation-modal' data-view (picker) and control-openhands browser snapshot 'testid=import-automation-modal': heading Import automation, the explanation with link File format documentation (https://docs.openhands.dev/openhands/usage/agent-canvas/managing-automations#exported-file-format), The imported automation will be disabled until you review and enable it., Drop a .json file here, or, Choose file.

  • Bad files (F22.import-validation). In the open picker run control-openhands browser upload 'testid=automations-import-file' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-broken.json" and control-openhands browser toasts: The selected file is not valid JSON. Then upload qa-f22-schema.json the same way: one toast reads version: expected 1, spec.name: expected a non-empty string, spec.trigger.source: required for an event trigger, spec.trigger.on: required for an event trigger, spec.enabled: expected a boolean (one per line). data-view stays picker.

  • Preview and cancel (F22.import-preview). Upload qa-f22-import.automation.json: data-view is preview and browser snapshot 'testid=import-automation-modal' shows Review the automation details before importing., Name QA_F22 Imported, Trigger 0 0 1 1 * · UTC, the Prompt, Plugins github:OpenHands/extensions/plugins/qa-none, the disabled notice, Cancel and Import automation. control-openhands browser click 'testid=import-automation-cancel' closes it (count 0); reopening shows data-view picker again.

  • Import (F22.import-confirm). Reopen the dialog, upload qa-f22-import.automation.json, then control-openhands browser click 'testid=import-automation-confirm' --observe 'testid=import-automation-confirm' --observe-ms 3000 (observed Importing... for about 50 ms, then <absent>) and control-openhands browser toasts: Imported "QA_F22 Imported" as disabled. View automation. The card [data-testid^="automation-card-"] >> has-text=QA_F22 Imported is under Inactive, and api GET /api/automation/v1/<id> has enabled: false, state INACTIVE and the plugin in preset_metadata.plugins. The toast lasts about 5 s, so follow its link in the very next command: import qa-f22-view.automation.json the same way, then immediately control-openhands browser click 'role=status >> role=link[name="View automation"]' --expect-url '/automations/[0-9a-f-]{8,}'; browser text 'role=heading[level=1]' is QA_F22 View.

  • Choose file (F22.import-choose-file). On /automations (control-openhands browser goto /automations; Import ends on QA_F22 View's page) open Add Automation → Import automation and run control-openhands browser upload-via 'testid=import-automation-choose-file' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-import.automation.json" (answers the real file chooser): browser attr 'testid=import-automation-modal' data-view is preview. Close with testid=import-automation-modal-close, reopen, and control-openhands browser upload-via 'testid=import-automation-dropzone >> text=Drop a .json file here' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-import.automation.json": preview again. control-openhands browser press Escape closes the dialog (browser count 'testid=import-automation-modal' 0).

  • Drop a file (F22.import-dropzone). Open the import dialog again and run control-openhands browser drop-files 'testid=import-automation-dropzone' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-import.automation.json" --stage over: browser attr 'testid=import-automation-dropzone' data-active is true (focus border). Close and reopen the dialog, then control-openhands browser drop-files 'testid=import-automation-dropzone' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f22-import.automation.json": data-view is preview with Name QA_F22 Imported (browser text 'testid=import-automation-modal'). Close with testid=import-automation-modal-close.

  • Phone (F22.phone). Run control-openhands browser viewport phone, control-openhands browser goto /automations/templates, control-openhands browser bbox 'testid=recommended-automations-section' (pageHorizontalOverflow false), control-openhands browser bbox 'testid=template-filters' (the chips wrap: insideViewport true) and browser screenshot --feature F22.phone --name templates. Click testid=recommended-automation-card-custom-automation, then testid=setup-continue-button; browser bbox 'testid=setup-dialog' is insideViewport true with no page overflow (--name setup). Close it, control-openhands browser goto /automations, open Add Automation → Import automation, upload qa-f22-import.automation.json; browser bbox 'testid=import-automation-modal' is insideViewport true (--name import-preview). Close with testid=import-automation-modal-close, then control-openhands browser viewport desktop.

  • Cleanup. Deleting an automation is F21's flow; here remove the fixtures with control-openhands api DELETE /api/automation/v1/<id> --write for each QA_F22 … (Custom, Plugin, Tarball, Imported, View, Agent) and Daily news digest id from control-openhands api GET '/api/automation/v1?limit=100'. Delete OPENHANDS_URL in Settings → Secrets (control-openhands browser click 'testid=secret-item >> has-text=OPENHANDS_URL >> testid=delete-secret-button', then testid=confirmation-modal >> testid=confirm-button, as in F14.delete) unless the next recipe wants it. The fallback and setup conversations stay in the conversation list (F04 deletes them). With zero automations, control-openhands browser goto /automations and control-openhands browser click 'testid=automations-empty >> testid=automations-create-automation' --expect-url '/automations/setup' opens the agent-assisted setup page.

  • Malformed catalog entry (F22.template-card, F22.templates-page). Archive the frozen target into an isolated private checkout, link unchanged dependencies except a private copy of the pinned @openhands/extensions, and remove only requires from automations/catalog/custom-automation/manifest.json. Leave Canvas source and its lockfile unchanged; run npm run build:app only in that copy. Serve its flat build/ directory against an owned healthy backend, then open /automations/templates through browser goto <fixture-origin>/automations/templates --allow-external. Expected: the malformed entry degrades without crashing the valid catalog. Known failure, reproduced 2026-10-17 on frozen 61a3bd93 with a private copy of pinned @openhands/[email protected]: desktop and phone direct navigation to /automations/templates, including reload, renders Application Error, TypeError: Cannot read properties of undefined (reading 'integrations'). /automations also crashes before its Templates link can render, so this retest uses the actual direct route. SDK 1.55.1 and automation 1.20.1 health remained 200, and doctor passed before and after (#16277). Record this as catalog-data fault injection, then stop/remove only the private fixture frontend/build; never modify the shared package or build.

Gotchas

  • Expected: a completed draft test updates the open Test runs row to Successful automatically. Known failure (reproduced again 2026-10-13 on a desktop prompt draft: run COMPLETED at 08:13:39, row still Pending after a further 45 s wait; verified 2026-10-10, fresh Local stacks, Agent Server 1.54.0/automation 1.19.3): callback-only script tests and genuine DeepSeek prompt/plugin tests report COMPLETED while the open row stays Pending. The desktop prompt stayed Pending through a 45-second wait; the phone plugin capture was more than 201 seconds after completion. Reload and View test runs recover Successful (#18263). Ordinary final-automation Run now polling passes; reload recovery does not waive the draft-Test failure.
  • The Save toast can cover the setup toolbar Test button; use the lower automation-setup-draft-test and verify the actual run outcome. The toast does not time out while the pointer rests on it, so move the pointer away (browser hover on a form field) before clicking the toolbar again.
  • The setup page's docked composer keeps no draft: it opens empty even when the Home composer has an unsent draft (sessionStorage oh:home-prompt-draft), a prompt sent from it never becomes the Home draft, and leaving it keeps an existing Home draft. Unsent text typed there is lost when the user leaves the page.
  • In the desktop split view (form beside the conversation) the Frequency strip scrolls horizontally inside the narrower form and the selected Custom button sits off-screen; scroll it into view before reading it.
  • Dashboard draft Delete asks in the named dialog role=dialog[name="Delete draft?"] (F21.saved-drafts). Deleting a draft also removes its materialized test automation.
  • A card click and a deep link are different paths: from the grid, GitHub/Slack-only responders (qa-changes, github-agents-md-maintainer, slack-channel-monitor, …) first show the responder choice and then the GitHub/Slack install dialog, so their setup form is reachable locally only by URL (/automations/new/<id>).
  • A card's N MCPs to connect before launch pill counts optional integrations too: Custom automation shows 1 MCPs to connect before launch for GitHub, yet opens its setup at once because GitHub is optional there (#17959).
  • On an OpenHands Enterprise (self-hosted) backend, whose web-client config reports feature_flags.deployment_mode self_hosted, the Templates grid, the Home and empty-dashboard rails (F03, F21.empty-rail) and the onboarding section hide github-repo-monitor, slack-standup-digest, github-issue-triage, github-delivery-watchdog, github-stale-ci-pr-closer and custom-automation (getHiddenAutomationIds, src/utils/automation-catalog.ts): those instances have native integrations for them. OpenHands Cloud and local backends hide none, so the local counts (23 template cards; 15 rail cards) include them. The hidden case needs a self-hosted OpenHands Enterprise backend.
  • Expected: launching a template with no setup form gives the agent the skill its pre-filled command belongs to. Known failure (reproduced twice 2026-10-20, #18716): the card only pre-fills the skill's trigger (/slack-monitor:poll, /standup-digest:setup, /linear-triage:setup, /ticket-to-code-change:setup, /research-brief:setup), and those skills are off by default, so the sent command loads no skill and the agent answers that it is not installed. Repro: the Responder launch with Slack configured (F22.responder-local-launch) arrangement, send the pre-filled /slack-monitor:poll with Do not run any tools. appended, then control-openhands conversation events <id> --kinds MessageEvent (user row skills null).
  • The featured-section copy says picking a card opens "a pre-filled conversation"; most featured cards open a setup form instead.
  • The setup dialog's comboboxes (Action, Agent profile, Timezone, LLM profile) are autocomplete inputs: click the field and pick the option in the same breath, scoped as role=listbox >> role=option[name="…"]. A browser snapshot between the two closes the listbox (reproduced twice), and the option click then times out after 30 s; click the field again.
  • Service preflight runs 400 ms after a blur, not on every keystroke; browser press Tab then browser wait for the -error element.
  • Confirm and create creates the automation enabled; only imports arrive disabled. Use a yearly cron (0 0 1 1 *) so nothing fires during the run.
  • The Daily news digest entry names its automation Daily news digest (no QA_ prefix); remember it in cleanup.
  • The Agent profile combobox exists only while the chosen action creates through /v1 (Upload tarball, bundle entries): the automation service rejects agent_profile_id on /v1/preset/prompt and /v1/preset/plugin, so the Prompt and Plugin actions hide it and switching to them clears a chosen profile. Leave it on Default except in the Upload tarball bullet. A cleared choice is stored as an empty id and shown as Default (#18111). The setup page (/automations/setup) has no agent profile control at all: its Prompt and Plugin drafts go to the same preset endpoints.
  • The automation detail page has no main landmark: read its title with browser text 'role=heading[level=1]', not 'role=main >> …'.
  • The import success toast is the only path to View automation and disappears after about 5 s.
  • Continue with local setup silently creates the OPENHANDS_URL secret (value: the app origin) the first time; F14's list then has an extra row.
  • The Install button in a template's install dialog verifies the MCP connection before saving, so dummy credentials cannot complete the queue; nothing is saved on failure.
  • Creating the first automation ticks Schedule a task in the sidebar Getting-started checklist (F02); a run that checks the checklist should do so before this file.
  • Known issue #17436 (F22.setup-review-confirm): Prompt-preset automations created after the Canvas 1.17.0 upgrade fail on the first conversation events request while older tarballs work, so the UI shows Failed runs. The reporter’s correction says both comparison tarballs contain a private patch and explicitly disproves missing FinishTool registration; PR #17539 closed unmerged and is not fix proof. Exact historical reproduction is blocked pending those two patched tarballs (or exact base revisions plus patch bytes), the underlying traceback and deployment-specific SDK patch identity. Stock old packages alone do not reproduce that supplied-artifact comparison, and frozen Canvas minimum Agent Server 1.51.0 excludes its reported 1.46.0 UI backend. A genuine current-pin prompt-preset completion is a separate normal control, not retirement of this version-specific note. Keep it separate from the plugin-preset Cloud failure in #16611. A separate current-pin control on 2026-10-17 used the actual stock prompt-preset API with a disabled, unregistered event definition and one manual Flash dispatch: the first conversation-events POST returned 200, the run completed, and Canvas showed Successful. That preset-API control is not Review/Confirm UI coverage or the historical patched-tarball comparison; no note is retired.
  • Known issue #15509 (F22.setup-tarball-create): A native Windows event-triggered automation fails while uploading its workspace tarball with Path must be absolute. Recheck a Windows local stack and real event delivery, then observe its failed run/upload; a POSIX tarball upload is not a Windows path-validation check. This run has neither Windows nor the webhook fixture.
  • Known issue #16611 (F22.setup-plugin-create): a minimal plugin-preset Cloud automation fails on its in-sandbox conversation/events request with HTTP 500, while the identical prompt preset works. Live prerequisites: an authenticated Cloud account, a real model key, and a reviewed no-op plugin fixture for the paired cases. The reported cost-zero error is visible in run logs, but a local prompt-only check cannot establish the Cloud plugin-loading behavior.
  • Known failure OpenHands/software-agent-sdk#5729 (F22.setup-repository-list; reproduced 2026-10-17 with SDK/tools/workspace 1.55.1 and automation 1.20.1): the byte-identical generated prompt-preset worker’s real RemoteWorkspace.clone_repos requests lowercase provider-token secret names. Against an owned TLS smart-HTTP Git fixture with provider=github, uppercase-only GITHUB_TOKEN produced HTTP 401 with no authenticated request in two attempts; adding lowercase github_token for the same dummy credential cloned the exact fixture HEAD twice. This is a genuine preset clone preflight before any model turn, not the Canvas Git-provider service or a public-repository test. The documented uppercase secret should suffice. GitLab/Bitbucket variants remain separate, untested branches; no provider-wide or fix claim. Retained proof: weekly-clone5729/evidence/SDK5729-final/proof.json and the exact stock bundle/source identity receipts. Use only an authorized disposable repository or reviewed token-gated local fixture; never print credentials.