Skip to content

🙌 OpenHands: AI-Driven Development

docs(verify-openhands): map maintenance 2026-10-13 (#18399)

Engel Nyst62491b193d59
diff --git a/.agents/skills/verify-openhands/references/feature-map/F01-first-run-and-sign-in.md b/.agents/skills/verify-openhands/references/feature-map/F01-first-run-and-sign-in.md
index cdc60b02a1..01dde165f9 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F01-first-run-and-sign-in.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F01-first-run-and-sign-in.md
@@ -18,10 +18,10 @@ Source: `src/root.tsx`, `src/components/features/onboarding/`, `src/components/f
- `F01.telemetry-consent`: on a connected local backend whose `user_consents_to_analytics` is `null`, an elevated "Help improve OpenHands" modal names the backend and host. It has a checked-by-default "Send anonymous usage data" box and "Confirm preferences". Escape does not dismiss it. The choice is saved to backend settings, and the modal does not return after a reload.
- `F01.onboarding-modal`: a segmented progress bar (3 steps, or 4 with the backend step) over a sliding rail. Neither Escape nor a click on the backdrop dismisses it. "Skip for now" shows on every step except the last, and Back/Next move between steps.
- `F01.onboarding-backend-step`: when no reachable backend exists (public mode), step 0 "Add a backend" prefills the name `Local` and the page origin as host. Next stays disabled until an API key is typed. A wrong key shows "Could not connect to <host>" / "Invalid API key" inline. The right key saves the backend, and the flow collapses to 3 steps on "Choose your agent" with no Back button. The first paint must not raise an error toast.
-- `F01.onboarding-choose-agent`: radio tiles for OpenHands (preselected), Claude Code, Codex and Gemini CLI. Next saves the agent kind with a "Settings saved" toast.
+- `F01.onboarding-choose-agent`: radio tiles for OpenHands (preselected), Claude Code, Codex and Gemini CLI, plus Pi and OpenCode on a local backend (#17758; a Cloud backend offers only the first four, and a hidden choice falls back to OpenHands). Next saves the agent kind with a "Settings saved" toast.
- `F01.onboarding-setup-llm`: on a first run the embedded LLM form is prefilled with `openai/gpt-5.6-sol`. Typing a custom model and key then Next saves them. On a local backend Next saves the form as an LLM profile named after the model (`deepseek/deepseek-flash` → `deepseek-flash`) and activates it, without writing the raw LLM settings.
- `F01.onboarding-repeat-endpoint`: onboarding again (a new browser, the same backend) fills the form from the active LLM profile, or from the one the `default` agent profile points at, model included. The All view prefills its Base URL and key even when the raw LLM settings hold another Base URL. Next without changes keeps that profile and saves no copy. Changing only the model creates a profile that keeps that Base URL and key, and the say-hello conversation reaches that endpoint.
-- `F01.onboarding-acp-secrets`: choosing an ACP agent swaps the LLM step for "Add your API keys" with that provider's fields. When the host CLI is already logged in, a green "already signed in" banner makes them optional. Back returns to the agent step.
+- `F01.onboarding-acp-secrets`: choosing an ACP agent swaps the LLM step for "Add your API keys" with that provider's fields. When the host CLI is already logged in, a green "already signed in" banner makes them optional. OpenCode's fields (`OPENCODE_AUTH_CONTENT`, `OPENCODE_API_KEY`) are always optional; Pi's two fields (`PI_AUTH_JSON`, `ANTHROPIC_API_KEY`) are each labelled Optional, but without a host login at least one of them is needed: Next stays disabled under a warning, readable in light themes, until either is filled. Back returns to the agent step.
- `F01.onboarding-say-hello`: the last step has a prefilled message. An empty message disables send. Enter or the send button creates a conversation, navigates to `/conversations/<id>` and completes onboarding, and the agent replies. A recommended-automations list sits under an "Or" separator, and a "Skip Getting Started checklist" box sits below the modal.
- `F01.onboarding-hello-close`: the last step has Back and Close instead of "Skip for now". Close dismisses the modal without creating a conversation, sets the `openhands-onboarded` flag and leaves the app shell on `/`.
- `F01.onboarding-recommended-automation`: picking a card under "Start from a proven workflow" on the last step completes onboarding too. A card with its own setup form (for example "Daily news digest") navigates to `/automations/new/<id>` and opens that form. Nothing is created until the form is submitted.
@@ -61,7 +61,7 @@ Local run (`launch --new`):
- **First-run gate (`F01.first-run-gate`).** Run `control-openhands browser goto /conversations` and `control-openhands browser testids`. The list starts with `first-run-onboarding-screen`, `telemetry-consent-form` and `onboarding-modal`; `root-layout` is absent. Run `control-openhands browser screenshot --feature F01.first-run-gate --name fresh`. The screenshot shows the consent modal over "Choose your agent".
- **Consent (`F01.telemetry-consent`).** Run `control-openhands browser snapshot 'testid=telemetry-consent-form'`. It reads `This preference is saved for the local backend “Local” at http://127.0.0.1:<port>.` and the checkbox is `[checked]`. Run `control-openhands browser press Escape` and `control-openhands browser count 'testid=telemetry-consent-form'`; the count stays `1`. Run `control-openhands browser uncheck 'testid=telemetry-consent-form >> role=checkbox'`, `control-openhands browser click 'testid=confirm-telemetry-preferences'`, `control-openhands browser wait 'testid=telemetry-consent-form' --state detached`, then `control-openhands api GET /api/settings`. It shows `"user_consents_to_analytics": false`. Run `control-openhands browser reload` and `control-openhands browser count 'testid=telemetry-consent-form'`; the count is `0`.
- **Modal shell (`F01.onboarding-modal`).** Run `control-openhands browser press Escape`, `control-openhands browser count 'testid=onboarding-modal'` (`1`) and `control-openhands browser attr 'testid=onboarding-modal' data-current-step` (`0`). Run `control-openhands browser mouse-click 40 40` on the bare backdrop; the count stays `1` and the step is unchanged. `onboarding-progress-step-0..2` exist and `-3` does not, because the backend is healthy.
-- **Choose agent (`F01.onboarding-choose-agent`).** Run `control-openhands browser attr 'testid=onboarding-agent-option-openhands' aria-checked` (`true`) and `control-openhands browser count 'testid=onboarding-agent-back'` (`0`). Then run `control-openhands browser click 'testid=onboarding-agent-option-codex'` and `control-openhands browser attr 'testid=onboarding-agent-option-codex' aria-checked` (`true`), and switch back with `control-openhands browser click 'testid=onboarding-agent-option-openhands'`. Run `control-openhands browser click 'testid=onboarding-agent-next'` and `control-openhands browser wait-text 'Settings saved'`; `data-current-step` becomes `1`. Run `control-openhands browser click 'testid=onboarding-llm-back'`; `data-current-step` is `0`. Click `testid=onboarding-agent-next` again.
+- **Choose agent (`F01.onboarding-choose-agent`).** Run `control-openhands browser attr 'testid=onboarding-agent-option-openhands' aria-checked` (`true`) and `control-openhands browser count 'testid=onboarding-agent-back'` (`0`). Then run `control-openhands browser click 'testid=onboarding-agent-option-codex'` and `control-openhands browser attr 'testid=onboarding-agent-option-codex' aria-checked` (`true`), and switch back with `control-openhands browser click 'testid=onboarding-agent-option-openhands'`. `control-openhands browser snapshot 'testid=onboarding-step-choose-agent'` lists six radios: OpenHands, Claude Code, Codex, Gemini CLI, `Pi The open source Pi coding agent.` and `OpenCode The open source OpenCode coding agent.` (`onboarding-agent-option-pi`, `-opencode`). Run `control-openhands browser click 'testid=onboarding-agent-next'` and `control-openhands browser wait-text 'Settings saved'`; `data-current-step` becomes `1`. Run `control-openhands browser click 'testid=onboarding-llm-back'`; `data-current-step` is `0`. Click `testid=onboarding-agent-next` again.
- **LLM step (`F01.onboarding-setup-llm`).** Run `control-openhands browser snapshot 'testid=onboarding-step-setup-llm'`. It shows `Set up your LLM` and Basic tab comboboxes `OpenAI` / `gpt-5.6-sol`. Run `control-openhands browser click 'testid=onboarding-step-setup-llm >> testid=sdk-section-advanced-toggle'` and `control-openhands browser value 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input'` (`openai/gpt-5.6-sol`). Then run `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input' deepseek/deepseek-flash`, `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY` and `control-openhands browser click 'testid=onboarding-llm-next'`. Wait with `control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'`. Second view: `control-openhands llm show` lists profile `deepseek-flash` (`deepseek/deepseek-flash`, `api_key_set: true`) as `active_profile`.
- **Say hello (`F01.onboarding-say-hello`).** Run `control-openhands browser count 'testid=onboarding-skip'` (`0` on the last step), `control-openhands browser fill 'testid=onboarding-hello-input' ''` and `control-openhands browser enabled 'testid=onboarding-hello-input-form >> testid=submit-button'` (`false`). Then run `control-openhands browser fill 'testid=onboarding-hello-input' 'Reply with only the word hello. Do not run any tools.'` (`enabled` turns `true`), `control-openhands browser press Enter --selector 'testid=onboarding-hello-input'` and `control-openhands browser wait-url '/conversations/[0-9a-f-]+'`. Take `<id>` from `control-openhands browser url`. Run `control-openhands conversation wait <id> --timeout 180` and `control-openhands conversation events <id> --kinds MessageEvent`. The agent message is `hello`, and `control-openhands browser count 'testid=onboarding-modal'` is `0`. `control-openhands browser eval "localStorage.getItem('openhands-onboarded')"` returns `"1"`. After `control-openhands browser reload` and `control-openhands browser goto /`, `testid=first-run-onboarding-screen` and `testid=onboarding-modal` both count `0`.
- **Tab title (`F01.document-title`).** On `/` run `control-openhands browser url`; `title` is `OpenHands`. On `/conversations/<id>` (after a reload, once the title is generated) the title is `<emoji> <conversation title> | OpenHands`, for example `✅ … | OpenHands` for a finished conversation.
@@ -69,13 +69,14 @@ Local run (`launch --new`):
- **Skip checklist box (`F01.onboarding-skip-checklist`).** Run `control-openhands browser goto /conversations` and `control-openhands browser count 'testid=sidebar-onboarding-checklist'` (`1`). Run `control-openhands browser goto '/?previewOnboardingStep=3'`, then `control-openhands browser click 'text=Skip Getting Started checklist'`. `control-openhands browser eval "document.querySelector('[data-testid=onboarding-skip-getting-started-checklist]').checked"` is `true`. Run `control-openhands browser goto /conversations` and `control-openhands browser reload`; the checklist count is `0`. On `/settings/app`, `control-openhands browser eval "document.querySelector('[data-testid=show-getting-started-checklist-switch]').checked"` is `false`. Restore it: go back to `/?previewOnboardingStep=3`, where the box now reads `true`, click the same text again, and the checklist count on `/conversations` is `1`.
- **Phone (`F01.onboarding-phone`).** Run `control-openhands browser viewport phone`. Then for N in 1, 2 and 3 run `control-openhands browser goto '/?previewOnboardingStep=N'`, `control-openhands browser bbox 'testid=onboarding-modal'` and `control-openhands browser screenshot --feature F01.onboarding-phone --name step-N`. The modal is 351 px wide with `insideViewport` `true` and `pageHorizontalOverflow` `false`, and Back/Next or Back/Close are visible. Return with `control-openhands browser viewport desktop`.
- **Error page (`F01.route-error-boundary`).** Run `control-openhands browser errors --clear`, `control-openhands browser goto /this-route-does-not-exist` and `control-openhands browser snapshot 'testid=not-found-screen'`. It shows `heading "Page not found"`, the paragraph `This address does not match any page. Check the URL, or go back to the home page.` and `link "Home"` (`/url: /`). `control-openhands browser count 'aside[data-collapsed]'` is `1`: the sidebar stays. `control-openhands browser screenshot --feature F01.route-error-boundary --name not-found` shows the message and the Home button centered beside the sidebar. `control-openhands browser errors --app-only` reports `pageErrors` `0` and `appErrors` `0`. Run `control-openhands browser click 'testid=not-found-home-link' --expect-url '/$'`; `control-openhands browser count 'testid=home-screen'` is `1`.
-- **Onboarding again with the saved endpoint (`F01.onboarding-repeat-endpoint`).** Two more first runs on this stack, both through the All view, which shows the Base URL field. Pass 1 saves a custom endpoint: `control-openhands browser reset`, `control-openhands browser goto /`, `control-openhands browser click 'testid=onboarding-agent-next'`, `control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="1"]'`, `control-openhands browser click 'testid=onboarding-step-setup-llm >> testid=sdk-section-all-toggle'` and `control-openhands browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` (empty). Run `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input' openai/deepseek-chat`, `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=base-url-input' https://api.deepseek.com/v1`, `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY`, `control-openhands browser click 'testid=onboarding-llm-next'` and `control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'`. `control-openhands llm show` lists `deepseek-chat` (`openai/deepseek-chat`, `base_url` `https://api.deepseek.com/v1`) as `active_profile`. Say hello as above (`browser fill 'testid=onboarding-hello-input' 'Reply with only the word hello. Do not run any tools.'`, `browser press Enter --selector 'testid=onboarding-hello-input'`, `browser wait-url '/conversations/[0-9a-f-]+'`), then `control-openhands conversation wait <id> --timeout 180` is `finished` and the agent `MessageEvent` is `hello`. Pass 2 types the same endpoint again: repeat the steps up to the All view. `browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` is now `https://api.deepseek.com/v1`, the saved value. Fill the model `openai/deepseek-v4-flash` (a DeepSeek alias, so the new profile gets its own name), the same Base URL and the key, then Next and wait for step 2 (`control-openhands browser screenshot 'testid=onboarding-step-setup-llm' --feature F01.onboarding-repeat-endpoint --name second-pass-form` before Next). Expected: `control-openhands llm show` lists `deepseek-v4-flash` with `base_url` `https://api.deepseek.com/v1`, and the say-hello conversation finishes with `hello`. Raw LLM settings that disagree with the active profile do not reach the form. To check it, arrange them before pass 2 with `control-openhands api PATCH /api/settings --write --data '{"agent_settings_diff":{"llm":{"base_url":"http://127.0.0.1:9/stale-raw-settings"}}}'`. `browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` still reads `https://api.deepseek.com/v1`. Fill only the model, run `browser network --clear` before Next and `browser network --filter '/api/(settings|profiles)'` after it: the rows are the profile `POST` and its `/activate`, with no `PATCH /api/settings`. `deepseek-v4-flash` keeps the DeepSeek Base URL, and the say-hello conversation finishes with `hello` (verified 2026-10-09). Known failure (reproduced 2026-10-12, #18302): Next replaces a profile that already has the model-derived name. Arrange one before pass 2 with `control-openhands llm set --profile deepseek-v4-flash --model openai/deepseek-v4-flash --base-url http://127.0.0.1:9/other-endpoint --api-key-env DEEPSEEK_API_KEY --no-activate --no-validate`. After pass 2's Next, `browser network --filter '/api/profiles'` shows `POST /api/profiles/deepseek-v4-flash`, and `control-openhands llm show` lists `deepseek-v4-flash` with `base_url` `https://api.deepseek.com/v1`: its own Base URL is gone, and nothing warned. Expected: the existing profile is kept, under a name that does not collide or after a confirmation. Restore: run `control-openhands llm preset deepseek`. It also points the `default` agent profile back at `deepseek-flash`: its output has `repointed` from `deepseek-v4-flash` to `deepseek-flash`. Then `control-openhands api DELETE /api/profiles/deepseek-v4-flash --write` and `.../deepseek-chat --write` answer `200`. Delete the two say-hello conversations with Clean up's steps.
+- **Onboarding again with the saved endpoint (`F01.onboarding-repeat-endpoint`).** Two more first runs on this stack, both through the All view, which shows the Base URL field. Pass 1 saves a custom endpoint: `control-openhands browser reset`, `control-openhands browser goto /`, `control-openhands browser click 'testid=onboarding-agent-next'`, `control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="1"]'`, `control-openhands browser click 'testid=onboarding-step-setup-llm >> testid=sdk-section-all-toggle'` and `control-openhands browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` (empty). Run `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input' openai/deepseek-chat`, `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=base-url-input' https://api.deepseek.com/v1`, `control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY`, `control-openhands browser click 'testid=onboarding-llm-next'` and `control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'`. `control-openhands llm show` lists `deepseek-chat` (`openai/deepseek-chat`, `base_url` `https://api.deepseek.com/v1`) as `active_profile`. Say hello as above (`browser fill 'testid=onboarding-hello-input' 'Reply with only the word hello. Do not run any tools.'`, `browser press Enter --selector 'testid=onboarding-hello-input'`, `browser wait-url '/conversations/[0-9a-f-]+'`), then `control-openhands conversation wait <id> --timeout 180` is `finished` and the agent `MessageEvent` is `hello`. Pass 2 types the same endpoint again: repeat the steps up to the All view. `browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` is now `https://api.deepseek.com/v1`, the saved value. Fill the model `openai/deepseek-v4-flash` (a DeepSeek alias, so the new profile gets its own name), the same Base URL and the key, then Next and wait for step 2 (`control-openhands browser screenshot 'testid=onboarding-step-setup-llm' --feature F01.onboarding-repeat-endpoint --name second-pass-form` before Next). Expected: `control-openhands llm show` lists `deepseek-v4-flash` with `base_url` `https://api.deepseek.com/v1`, and the say-hello conversation finishes with `hello`. Raw LLM settings that disagree with the active profile do not reach the form. To check it, arrange them before pass 2 with `control-openhands api PATCH /api/settings --write --data '{"agent_settings_diff":{"llm":{"base_url":"http://127.0.0.1:9/stale-raw-settings"}}}'`. `browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'` still reads `https://api.deepseek.com/v1`. Fill only the model, run `browser network --clear` before Next and `browser network --filter '/api/(settings|profiles)'` after it: the rows are the profile `POST` and its `/activate`, with no `PATCH /api/settings`. `deepseek-v4-flash` keeps the DeepSeek Base URL, and the say-hello conversation finishes with `hello` (verified 2026-10-09). Known failure (reproduced 2026-10-12 and 2026-10-13, #18302): Next replaces a profile that already has the model-derived name. Arrange one before pass 2 with `control-openhands llm set --profile deepseek-v4-flash --model openai/deepseek-v4-flash --base-url http://127.0.0.1:9/other-endpoint --api-key-env DEEPSEEK_API_KEY --no-activate --no-validate`. After pass 2's Next, `browser network --filter '/api/profiles'` shows `POST /api/profiles/deepseek-v4-flash`, and `control-openhands llm show` lists `deepseek-v4-flash` with `base_url` `https://api.deepseek.com/v1`: its own Base URL is gone, and nothing warned. Expected: the existing profile is kept, under a name that does not collide or after a confirmation. Restore: run `control-openhands llm preset deepseek`. It also points the `default` agent profile back at `deepseek-flash`: its output has `repointed` from `deepseek-v4-flash` to `deepseek-flash`. Then `control-openhands api DELETE /api/profiles/deepseek-v4-flash --write` and `.../deepseek-chat --write` answer `200`. Delete the two say-hello conversations with Clean up's steps.
- **Clean up.** Delete the hello conversation from its header menu: `control-openhands browser goto /conversations/<id>` (the hello conversation's `<id>` from Say hello; the Error page bullet left `/`), `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=delete-button'`, `control-openhands browser click 'role=button[name="Confirm Delete"]'`. `control-openhands conversation list` then shows `count` `0`.
Public run A (`launch --new --public`), backend step walked:
- **Backend step (`F01.onboarding-backend-step`).** Run `control-openhands browser goto /`, `sleep 12` (gives a late toast time to appear), `control-openhands browser toasts --history`, `control-openhands browser screenshot --feature F01.onboarding-backend-step --name fresh` and `control-openhands browser snapshot 'testid=onboarding-step-check-backend'`. The toast history is `[]`, and the screenshot shows no toast. The snapshot shows `Add a backend`, name `Local`, host `http://127.0.0.1:<port>`, Type `Local` checked, `button "Next" [disabled]`, and an "OpenHands Cloud" column with "Connect to OpenHands". Run `control-openhands browser fill 'testid=onboarding-backend-api-key' qa-wrong-key`, `control-openhands browser click 'testid=onboarding-backend-next'` and `control-openhands browser text 'testid=onboarding-backend-error'`. It reads `Could not connect to http://127.0.0.1:<port>` / `Invalid API key`, and `data-current-step` stays `0`. Run `control-openhands browser fill 'testid=onboarding-backend-api-key' --value-file "$OH_VERIFY_RUN/private/session-key"`, `control-openhands browser click 'testid=onboarding-backend-next'` and `control-openhands browser wait 'testid=telemetry-consent-form'`. The modal is on "Choose your agent" with `data-current-step` `0`, `testid=onboarding-progress-step-3` and `testid=onboarding-agent-back` both count `0`, and the consent form names `“Local”`. Answer it with `control-openhands browser click 'testid=confirm-telemetry-preferences'`.
- **ACP credentials (`F01.onboarding-acp-secrets`).** Run `control-openhands browser click 'testid=onboarding-agent-option-claude-code'`, `control-openhands browser click 'testid=onboarding-agent-next'` and `control-openhands browser wait-text 'Settings saved'`. Then run `control-openhands browser snapshot 'testid=onboarding-step-setup-acp-secrets'`. It shows `Add your API keys` with `CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_API_KEY` and `ANTHROPIC_BASE_URL`, and `control-openhands api GET /api/settings` shows `"agent_kind": "acp"`. Run `control-openhands browser click 'testid=onboarding-acp-secrets-back'`, `control-openhands browser click 'testid=onboarding-agent-option-openhands'` and `control-openhands browser click 'testid=onboarding-agent-next'`. `testid=onboarding-step-setup-llm` is shown and `agent_kind` is back to `openhands`.
+- **Pi and OpenCode credentials (`F01.onboarding-acp-secrets`).** The previous bullet ends on the LLM step: run `control-openhands browser click 'testid=onboarding-llm-back'` to return to the agent step, then `control-openhands browser click 'testid=onboarding-agent-option-opencode'`, `control-openhands browser click 'testid=onboarding-agent-next'`, `browser wait-text 'Settings saved'` and `browser snapshot 'testid=onboarding-step-setup-acp-secrets'`: `OPENCODE_AUTH_CONTENT Optional` and `OPENCODE_API_KEY Optional`, and `control-openhands browser enabled 'testid=onboarding-acp-secrets-next'` is `true`. Back, then the same with `onboarding-agent-option-pi`: `This backend has no host login, so credentials are required to run Pi.`, `PI_AUTH_JSON Optional` and `ANTHROPIC_API_KEY Optional` (either one is enough), Next `false` while both are empty, and `browser text 'testid=onboarding-acp-secrets-blocked'` reads `Add the credentials above to continue, or sign in on the backend.` Its colour, `browser eval "getComputedStyle(document.querySelector('[data-testid=onboarding-acp-secrets-blocked]')).color"`, is `rgb(201, 185, 116)` in OpenHands-Neutral and `rgb(125, 93, 8)` in Light+ (arrange with `browser eval "localStorage.setItem('openhands-color-theme','light-plus')"` and `browser reload`, which returns to the agent step with OpenHands selected again, so click `onboarding-agent-option-pi` and `onboarding-agent-next` once more before reading the colour; #18333). Restore the theme with `localStorage.removeItem`, go Back, choose OpenHands and Next (`agent_kind` back to `openhands`).
- **Skip into the app (`F01.onboarding-skip`).** Run `control-openhands browser click 'testid=onboarding-skip'`, `control-openhands browser wait 'testid=root-layout'`, `control-openhands browser reload`, `control-openhands browser count 'testid=onboarding-modal'` (`0`) and `control-openhands browser count 'testid=api-key-entry-screen'` (`0`).
- **Last backend removed (`F01.api-key-entry`).** Run `control-openhands browser click 'testid=backend-selector'`, `control-openhands browser click 'testid=manage-backends-menu-item'`, `control-openhands browser click 'testid=manage-backends-remove-Local'` and `control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button'`. `control-openhands browser wait 'testid=api-key-entry-screen'` succeeds. Restore with the Connect recipe below.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F02-app-shell.md b/.agents/skills/verify-openhands/references/feature-map/F02-app-shell.md
index f677b77bd4..108664a5cc 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F02-app-shell.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F02-app-shell.md
@@ -36,11 +36,11 @@ Source: `src/components/features/sidebar/`, `src/components/features/command-men
- `F02.checklist-hide`: the **Show Getting Started checklist** switch in Settings → Application hides the card (it stays hidden after a reload) and can show it again.
- `F02.checklist-all-complete`: the card disappears once all six items are complete. Completion is recomputed from current data, so deleting the automation or the MCP server brings the card back.
- `F02.super-admin-setup-guide`: on an OpenHands Enterprise (cloud) backend with `ENABLE_SUPER_ADMIN`, the first Super Admin (`/me` permissions include `manage_super_admins`) sees a floating **Setup guide** panel in the lower-right corner with `n/4` progress, the steps Add an LLM, Choose an automation template, Add an integration, Invite users and Optional: SAML / instance, a `Next: <step>` status and a **Start** link for that step (the positive Enterprise path remains unverified here). Close collapses it to a pill that reopens it. While the guide loads or shows, the **Getting started** card is hidden. Local backends never show it and make no `/api/admin/setup-state` request (#17969).
-- `F02.super-admin-setup-tour`: for the two setup steps done in Canvas (Choose an automation template, Add an integration), the guide walks the Super Admin through the page with a guided tour (`.oh-setup-tour-popover` with Back / Next / Done): the template step points at the recommended-automations section, then the setup dialog; the integration step at **Add custom server** on `/mcp`, then the server form. Finishing the guide's next step in Canvas opens the step after it the way **Start** does (a Canvas step's tour or page; an enterprise step reopens the guide to point at Start, or navigates on a locked-Cloud canvas). An enterprise page that links back with `?setup_tour=<step id>` starts that step's tour once and drops the parameter. Local backends ignore `?setup_tour=` (no tour, no guide, the parameter stays) (#18138). The positive path is blocked here, with the same Enterprise prerequisite as the setup guide above.
+- `F02.super-admin-setup-tour`: for the two setup steps done in Canvas (Choose an automation template, Add an integration), the guide walks the Super Admin through the page with a guided tour (`.oh-setup-tour-popover` with Back / Next / Done): the template step points at the recommended-automations section (a stop with no footer: no Back, Next or `1/2`, #18243), then the setup dialog; the integration step at the MCP library on `/mcp` (`mcp-marketplace-section`, "Pick a server from the library"), then the install dialog (#18261). A plain click on a Canvas step's row in the guide starts that step's tour and closes the panel (a modifier click follows the link), and while the tour waits for its next stop's element it hides its popover and overlay, so it never covers another dialog (#18261). Finishing the guide's next step in Canvas opens the step after it the way **Start** does (a Canvas step's tour or page; an enterprise step reopens the guide to point at Start, or navigates on a locked-Cloud canvas). An enterprise page that links back with `?setup_tour=<step id>` starts that step's tour once and drops the parameter. Local backends ignore `?setup_tour=` (no tour, no guide, the parameter stays) (#18138). The positive path is blocked here, with the same Enterprise prerequisite as the setup guide above.
- `F02.update-tile`: when npm `latest` is newer than the running version, a **New version** tile (`agent-canvas-version-tile`) opens an update modal with the npm and Docker commands. The tile is never shown in locked-Cloud mode.
- `F02.alert-banner`: when the server config reports maintenance, faulty models or an error message, a dismissible banner (`alert-banner`) appears at the top of the content area.
- `F02.settings-404-modal`: if the backend's settings return 404, the LLM settings modal opens by itself. Other settings fetch errors show a toast.
-- `F02.error-toasts`: failed requests show a top-right error toast with the product or server message, and the toast closes by itself.
+- `F02.error-toasts`: failed requests show a top-right error toast with the product or server message, and the toast closes by itself. Toasts stay readable in every colour theme.
## How to get to it (user POV)
@@ -87,7 +87,7 @@ Preconditions:
- **Setup guide (`F02.super-admin-setup-guide`).** Local: `control-openhands browser count 'testid=super-admin-setup-guide'` is `0` at `desktop` and `phone`, `browser count 'testid=sidebar-onboarding-checklist'` is `1`, and `control-openhands browser network --filter setup-state` reports `total` `0`. The positive path is blocked locally: it needs an OHE backend with `ENABLE_SUPER_ADMIN` whose `/api/admin/setup-state` returns a `guide_org_id`, `guide_dismissed` `false` and at least one unfinished required step, signed in as the first Super Admin.
- **Setup tour (`F02.super-admin-setup-tour`).** Local, at `desktop` and `phone`: run `control-openhands browser network --clear`, `control-openhands browser goto '/?setup_tour=first-automation'`, wait about 6 s, then `control-openhands browser count '.oh-setup-tour-popover'` and `browser count 'testid=super-admin-setup-guide'` are `0`, `browser count 'testid=home-screen'` is `1`, `browser url` still ends in `?setup_tour=first-automation`, and `browser network --filter setup-state` reports `total` `0`. The tour itself is blocked with the same Enterprise prerequisite as the guide.
- **Update tile (`F02.update-tile`).** The tile is blocked in an up-to-date checkout or without registry access. Check with `control-openhands browser count 'testid=agent-canvas-version-tile'`. When the count is `1`, click it; the modal has `agent-canvas-update-command-npm`, `agent-canvas-update-command-docker` and `agent-canvas-update-check-button`. The manual check runs either way: on `/settings/app` (`control-openhands browser goto /settings/app`; the previous bullet ends on `/mcp`), `testid=agent-canvas-update-badge` reads `Up to date` (or `New version`), `control-openhands browser click 'testid=agent-canvas-update-toggle'` opens `agent-canvas-update-modal`, and `control-openhands browser click 'testid=agent-canvas-update-check-button'` reports the result in `agent-canvas-update-status` (`You're running the latest version. What's new` when current). Close it with `control-openhands browser click 'testid=close-agent-canvas-update-modal'`.
-- **Error toast (`F02.error-toasts`).** Run `control-openhands browser goto /conversations/00000000-0000-0000-0000-000000000001` and `control-openhands browser wait-text 'This conversation does not exist'`. The URL becomes `/conversations`, and `control-openhands browser screenshot --feature F02.error-toasts --name missing-conversation` shows a top-right error toast. It is the only toast: `control-openhands browser toasts` lists just the "This conversation does not exist, or you do not have permission to access it…" text, and `control-openhands browser toasts --history` has no entry containing `this UI does not understand`. `control-openhands browser wait 'text=This conversation does not exist' --state hidden` passes within 30 s.
+- **Error toast (`F02.error-toasts`).** Run `control-openhands browser goto /conversations/00000000-0000-0000-0000-000000000001` and `control-openhands browser wait-text 'This conversation does not exist'`. The URL becomes `/conversations`, and `control-openhands browser screenshot --feature F02.error-toasts --name missing-conversation` shows a top-right error toast. It is the only toast: `control-openhands browser toasts` lists just the "This conversation does not exist, or you do not have permission to access it…" text, and `control-openhands browser toasts --history` has no entry containing `this UI does not understand`. `control-openhands browser wait 'text=This conversation does not exist' --state hidden` passes within 30 s. Light theme: arrange `control-openhands browser eval "localStorage.setItem('openhands-color-theme','light-plus')"`, repeat the `goto`, and read `control-openhands browser eval "(()=>{const t=[...document.querySelectorAll('[role=status]')].find(e=>e.textContent.includes('does not exist'));return getComputedStyle(t).color+' on '+getComputedStyle(t.closest('div[style]')).backgroundColor})()"`: `rgb(97, 97, 97) on rgb(229, 229, 229)`, readable. A success toast is not: save any change on `/settings/app` and read the `Settings saved` toast the same way. Expected: dark text. Known failure (reproduced 2026-10-13, #18387): `rgb(255, 255, 255) on rgb(229, 229, 229)` (about 1.3:1), because the shared toast style hardcodes white text (`src/utils/custom-toast-handlers.tsx`); Solarized Light is the same. Restore with `browser eval "localStorage.removeItem('openhands-color-theme')"`.
- **Check for errors.** Run `control-openhands browser errors --app-only` after each group; it reports `pageErrors` `0` and `appErrors` `0`. External `registry.npmjs.org` and `cdn.simpleicons.org` failures are sandbox noise.
- **Restore.** Leave the sidebar expanded, unpinned, with the checklist shown and expanded, at `browser viewport desktop`.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F03-home.md b/.agents/skills/verify-openhands/references/feature-map/F03-home.md
index 59f7618bb1..a23cacbeed 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F03-home.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F03-home.md
@@ -1,8 +1,10 @@
# F03 — Home and starting work
Home is the "What do you want to work on?" screen at `/` and `/conversations`.
-A user describes a task in the composer and, on a local backend, can first pick
-a workspace folder (Open Workspace, folder browser, Manage Workspaces), a
+A **Code / Automate** toggle above the composer picks what a submit starts: a
+coding conversation, or an automation setup conversation where the agent fills
+an automation form. A user describes a task in the composer and, on a local
+backend, can first pick a workspace folder (Open Workspace, folder browser, Manage Workspaces), a
workspace mode and plugins; submitting creates a conversation and opens it. A
warning banner replaces a silent failure when no LLM is configured. Below the
composer, home offers recommended automations, a pinned-automations grid and an
@@ -14,9 +16,11 @@ Source: `src/routes/home.tsx`, `src/routes/index-home.tsx`, `src/components/feat
Starting work:
-- `F03.home-entry-points`: `/`, `/conversations`, the sidebar **New Chat** and the command-menu item **New chat** show the launcher (`home-chat-launcher`) with the heading, subtitle and the `Describe an engineering task…` composer.
+- `F03.home-entry-points`: `/`, `/conversations`, the sidebar **New Chat** and the command-menu item **New chat** show the launcher (`home-chat-launcher`) with the heading, subtitle, the Code / Automate toggle and the composer, whose Code-mode placeholder reads `What do you want to build?`.
- `F03.llm-not-configured-banner`: with no usable LLM, a `role=alert` banner reads `Your LLM isn't set up yet, so conversations won't run. Finish setup to get started.`; **Set up LLM** opens `/settings/llm`; the banner is gone once a profile with a key is active.
- `F03.composer-blocked-without-llm`: with no LLM, Send is disabled and Enter creates nothing (the text stays editable).
+- `F03.launcher-mode-toggle`: a `Choose launcher mode` radio group above the composer offers **Code** (checked on every page load) and **Automate**. Automate changes the placeholder to `What work do you want to automate?` and greys out and disables the Open Workspace and Plugins row (`home-composer-actions` `aria-disabled="true"`); Code restores both. The active option stays readable in every colour theme.
+- `F03.launch-automate-mode`: submitting in Automate mode creates a conversation and opens `/conversations/<id>` as an automation setup split view: the chat on the left and the automation form (`automation-setup-panel`) on the right, whose fields the agent fills with `✦ Filled by OpenHands` markers. Attached plugins are not sent, and nothing is created until **Create Automation**. The setup view itself is F22's.
- `F03.draft-persistence`: the home draft survives a reload and is cleared after a conversation is created.
- `F03.home-model-command`: `/model <profile>` sent from home activates that LLM profile without creating a conversation.
- `F03.launch-in-workspace`: submitting with a workspace picked shows `Creating conversation…`, opens `/conversations/<id>`, and the agent runs in that folder.
@@ -50,7 +54,7 @@ Automations on home:
- `F03.home-automation-links`: a row opens `/automations/<id>`, a sparkline bar opens `/automations/<id>?run=<runId>`, **+ Add** opens `/automations`.
- `F03.home-run-tooltip`: hovering a row shows its trigger, status, last run and task.
- `F03.home-run-outcome-health`: an automation whose latest Completed run reported a task outcome shows it on Home (#17682): `blocked` and `partial_success` read **Blocked** and **Partial**, `unknown` or an unrecognised status reads **Needs review**, each with an amber (`bg-warning`) health dot, in the row text, the row link's aria-label, the tooltip's Status line and the pinned card's strip. A finish response without a string status counts as success.
-- `F03.home-row-menu`: the row kebab offers Run now, View, Edit, Turn off and Pin to dashboard; Run now toasts `Automation dispatched` and is disabled while a run is in flight; Edit saves with `Automation updated`.
+- `F03.home-row-menu`: the row kebab offers Run now, View, Edit, Turn off and Pin to dashboard; Run now toasts `Automation dispatched` and is disabled while a run is in flight; Edit opens the automation setup page `/automations/setup?automationId=<id>` with the form prefilled (no modal), where **Save** toasts `Automation updated`.
- `F03.cancel-in-flight-run`: **Cancel run** appears while a run is pending or running and cancels it (`Automation run cancelled`).
- `F03.turn-off-confirmation`: Turn off asks `Turn off "<name>"? It will stop running on its schedule until you turn it back on.`; Cancel keeps it on, Turn off disables it and drops it from home.
- `F03.pinned-automations-grid`: **Pin to dashboard** adds a card to **Pinned automations** (prompt, pills, status strip, Runs); the title opens the detail page; a deleted automation's card disappears.
@@ -58,7 +62,7 @@ Automations on home:
- `F03.pinned-card-links`: a pinned card's sparkline bar opens `/automations/<id>?run=<runId>`, and Enter on its focused title opens the detail page.
- `F03.pinned-reorder-drag`: dragging a pinned card's title row (`Reorder <name>`) onto another card reorders the pins, and the order survives a reload.
- `F03.home-automations-view-more`: past 10 rows **View more**/**View all**, past 6 pins **View more**/**View less** (not arranged).
-- `F03.automations-backend-down`: with the automation service down, the installed list and pinned grid are hidden and the composer still works. The recommendation rail returns after loading from its static catalog; opening a setup card reaches its route and pre-setup dialog while a 502 toast explains the backend failure.
+- `F03.automations-backend-down`: with the automation service down, the installed list and pinned grid are hidden and the composer still works. The recommendation rail returns after loading from its static catalog; opening a setup card reaches its route and pre-setup dialog. The rail asks for the installed automations only once `/api/automation/health` answers ok (#17838), so home raises no error toast for the stopped service.
- `F03.phone`: at 390 px the banner, launcher, rail, pinned grid, list and the workspace dialogs fit without horizontal overflow, and folder names stay readable.
## How to get to it (user POV)
@@ -66,6 +70,7 @@ Automations on home:
- Sidebar **New Chat** (`sidebar-conversations-link`), which opens `/conversations`; the logo does the same (see F02).
- Direct URL `/` (unless a page is pinned as home, see F02) or `/conversations`.
- Command menu (`Control+k`, `Meta+k` or `command-menu-trigger`): search "New chat", choose **New chat**.
+- Above the composer: the **Code** / **Automate** toggle (`home-launcher-mode-code`, `home-launcher-mode-automate`).
- Under the composer: **Open Workspace** (`open-workspace-button`) or, once confirmed, the preview bar (`home-git-control-bar-preview`); **Plugins** (`open-plugin-picker`).
- In the Open Workspace dialog: the combobox (`workspace-dropdown`) and its footer **+ Add Workspace** (`add-workspaces-button`) and **Manage Workspaces** (`manage-workspaces-button`, shown once any workspace or parent exists); in **Add workspaces**, the Favorites/Locations sidebar (`folder-browser-sidebar-<name>`).
- Below the composer: recommended cards (`recommended-automation-rail-card-<id>`), pinned cards (`pinned-automation-card-<id>`) and rows (`running-automation-row-<id>`) with their kebabs; **+ Add** (`home-automations-manage`).
@@ -88,6 +93,8 @@ Starting work:
- **Entry points (`F03.home-entry-points`).** `control-openhands browser goto /conversations` and `control-openhands browser count 'testid=home-chat-launcher'` is `1` (same for `/`). From `/settings/secrets` (`control-openhands browser goto /settings/secrets`), `control-openhands browser press Control+k`, `control-openhands browser type 'testid=command-menu >> role=combobox' 'New chat'`, `control-openhands browser snapshot 'testid=command-menu'` (one option `New chat Start a fresh OpenHands conversation. Go` [selected]), `control-openhands browser press Enter`, `control-openhands browser url`: `/conversations`. From `/settings/secrets` (`control-openhands browser goto /settings/secrets` again), `control-openhands browser click 'testid=sidebar-conversations-link' --expect-url '/conversations(\?|$)'` and `browser count 'testid=home-chat-launcher'` is `1`.
- **`/model` on home (`F03.home-model-command`).** `control-openhands api GET /api/profiles` shows `active_profile` `deepseek-flash`. Run `control-openhands browser goto /` (Entry points ended on `/conversations`). The draft from the earlier bullets is still in the composer: clear it with `control-openhands browser fill 'testid=chat-input' ''` (typing would append). Run `control-openhands browser type 'testid=chat-input' '/model deepseek-pro'`, `control-openhands browser press Escape --selector 'testid=chat-input'` (closes the slash menu), `control-openhands browser press Enter --selector 'testid=chat-input'`. The URL stays `/`, `chat-input` is empty, the composer's model pill (`browser text 'testid=chat-input-llm-profile'`) reads `deepseek-pro`, `api GET /api/profiles` shows `active_profile` `deepseek-pro`, and `api GET '/api/conversations/search?limit=20'` lists no new conversation. Restore with the same steps and `/model deepseek-flash`.
- **Launch without a folder (`F03.launch-without-workspace`, `F03.draft-persistence`).** Run `control-openhands browser goto /conversations` (no workspace is picked yet; the pill reads Open Workspace), then fill `chat-input` with `Reply with only the word ok.` and click `testid=home-chat-launcher >> testid=submit-button` with `--expect-url '/conversations/[^/]+$'`. `control-openhands conversation wait <id> --timeout 180` reports `workspace` `<run>/private/home/workspace/project/<id without dashes>`. This is the first successful launch: `control-openhands browser click 'testid=sidebar-conversations-link' --expect-url '/conversations$'` shows an empty `chat-input` and `browser storage --session` no longer lists `oh:home-prompt-draft`.
+- **Code / Automate toggle (`F03.launcher-mode-toggle`).** Run `control-openhands browser goto /`, `control-openhands browser fill 'testid=chat-input' ''` and `control-openhands browser snapshot 'testid=home-launcher-mode-toggle'`: `radiogroup "Choose launcher mode"` with `radio "Code" [checked]` and `radio "Automate"`; `control-openhands browser eval "document.querySelector('[data-testid=chat-input]').getAttribute('data-placeholder')"` is `What do you want to build?`. Run `control-openhands browser click 'testid=home-launcher-mode-automate'`: Automate is checked, the placeholder is `What work do you want to automate?`, `control-openhands browser attr 'testid=home-composer-actions' aria-disabled` is `true`, and `control-openhands browser enabled 'testid=open-workspace-button'` and `control-openhands browser enabled 'testid=open-plugin-picker'` are `false` (`browser screenshot --feature F03.launcher-mode-toggle --name automate`). `control-openhands browser reload` brings Code back (`browser attr 'testid=home-launcher-mode-code' aria-checked` is `true`). Light theme: arrange `control-openhands browser eval "localStorage.setItem('openhands-color-theme','light-plus')"` and `browser reload`, then `control-openhands browser eval "getComputedStyle(document.querySelector('[data-testid=home-launcher-mode-code]')).color"` and `browser screenshot 'testid=home-launcher-mode-toggle' --feature F03.launcher-mode-toggle --name light-plus-code`. Expected: the checked label is dark on the light pill. Known failure (reproduced 2026-10-13, #18386): it is `rgb(255, 255, 255)` on the `rgb(229, 229, 229)` pill (about 1.3:1), so **Code** is nearly invisible (Solarized Light: white on `rgb(230, 223, 204)`, also at phone width); a hovered inactive option turns white too (`text-white`, `hover:text-white` in `home-launcher-mode-toggle.tsx`, #17199). Restore with `browser eval "localStorage.removeItem('openhands-color-theme')"` and `browser reload`.
+- **Automate launch (`F03.launch-automate-mode`).** On `/` click `testid=home-launcher-mode-automate`, fill `chat-input` with `Set up a disabled automation named QA_F03 Auto that runs every day at 09:00 UTC with the prompt: Reply with the single word pong. Only fill the automation form; do not run any other tools and do not create the automation.` and run `control-openhands browser click 'testid=home-chat-launcher >> testid=submit-button' --expect-url '/conversations/[^/]+'`. The page shows `automation-setup-panel` beside the chat (`browser testids --filter automation-setup` lists `automation-setup-form`, `automation-setup-create`, `automation-setup-save-draft`). After `control-openhands conversation wait <id> --timeout 240` is `finished`, `control-openhands browser value 'testid=automation-setup-name'` is `QA_F03 Auto` and the filled fields carry `✦ Filled by OpenHands` (`browser screenshot --feature F03.launch-automate-mode --name setup-split`), while `control-openhands api GET /api/automation/v1 --pick total` is still `0`. The sidebar row is tagged `Automation setup: Draft`.
- **Plugins (`F03.plugin-picker`).** Run `control-openhands browser goto /conversations` (a fresh page), `control-openhands browser click 'testid=open-plugin-picker'` and `control-openhands browser wait 'testid=plugin-picker-loading' --state hidden --timeout 60000`; cards `plugin-picker-card-<name>` are listed. `control-openhands browser fill 'testid=plugin-picker-search-input' weather` leaves one card (`control-openhands browser count '[data-testid^="plugin-picker-card-"]'` is `1`); `zzz-none` makes `browser text 'testid=plugin-picker'` read `No plugins available.` With `weather` again, `control-openhands browser click 'testid=plugin-picker-toggle-city-weather' --hover-first 150`: the footer reads `1 selected` and `control-openhands browser attr 'testid=plugin-picker-toggle-city-weather' aria-label` is `Remove`. `control-openhands browser click 'testid=plugin-picker-done'`, then `control-openhands browser text 'testid=plugin-picker-count'` is `1`; reopening keeps the switch checked, and `testid=plugin-picker-close` also closes it. On hover-swapping cards, use `--hover-first 150` for subsequent Add/Remove clicks too and assert both the label and `aria-checked`; the shared index gotcha explains why a plain mouse click can be swallowed (including at phone width).
- **Plugin reaches the agent (`F03.launch-with-plugin`).** With `city-weather` attached, start the no-folder launch above without its `goto` (a page load drops the attached plugin), then `control-openhands api GET '/api/conversations/<id>/events/search?limit=20'`: the system prompt contains `city-weather:now` (a conversation started without the plugin has none). Back on `/conversations` (`control-openhands browser goto /conversations`), `control-openhands browser count 'testid=plugin-picker-count'` is `0`.
- **Creation failure (`F03.create-error-toast`).** Fill `chat-input` with `QA error path`, run `control-openhands service stop agent-server`, then clear the observation window with `control-openhands browser toasts --clear`. Start genuine temporal evidence before submitting: `control-openhands browser record start --feature F03.create-error-toast --name failed-launch`. Run `control-openhands browser click 'testid=home-chat-launcher >> testid=submit-button' --observe 'role=status' --observe-ms 500`, then immediately `control-openhands browser screenshot --feature F03.create-error-toast --name toasts` (this early still may show the loading state). Keep recording and wait for the real error with `control-openhands browser wait-text 'HTTP request failed (502 Bad Gateway)' --timeout 15000`, then `control-openhands browser wait 'role=status >> has-text=Creating conversation…' --state hidden --timeout 15000`. `browser toasts` and `browser toasts --history` show `Creating conversation…` replaced by exactly one error toast, such as `HTTP request failed (502 Bad Gateway): "Bad Gateway: connect ECONNREFUSED 127.0.0.1:<port+1>"` (transport detail is preserved by design, #17985). Count every new error toast in this window; an additional toast is a failure to record, not one to discard. `browser text 'testid=chat-input'` still reads `QA error path` and `browser enabled 'testid=home-chat-launcher >> testid=submit-button'` is `true`. Stop the recording with `control-openhands browser record stop`; inspect its loading→error transition and recovered prompt, paired with the full screenshot. Bring the stack back with `control-openhands restart` and `control-openhands browser reload`; the prompt remains `QA error path`.
@@ -117,13 +124,13 @@ Automations on home (fixtures imported and turned on):
- **Row menu, Run now and Cancel (`F03.home-row-menu`, `F03.cancel-in-flight-run`, `F03.home-automation-links`).** Run `control-openhands browser goto /` (the Manage link left the dashboard), then `control-openhands browser click '[data-testid^="running-automation-row-"] >> has-text=QA_F03 Pong >> [data-testid^="running-automation-menu-"]'` and `control-openhands browser snapshot '[data-testid^="running-automation-menu-panel-"]'`: Run now, View, Edit, Turn off, separator, Pin to dashboard. `control-openhands browser click '[data-testid^="running-automation-run-"]' --observe 'role=status'` observes `Automation dispatched`. Reopen the menu: `Run now [disabled]` and **Cancel run**. `control-openhands browser click '[data-testid^="running-automation-cancel-"]'` and `control-openhands browser toasts` reads `Automation run cancelled`; `control-openhands api GET /api/automation/v1/<automation-id>/runs` (id from `browser testids --filter running-automation-row`) shows `CANCELLED`, and after `browser reload` the row reads `Just now · Cancelled`. Pong now has a run: `control-openhands browser click '[data-testid^="running-automation-activity-"] >> role=link' --expect-url '/automations/[^/?]+\?run='` opens it; return with `control-openhands browser goto /`.
- **Tooltip (`F03.home-run-tooltip`).** `control-openhands browser tooltip '[data-testid^="running-automation-row-"] >> has-text=QA_F03 Pong'` returns `QA_F03 Pong`, `Trigger 0 0 1 1 *`, `Status Cancelled`, `Last run Just now`, `Task Cancelled by user`.
- **Run outcomes (`F03.home-run-outcome-health`).** Arrange as `F23.run-task-outcome` does (API `preset/prompt`, yearly cron `0 0 1 1 *`, enabled) `QA_F03 Blocked`, which finishes with status `blocked`, and `QA_F03 Review`, which finishes with status `unknown`, each prompt ending `Do not run any tools.` On `/`, for each row open `'[data-testid^="running-automation-row-"] >> has-text=QA_F03 Blocked >> [data-testid^="running-automation-menu-"]'` and click `[data-testid^="running-automation-run-"]` (`Automation dispatched`); poll `control-openhands api GET /api/automation/v1/<id>/runs` until the run is `COMPLETED` (about 35 s), then `control-openhands browser reload`. `control-openhands browser text 'testid=running-automations-list'` shows `… · Blocked` and `… · Needs review`; `control-openhands browser eval "[...document.querySelectorAll('[data-testid^=running-automation-row-] a[aria-label]')].filter(a=>a.querySelector('.rounded-full')).map(a=>a.getAttribute('aria-label')+' | '+a.querySelector('.rounded-full').className.match(/bg-[a-z-]+/g)).join('; ')"` lists `QA_F03 Blocked Blocked | bg-warning` and `QA_F03 Review Needs review | bg-warning` (in list order, which can vary). `control-openhands browser tooltip` on each row reads `Status Blocked` / `Task <its summary>` and `Status Needs review` / `Task <its summary>` (before each tooltip read, `browser hover 'testid=chat-input'` and `browser wait 'role=tooltip' --state detached --timeout 3000`, or the previous row's tooltip is returned). Pin both from their row menus (`[data-testid^="running-automation-pin-"]`): each card's strip shows the Blocked (!) (`run-status-icon-warning`) or Needs review (?) (`run-status-icon-needs-review`) icon, then the run's summary and its conversation title. Expected: the summary is visible (`browser eval "[...document.querySelectorAll('[data-testid^=pinned-automation-card-] [data-testid=run-status-badge-icon]')].map(i=>Math.round(i.nextElementSibling.getBoundingClientRect().width))"` is above `0`). Known failure (reproduced 2026-10-09, #18234): when the run has a conversation, the summary is 0 px wide at desktop and phone, so only the conversation title shows (the summary is still in `browser text`). Repeat at `browser viewport phone`. The status-less success case has no live producer (automation 1.19.0 with SDK 1.53.0 always sends a status), as `F23.run-task-outcome` records: `blocked`. Delete both automations afterwards.
-- **View and Edit (`F03.home-row-menu`).** From the Beta row menu, `control-openhands browser click '[data-testid^="running-automation-view-"]' --expect-url '/automations/[^/?]+$'` opens the detail page. Back on `/` (`control-openhands browser goto /`), reopen the menu and click `[data-testid^="running-automation-edit-"]`: the **Edit automation** modal shows `browser value 'label=Name'` `QA_F03 Beta`. `control-openhands browser fill 'label=Prompt' 'Reply with the single word: beta2. Do not run any tools.'`, `control-openhands browser click 'testid=edit-automation-save' --observe 'role=status'` (`Automation updated`); `api GET /api/automation/v1/<automation-id>` shows the new prompt. A timeout above 1800 is refused client-side with `Timeout cannot exceed 1800 seconds`.
+- **View and Edit (`F03.home-row-menu`).** From the Beta row menu, `control-openhands browser click '[data-testid^="running-automation-view-"]' --expect-url '/automations/[^/?]+$'` opens the detail page. Back on `/` (`control-openhands browser goto /`), reopen the menu and click `[data-testid^="running-automation-edit-"]`, then `control-openhands browser wait-url 'automations/setup\?automationId='`: the setup page opens prefilled (no modal; `browser count 'text=Edit automation'` is `0`), `browser value 'testid=automation-setup-name'` is `QA_F03 Beta` and the prompt is the stored one (`browser screenshot --feature F03.home-row-menu --name edit-opens-setup`). `control-openhands browser fill 'testid=automation-setup-prompt' 'Reply with the single word: beta2. Do not run any tools.'` and `control-openhands browser click 'testid=automation-setup-save' --observe 'role=status'` (`Automation updated`); `api GET /api/automation/v1/<automation-id>` shows the new prompt. The page's own controls (Test, Close, the timeout limit) are F22's.
- **Turn off (`F03.turn-off-confirmation`).** From the Beta row menu click `[data-testid^="running-automation-turn-off-"]`; `control-openhands browser snapshot 'role=dialog'` reads `Turn off "QA_F03 Beta"? It will stop running on its schedule until you turn it back on.` with Cancel and Turn off. `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps it enabled; repeat and `control-openhands browser click 'role=dialog >> role=button[name="Turn off"]'`, `browser reload`: `control-openhands browser count '[data-testid^="running-automation-row-"] >> has-text=QA_F03 Beta'` is `0` and the API shows `enabled: false`. Turn it back on from `/automations` (Preconditions) for the pin checks.
- **Pin (`F03.pinned-automations-grid`).** Run `control-openhands browser goto /` (turning Beta back on left `/automations`); from Pong's row menu click `[data-testid^="running-automation-pin-"]`; `control-openhands browser text 'testid=pinned-automations-dashboard'` shows `Pinned automations`, `QA_F03 Pong`, the prompt, `cron` and the last status; `browser storage --values` holds the id under `oh:home-pinned-automations:<backend>:-`. Pin Beta too; `control-openhands browser eval "[...document.querySelectorAll('[data-testid^=pinned-automation-card-]')].map(e=>e.innerText.split('\n')[0]).join(',')"` is `QA_F03 Pong,QA_F03 Beta`. `control-openhands browser click '[data-testid^="pinned-automation-card-"] >> role=link[name="QA_F03 Pong"]' --expect-url '/automations/[^/?]+$'` opens the detail page.
- **Pinned menu (`F03.pinned-card-menu`).** Run `control-openhands browser goto /` (the Pin bullet ends on Pong's detail page), then `control-openhands browser click '[data-testid^="pinned-automation-card-"] >> has-text=QA_F03 Beta >> [data-testid^="pinned-automation-menu-"]'` lists Run now, View, Edit, Turn off and Unpin from dashboard. `[data-testid^="pinned-automation-run-"]` toasts `Automation dispatched`; reopen and `[data-testid^="pinned-automation-cancel-"]` toasts `Automation run cancelled` (the run is `CANCELLED`). Reopen and click `[data-testid^="unpin-automation-"]`; after `browser reload` only `QA_F03 Pong` is pinned and Beta stays in the list.
- **Pinned links (`F03.pinned-card-links`).** With Pong pinned and run once, `control-openhands browser click '[data-testid^="pinned-automation-card-"] >> has-text=QA_F03 Pong >> [data-testid^="pinned-automation-activity-"] >> role=link' --expect-url '/automations/[^/?]+\?run='` opens the run. Back on `/` (`control-openhands browser goto /`), `control-openhands browser focus '[data-testid^="pinned-automation-card-"] >> role=link[name="QA_F03 Beta"]'`, `control-openhands browser press Enter`, `control-openhands browser wait-url '/automations/[^/?]+$'` opens Beta's detail page (pin Beta again first if it was unpinned).
- **Reorder (`F03.pinned-reorder-drag`).** Run `control-openhands browser goto /` (Pinned links ends on Beta's detail page). With Pong and Beta pinned (order `QA_F03 Pong,QA_F03 Beta`, side by side at desktop), read the Beta handle and Pong card boxes with `control-openhands browser bbox '[data-testid^="pinned-automation-card-"] >> has-text=QA_F03 Beta >> [data-testid^="pinned-automation-drag-"]'` and `control-openhands browser bbox '[data-testid^="pinned-automation-card-"] >> has-text=QA_F03 Pong'`, then drag the handle onto the left fifth of Pong's card: `control-openhands browser drag '[data-testid^="pinned-automation-card-"] >> has-text=QA_F03 Beta >> [data-testid^="pinned-automation-drag-"]' --by -522,0 --steps 20` (at 1440×1000 the handle centre is x≈1065 and Pong's card spans x 486–864). The order eval from the Pin bullet reads `QA_F03 Beta,QA_F03 Pong`, `oh:home-pinned-automations:<backend>:-` lists Beta's id first, and the order survives `browser reload`. Drag Pong's handle the same way to restore. The target form `browser drag <handle> <card> [--position before]` does not reorder (the drop lands before the drag-over position is committed).
-- **Backend down (`F03.automations-backend-down`).** Stop only this run's automation service with `control-openhands service stop automation`, then `control-openhands browser reload`. Once loading settles, `browser count` on `testid=running-automations-list` and `testid=pinned-automations-dashboard` is `0`, while `testid=recommended-automations-rail` is `1`: its cards come from the static catalog even when `/api/automation/health` and `/v1` return 502. The composer remains enabled. Click the Custom automation recommendation: it navigates to `/automations/new/custom-automation`, shows a `Request failed with status code 502` toast, and opens the **Before you start** dialog. Capture both Home and the pre-setup dialog, then `control-openhands restart` and `browser reload`; doctor should show the owned automation service healthy again.
+- **Backend down (`F03.automations-backend-down`).** Stop only this run's automation service with `control-openhands service stop automation`, then `control-openhands browser reload`. Once loading settles, `browser count` on `testid=running-automations-list` and `testid=pinned-automations-dashboard` is `0`, while `testid=recommended-automations-rail` is `1`: its cards come from the static catalog even when `/api/automation/health` and `/v1` return 502. The composer remains enabled. `control-openhands browser toasts --history` is `[]`. Click the Custom automation recommendation: it navigates to `/automations/new/custom-automation` and opens the **Before you start** dialog; the toast history is still `[]` (before #17838 a `Request failed with status code 502` toast appeared here). Capture both Home and the pre-setup dialog, then `control-openhands restart` and `browser reload`; doctor should show the owned automation service healthy again.
Phone and cleanup:
@@ -147,5 +154,6 @@ Phone and cleanup:
- Deleting the last automation leaves its id in the pinned localStorage key (pruning skips an empty list); the grid still hides it.
- Pinned cards reorder only by mouse drag; there is no keyboard or menu alternative. Drive it with `browser drag <handle> --by DX,DY --steps 20`; `browser drag <handle> <target>` reports ok but leaves the order unchanged.
- `VITE_HOME_AUTOMATIONS_DEMO=true` (build-time) swaps the home automation sections for demo data; never verify against such a build.
+- The Code / Automate choice is component state, not stored: every page load and every return to home starts in Code. A toggle check after a navigation must click Automate again.
- When the Agent Server is stopped, background refetches can add a generic `An error occurred` toast (#18051). For `F03.create-error-toast`, retain the complete video and toast history and report any extra toast with its timing; do not waive it from the count.
- The workspace combobox uses one message for an empty list and for a search with no match: both read `No workspaces yet` (`workspace-dropdown-empty`), with **+ Add Workspace** still below it (#18037).
diff --git a/.agents/skills/verify-openhands/references/feature-map/F04-conversation-list.md b/.agents/skills/verify-openhands/references/feature-map/F04-conversation-list.md
index 70153fbc56..f1eb702289 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F04-conversation-list.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F04-conversation-list.md
@@ -34,6 +34,7 @@ Source: `src/components/features/sidebar/sidebar-conversation-list.tsx`, `src/co
- `F04.presets`: a preset is checked and survives a reload; Active and Compact hide paused conversations; any manual change reads `More options · Custom`.
- `F04.hide-older`: Hide old conversations offers four cutoffs, persists the choice and hides conversations older than it.
- `F04.automation-filter`: More options → Automations shows all, hides or keeps only automation runs, with its own empty message.
+- `F04.automation-setup-tag`: a conversation started from the automation setup page shows an `Automation setup: Draft` chip (lightning icon) first in its tag row; Filter by tags offers a facet and filter chip of the same name, and the hover preview lists `Automation setup` `draft`.
- `F04.tag-filter`: choosing a tag facet narrows the list to rows with that tag (pins exempt) and survives a reload.
- `F04.filter-chips`: active filters show as chips above the list; a chip click removes one, Clear all removes every chip.
- `F04.metadata-toggles`: Repo and branch, Agent / model and Show tags add or remove row chips.
@@ -92,7 +93,7 @@ Preconditions:
- **Header divider (`F04.list-header`).** With more rows than fit (By date mode with 20 loaded rows, as Organize leaves it; By workspace mode previews too few rows to scroll), `control-openhands browser eval "document.querySelector('[data-testid=older-conversations-summary]').parentElement.classList.contains('border-border')"` is `false`; after `control-openhands browser scroll 'testid=conversation-panel-list-scroll' --by 300` it is `true`, and `false` again after `--by -300`.
- **Rename (`F04.card-rename`).** Pick the oldest untitled conversation (`b8d99...` from the picker step; the sort check below needs an old one). It is beyond the first 20 rows after a reload, so first run `control-openhands browser click 'testid=load-more-conversations'` and `control-openhands browser wait 'testid=load-more-conversations' --state detached --timeout 15000`. Then run `control-openhands browser scroll 'testid=conversation-card >> has-text=Conversation <id5>'` (the first five characters of its id), `control-openhands browser hover 'testid=conversation-card >> has-text=Conversation <id5>'`, `control-openhands browser click 'testid=conversation-card >> has-text=Conversation <id5> >> testid=ellipsis-button'`, `control-openhands browser click 'testid=context-menu >> testid=edit-button'`, `control-openhands browser fill 'input[data-testid=conversation-card-title]' 'QA_F04 renamed'`, `control-openhands browser press Enter`, then `control-openhands browser toasts` (`Conversation title updated successfully`), `control-openhands browser reload` and `control-openhands browser count 'testid=conversation-card-title >> has-text=QA_F04 renamed'` (`1`).
- **Sort (`F04.sort`).** Under Sort by Updated (default) the just-renamed old conversation is first. Sorting applies to the loaded rows only: after a reload the first page is the 20 most recently updated. In More options run `control-openhands browser click 'testid=sort-created'` and `control-openhands browser click 'testid=advanced-options-close'`; `control-openhands browser eval "[...document.querySelectorAll('[data-testid=conversation-panel-list-scroll] [data-testid=conversation-card-title]')].map(e=>e.textContent)"` now ends with `QA_F04 renamed` (with every page loaded, the older `pong` row comes after it), and the View menu row reads `More options · Custom`. Restore with `testid=layout-preset-recent-activity`.
-- **Stop (`F04.stop`).** On an idle row open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=stop-button'`; `control-openhands browser snapshot 'role=dialog'` reads `Confirm Stop Conversation`, `Are you sure you want to stop this conversation?`. `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps it idle (`control-openhands conversation status <id>`). Repeat and click `'role=dialog >> role=button[name="Confirm Close"]'`; `control-openhands conversation wait <id> --until paused --timeout 30` reaches `paused`, `control-openhands browser wait 'testid=conversation-card >> has-text=Conversation <id5> >> testid=conversation-status-paused'` succeeds, and the reopened ⋮ menu has no Stop item. `control-openhands browser press Escape` closes it (`browser count 'testid=context-menu'` is `0`) and puts focus back on the row's ⋮ (`control-openhands browser eval "document.activeElement.dataset.testid"` is `ellipsis-button`).
+- **Stop (`F04.stop`).** On an idle row open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=stop-button'`; `control-openhands browser snapshot 'role=dialog'` reads `Confirm Stop Conversation`, `Are you sure you want to stop this conversation?`, and `control-openhands browser testids 'role=dialog'` lists `cancel-button` (`Cancel`) and `confirm-button` (`Confirm Close`). `control-openhands browser click 'role=dialog >> testid=cancel-button'` keeps it idle (`control-openhands conversation status <id>`). Repeat and click `'role=dialog >> testid=confirm-button'`; `control-openhands conversation wait <id> --until paused --timeout 30` reaches `paused`, `control-openhands browser wait 'testid=conversation-card >> has-text=Conversation <id5> >> testid=conversation-status-paused'` succeeds, and the reopened ⋮ menu has no Stop item. `control-openhands browser press Escape` closes it (`browser count 'testid=context-menu'` is `0`) and puts focus back on the row's ⋮ (`control-openhands browser eval "document.activeElement.dataset.testid"` is `ellipsis-button`).
- **Presets (`F04.presets`).** Run `control-openhands browser click 'testid=conversation-layouts-toggle'`, `control-openhands browser click 'testid=layout-preset-recent-activity'`, `control-openhands browser reload`, reopen the menu, then `control-openhands browser attr 'testid=layout-preset-recent-activity' aria-checked` (`true`) and `control-openhands browser text 'testid=advanced-options-row'` (`More options`). With the paused conversation from Stop (above), `testid=layout-preset-focused` (Active) and `testid=layout-preset-minimal` (Compact) make `control-openhands browser count 'testid=conversation-card >> has-text=Conversation <id5>'` `0`; Recent shows it again.
- **Threads scope (`F04.thread-scope`).** With the paused conversation from Stop and the Recent preset, open More options and run `control-openhands browser click 'testid=scope-relevant'` (`browser attr 'testid=scope-relevant' aria-checked` is `true`) and `control-openhands browser click 'testid=advanced-options-close'`: `control-openhands browser count 'testid=conversation-card >> has-text=Conversation <id5>'` is `0`, also after `browser reload`, and the View menu now checks no preset and reads `More options · Custom` (Recent shows old conversations; the Active preset also hides them). `testid=scope-all` brings the row back (`1`) and Recent is checked again.
- **Hide older (`F04.hide-older`).** In More options, `control-openhands browser attr 'testid=toggle-older-conversations' aria-checked` is `false` (Recent shows conversations of every age) and `control-openhands browser text 'testid=older-conversation-cutoff'` is `Over 1 week`. Run `control-openhands browser click 'testid=older-conversation-cutoff'` (radios Over 1 hour, Over 1 day, Over 1 week, Over 30 days), `control-openhands browser click 'role=menuitemradio[name="Over 1 hour"]'`, then `control-openhands browser click 'testid=toggle-older-conversations >> text=Hide old conversations'` (`aria-checked` turns `true`; a click on the row's center lands on the cutoff dropdown instead), `control-openhands browser click 'testid=advanced-options-close'`, `control-openhands browser reload`, then `control-openhands browser storage --values`: `conversation-panel-preferences` holds `"showOlderConversations":false` and `"olderConversationCutoff":"1h"`, and the View menu reads `More options · Custom`. Restore with `testid=layout-preset-recent-activity` (it turns hiding off but keeps the cutoff) and the cutoff `Over 1 week`. Hiding itself needs a conversation last updated before the cutoff (not reachable on a fresh run).
@@ -101,18 +102,19 @@ Preconditions:
- **Hover preview (`F04.hover-preview`).** Run `control-openhands browser mouse-click 900 900`, then `control-openhands browser tooltip 'testid=conversation-card >> has-text=Conversation <id5>'`. The text is the title, `Directory` with the workspace path, `Model` `deepseek/deepseek-flash` and `Created` with a date. After `testid=toggle-hover-metadata` is off (`aria-checked` `false`), `control-openhands browser tooltip ... --timeout 5000` finds no tooltip.
- **Pin (`F04.pin`).** Run `control-openhands browser hover 'testid=conversation-card >> has-text=QA_F04 renamed'`, `control-openhands browser click 'testid=conversation-card >> has-text=QA_F04 renamed >> [data-testid^=conversation-pin-toggle-]'`, then `control-openhands browser text 'testid=conversation-panel-pinned-section'` (`Pinned` and the row), `control-openhands browser count 'testid=conversation-card >> has-text=QA_F04 renamed'` (`1`: not duplicated) and, after `browser reload`, `control-openhands browser attr 'testid=conversation-panel-pinned-section >> [data-testid^=conversation-pin-toggle-]' aria-pressed` (`true`). Unpin with `browser hover` and `browser click` on `testid=conversation-panel-pinned-section >> testid=conversation-card` and its `[data-testid^=conversation-pin-toggle-]`; after a reload `browser count 'testid=conversation-panel-pinned-section'` is `0`.
- **Pinned preview (`F04.pinned-preview-more`).** Pin six rows (`browser scroll`, `browser hover`, then click each row's `[data-testid^=conversation-pin-toggle-]`). `control-openhands browser count 'testid=conversation-panel-pinned-section >> testid=conversation-card'` is `5` and `control-openhands browser text 'testid=conversation-panel-pinned-view-more'` is `More`; `control-openhands browser click 'testid=conversation-panel-pinned-view-more'` makes the count `6` and the label `Less`; click again: `5`. Unpin all six with `browser hover` and a pin click on `'testid=conversation-panel-pinned-section >> testid=conversation-card >> nth=0'`, repeated.
-- **Edit tags (`F04.edit-tags`).** Open ⋮ on a row (hover, `testid=ellipsis-button`) and run `control-openhands browser click 'testid=context-menu >> testid=edit-tags-button'`. Then: `control-openhands browser fill 'testid=new-tag-key-input' 'Bad Key'` and `control-openhands browser press Enter --selector 'testid=new-tag-key-input'` → `control-openhands browser text 'testid=edit-tags-error'` is `Tag names may only contain lowercase letters and numbers`; key `title` with `testid=add-tag-button` → `This tag name is reserved`; key `qaenv`, `browser fill 'testid=new-tag-value-input' one`, Enter → `browser count 'testid=edit-tag-row-qaenv'` is `1`; key `qaenv` again → `This tag name is already in use`; key `qalong` with a 257-character value → `Tag values must be 256 characters or fewer`; key `qabare` with an empty value left in the inputs, then `control-openhands browser click 'testid=edit-conversation-tags-modal >> testid=confirm-button'`. `control-openhands browser toasts` shows `Tags updated`; after `browser reload` the row shows chips `Qabare` and `Qaenv: one` (`conversation-card-tag-chip`), and `control-openhands api GET '/api/conversations/search?limit=3'` has tags `qaenv: one`, `qabare: ""`.
+- **Edit tags (`F04.edit-tags`).** Open ⋮ on a row (hover, `testid=ellipsis-button`) and run `control-openhands browser click 'testid=context-menu >> testid=edit-tags-button'`. Then: `control-openhands browser fill 'testid=new-tag-key-input' 'Bad Key'` and `control-openhands browser press Enter --selector 'testid=new-tag-key-input'` → `control-openhands browser text 'testid=edit-tags-error'` is `Tag names may only contain lowercase letters and numbers` (it uses the `feedback-error` colour, #18330: `control-openhands browser eval "getComputedStyle(document.querySelector('[data-testid=edit-tags-error]')).color"` is `rgb(231, 106, 94)` on OpenHands-Neutral and `rgb(192, 40, 45)` on Light+, readable on the light dialog; switch themes as in `F16.color-theme` and restore OpenHands-Neutral); key `title` with `testid=add-tag-button` → `This tag name is reserved`; key `qaenv`, `browser fill 'testid=new-tag-value-input' one`, Enter → `browser count 'testid=edit-tag-row-qaenv'` is `1`; key `qaenv` again → `This tag name is already in use`; key `qalong` with a 257-character value → `Tag values must be 256 characters or fewer`; key `qabare` with an empty value left in the inputs, then `control-openhands browser click 'testid=edit-conversation-tags-modal >> testid=confirm-button'`. `control-openhands browser toasts` shows `Tags updated`; after `browser reload` the row shows chips `Qabare` and `Qaenv: one` (`conversation-card-tag-chip`), and `control-openhands api GET '/api/conversations/search?limit=3'` has tags `qaenv: one`, `qabare: ""`.
- **Tag overflow (`F04.tag-overflow`).** On the tagged row add three more tags in Edit tags (keys `qaregion`, `qastage`, `qaowner`, values `value-for-<key>`, Enter after each) and save. After `browser reload` the row shows `Qabare` and `Qaenv: one` plus `control-openhands browser text 'testid=conversation-card >> has-text=Conversation <id5> >> testid=conversation-card-tag-overflow'` `+3` (aria-label `Show 3 more tags`). Clicking it keeps the URL, sets `aria-expanded` `true`, and `control-openhands browser text 'testid=conversation-card-tag-overflow-popover'` lists `Qaowner value-for-qaowner`, `Qaregion …`, `Qastage …` (3 `conversation-card-tag-overflow-row`); `control-openhands browser press Escape` closes it (count `0`).
- **Remove tags (`F04.edit-tags-remove`).** Reopen Edit tags on that row and run `control-openhands browser click 'testid=remove-tag-qaregion'` (likewise `remove-tag-qastage`, `remove-tag-qaowner`); `control-openhands browser count 'testid=edit-tags-rows >> [data-testid^=edit-tag-row-]'` is `2`. Save with `testid=edit-conversation-tags-modal >> testid=confirm-button` (`Tags updated`); after `browser reload` the `+3` chip is gone and `control-openhands api GET '/api/conversations/search?limit=1' --pick items.0.tags` is `clientsource`, `qabare`, `qaenv` only.
- **Tag filter (`F04.tag-filter`).** After Edit tags (above) gave one row `qaenv=one`, run `control-openhands browser click 'testid=conversation-layouts-toggle'`, `control-openhands browser click 'testid=tag-filters-section'`, `control-openhands browser click 'testid=tag-facet-row-qaenv=one'` (`aria-checked` `true`; the menu stays open), `control-openhands browser press Escape`, then `control-openhands browser count 'testid=conversation-panel-list-scroll >> testid=conversation-card'`: only the tagged row plus pinned rows. The count is the same after `browser reload`.
- **Filter chips (`F04.filter-chips`).** With the facet active, `control-openhands browser text 'testid=conversation-active-tag-filters'` is `qaenv=one` and `Clear all`. `control-openhands browser click 'testid=active-tag-filter-qaenv=one'` removes it (`browser count 'testid=conversation-active-tag-filters'` is `0`). Select `tag-facet-row-qaenv=one` and `tag-facet-row-qabare=` again, then `control-openhands browser click 'testid=clear-tag-filters'`: the strip disappears and the full list returns.
+- **Automation setup tag (`F04.automation-setup-tag`).** Arrange one setup conversation through the setup page (F22): `control-openhands browser goto /automations`, `control-openhands browser click 'testid=automations-add-automation'`, `control-openhands browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'`, then `control-openhands conversation start --stay --prompt 'Reply with only the word ok. Do not run any tools.' --wait --timeout 180` (one tiny model call; note `<setup-id>`). `control-openhands api GET /api/conversations/<setup-id> --pick tags` has `automationsetup: draft`. In the sidebar, `control-openhands browser text 'testid=conversation-card >> has-text=Reply >> testid=conversation-card-tag-chip'` is `Automation setup: Draft` (the first chip; the internal draft-id keys stay hidden). Run `control-openhands browser click 'testid=conversation-layouts-toggle'`, `control-openhands browser click 'testid=tag-filters-section'`: the facet `testid=tag-facet-row-automationsetup=draft` reads `Automation setup: Draft`; click it, `control-openhands browser press Escape`, and `control-openhands browser text 'testid=conversation-active-tag-filters'` is `Automation setup: Draft` and `Clear all`, with only setup conversations (and pinned rows) left; `control-openhands browser click 'testid=active-tag-filter-automationsetup=draft'` removes it. After `control-openhands browser mouse-click 900 900`, `control-openhands browser tooltip 'testid=conversation-card >> has-text=Reply'` lists `Automation setup` and the raw value `draft` (`browser screenshot --feature F04.automation-setup-tag --name facet`). End with `control-openhands browser goto /` and clear the Home draft the setup send left behind (`control-openhands browser fill 'testid=chat-input' ''`, see F05 Home draft): opening another conversation from the sidebar while the setup conversation is open re-tags it (see Gotchas).
- **Download (`F04.download`).** Open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=download-trajectory-button'`, then `control-openhands browser downloads`. A file `…-conversation_<id>.zip` lands in `<run>/private/downloads`; `control-openhands browser downloads --last 1 --inspect` lists `<id-hex>/base_state.json` and `meta.json` for any row, plus event folders such as `bash_events/` for a conversation that ran (the `pong` row; it is the oldest, so Load more first).
- **Download failure (`F04.download-error`).** With ⋮ already open on a row, run `control-openhands browser errors --clear` and `control-openhands service stop agent-server`, click `testid=context-menu >> testid=download-trajectory-button`, then `control-openhands browser toasts --history` and `control-openhands browser count 'testid=context-menu'`. There is exactly one toast, `Couldn't download the conversation data: An error occurred`, and the menu is closed (`0`). The download request returned a plain-text ingress 502; `getApiErrorMessage` intentionally omits raw transport text and falls back to this generic message when the response body has no usable error field. `control-openhands browser errors --app-only` has `pageErrors` `0`; its 502 request and console error are the outage itself. Run `control-openhands restart` and `control-openhands doctor` afterwards.
- **Archive (`F04.archive`).** Open a conversation from its row, open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=archive-button'`; `control-openhands browser snapshot 'role=dialog'` reads `Archive conversation` and `Archive "<title>"? The conversation stays available with its full history and can be restored from Show archived.` `control-openhands browser click 'role=dialog >> testid=cancel-button'` keeps the row. Repeat and `control-openhands browser click 'role=dialog >> testid=confirm-button' --expect-url '/conversations(\?|$)'`; the row count is `0`, also after `browser reload`. Archiving a pinned row removes the Pinned section.
- **Show archived and Unarchive (`F04.show-archived-unarchive`).** In More options click `testid=toggle-show-archived` (`aria-checked` `true`) and `testid=advanced-options-close`; `control-openhands browser count 'testid=conversation-card >> has-text=Conversation <id5> >> testid=conversation-card-archived-chip'` is `1` and the ⋮ menu offers `Unarchive Conversation`. `control-openhands browser click 'testid=context-menu >> testid=unarchive-button'` opens no dialog (`browser count 'role=dialog'` `0`) and the chip count drops to `0`. Turn Show archived off again.
-- **Delete (`F04.delete`).** Open a conversation from its row, open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=delete-button'`; the dialog reads `Confirm Delete` and `Are you sure you want to delete the "<title>" conversation? This action cannot be undone.` `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps the row. Repeat and `control-openhands browser click 'role=dialog >> role=button[name="Confirm Delete"]' --expect-url '/conversations(\?|$)'`; after `browser reload` the row count is `0` and `control-openhands api GET /api/conversations/<id>` is `404`.
+- **Delete (`F04.delete`).** Open a conversation from its row, open ⋮ and run `control-openhands browser click 'testid=context-menu >> testid=delete-button'`; the dialog reads `Confirm Delete` and `Are you sure you want to delete the "<title>" conversation? This action cannot be undone.` with `cancel-button` and `confirm-button`. `control-openhands browser click 'role=dialog >> testid=cancel-button'` keeps the row. Repeat and `control-openhands browser click 'role=dialog >> testid=confirm-button' --expect-url '/conversations(\?|$)'`; after `browser reload` the row count is `0` and `control-openhands api GET /api/conversations/<id>` is `404`.
- **Phone (`F04.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'`, then `control-openhands browser bbox 'testid=sidebar-mobile-drawer >> testid=conversation-panel'` (`insideViewport` `true`, `pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F04.phone --name drawer`. Hover a row in the drawer and click its `testid=ellipsis-button`; `control-openhands browser bbox 'testid=context-menu'` is inside the viewport. `control-openhands browser mouse-click 380 20` closes the menu (`browser count 'testid=context-menu'` `0`) and the drawer (`control-openhands browser wait 'testid=sidebar-mobile-drawer' --state hidden --timeout 5000`; an immediate `visible` still reads `true` during the slide-out). Reopen the drawer and `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=conversation-card >> has-text=QA_F04 renamed' --expect-url '/conversations/'`; `control-openhands browser wait 'testid=sidebar-mobile-drawer' --state hidden --timeout 5000` succeeds. Return with `control-openhands browser viewport desktop`.
-- **Delete all (`F04.delete-all`).** Run `control-openhands browser click 'testid=conversation-layouts-toggle'`, `control-openhands browser click 'testid=delete-all-conversations'` and `control-openhands browser snapshot 'role=dialog'`: `Delete all conversations`, `Are you sure you want to delete N conversations?`. Cancel keeps every row. Confirm with `control-openhands browser click 'role=dialog >> role=button[name="Confirm Delete"]'` and `control-openhands browser wait 'role=dialog' --state detached --timeout 30000`; `control-openhands api GET '/api/conversations/search?limit=100'` has no items, Delete all is disabled again, and in By date mode the empty state returns. Expected for every conversation; today N and the deletion cover only the loaded pages (22 conversations, 20 loaded: 2 remain).
+- **Delete all (`F04.delete-all`).** Run `control-openhands browser click 'testid=conversation-layouts-toggle'`, `control-openhands browser click 'testid=delete-all-conversations'` and `control-openhands browser snapshot 'role=dialog'`: `Delete all conversations`, `Are you sure you want to delete N conversations?`. Cancel (`role=dialog >> testid=cancel-button`) keeps every row. Confirm with `control-openhands browser click 'role=dialog >> testid=confirm-button'` and `control-openhands browser wait 'role=dialog' --state detached --timeout 30000`; `control-openhands api GET '/api/conversations/search?limit=100'` has no items, Delete all is disabled again, and in By date mode the empty state returns. Expected for every conversation; today N and the deletion cover only the loaded pages (22 conversations, 20 loaded: 2 remain).
- **Collapsed rail (`F04.collapsed-rail`).** Run `control-openhands browser click 'testid=sidebar-collapse-toggle'`, then `control-openhands browser count 'testid=conversation-panel'` (`0`). Expand with `control-openhands browser click 'aside[data-collapsed]'` (see F02); the count is `1`.
- **Cloud picker and start tasks (`F04.cloud-picker`, `F04.start-task-cards`).** Blocked without an OpenHands Cloud backend and git provider. On Cloud, the same `conversation-panel-new-thread-picker` opens `cloud-provider-tabs`, `cloud-repo-search-input` (`Search repositories`) and `launch-repository` rows; start tasks render `testid=start-task-card` linking to `/conversations/task-<id>`.
- **Cleanup.** View → Delete all twice (the second pass removes the rows the first left behind), until `api GET '/api/conversations/search?limit=100'` is empty; re-apply the Recent preset. Fixture folders and the workspace registry vanish with the run.
@@ -125,7 +127,7 @@ Preconditions:
- Row links carry `?backend=default-local`; anchor URL regexes without `$`.
- Hover and ⋮ need the row on screen: `browser scroll '<row>'` first, and `browser hover` before clicking `ellipsis-button` or the pin.
- Escape closes the ⋮ menu and returns focus to its ⋮ button (#18044); an outside `browser mouse-click` closes it too. If Tab has moved focus to the next row's link, that row's preview tooltip opens and takes the first Escape, so press Escape twice. Inside the phone drawer the first Escape closes the menu and the next one the drawer.
-- The Stop, Delete and Delete all dialogs have no test ids on their buttons (`data-testid` is dropped by `BrandButton`) (#17915); use `role=dialog >> role=button[name="..."]`. The Archive and Edit tags dialogs do have `cancel-button` and `confirm-button`.
+- The Stop, Delete and Delete all dialogs name their buttons `cancel-button` and `confirm-button`, like the Archive and Edit tags dialogs (#17915, fixed by #18151); `role=dialog >> role=button[name="..."]` still works.
- With the drawer open at phone width there are two `conversation-panel` elements; scope with `testid=sidebar-mobile-drawer >> ...`.
- Recent is exactly the fresh default layout (By date, Updated, all threads, old conversations shown), so a new user sees Recent checked. Active and Compact also turn on Hide old conversations: Recent plus a manual Threads → Active only reads `More options · Custom`, not Active. Presets never change the hide-older cutoff.
- In By workspace mode Load more often adds no visible row: later rows join existing folders behind their More button.
@@ -136,4 +138,5 @@ Preconditions:
- `service stop agent-server` needs `control-openhands restart` and a `browser reload` before anything else works.
- The list refreshes on an interval: a row keeps `conversation-status-working` and `Conversation <id5>` for up to about 40 s after the conversation finished. Use `browser wait ... --timeout 60000`, not an immediate `count`.
- Model-written titles vary from run to run; match finished conversations on a word from the prompt (`has-text=pong`), never on the whole title.
+- Expected: opening a conversation from the sidebar never changes its tags. Known failure (reproduced 2026-10-13, #18378): a client-side switch from an automation setup conversation (one tagged `automationsetup: draft`) to any other conversation re-tags that conversation `automationsetup: draft` on the server, so it gains the `Automation setup: Draft` chip and opens as a setup page (F07 `F07.open-by-url`). Remove the tag with Edit tags (`remove-tag-automationsetup`) to restore it. Use `browser goto` between setup and other conversations.
- Known issue #17919: Delete all deletes only the loaded pages, and its dialog states that smaller count (`F04.delete-all`).
diff --git a/.agents/skills/verify-openhands/references/feature-map/F05-composer.md b/.agents/skills/verify-openhands/references/feature-map/F05-composer.md
index 414ff5116f..9619330946 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F05-composer.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F05-composer.md
@@ -58,8 +58,8 @@ Preconditions:
- Desktop viewport unless a bullet says otherwise. Microphone dictation is blocked in the sandbox browser (no microphone); `+` > Git tools needs a conversation on a git workspace (not driven here).
- **Type and send (`F05.send-message`).** On `/conversations/<id>` run `control-openhands browser attr 'testid=submit-button' aria-label` (`Send message`), `control-openhands browser enabled 'testid=submit-button'` (`false`), `control-openhands browser type 'testid=chat-input' 'Reply with only:'`, `control-openhands browser enabled 'testid=submit-button'` (`true`), `control-openhands browser press Shift+Enter`, `control-openhands browser type 'testid=chat-input' 'ok2'` and `control-openhands browser eval "document.querySelector('[data-testid=chat-input]').innerText"`: `Reply with only:\nok2`. Run `control-openhands browser press Enter --selector 'testid=chat-input'`; the field is empty and `control-openhands browser count 'testid=stop-button'` is `1` while the agent runs. Then `control-openhands conversation wait <id> --fresh --timeout 180` (a fast model can finish before a separate `--until running` wait starts, which then times out on `finished`), `control-openhands browser reload` and `control-openhands browser count 'testid=user-message >> has-text=ok2'`: `1`; `control-openhands browser text 'testid=agent-message >> nth=-1'` is `ok2`.
-- **Draft survives navigation (`F05.draft-persistence`).** Run `control-openhands browser type 'testid=chat-input' 'QA draft text'` and wait out the 500 ms save: `control-openhands browser eval "new Promise(r=>setTimeout(()=>r(JSON.parse(localStorage.getItem('conversation-state-<id>')).draftMessage),1500))"` returns `QA draft text`. Then `control-openhands browser click 'testid=backend-selector-settings-link' --expect-url settings`, `control-openhands browser back` and the `innerText` eval above: `QA draft text`. `control-openhands browser reload` restores it again. Clear with `control-openhands browser fill 'testid=chat-input' ''` and wait a second before navigating.
-- **Home draft (`F05.draft-persistence`).** Run `control-openhands browser goto /`, `control-openhands browser type 'testid=chat-input' 'QA home draft'`, `control-openhands browser goto /settings/secrets`, `control-openhands browser goto /`, then the `innerText` eval: `QA home draft`; `control-openhands browser storage --session` lists `oh:home-prompt-draft`. Clear with `control-openhands browser fill 'testid=chat-input' ''`.
+- **Draft survives navigation (`F05.draft-persistence`).** Run `control-openhands browser type 'testid=chat-input' 'QA draft text'` and wait out the 500 ms save: `control-openhands browser eval "new Promise(r=>setTimeout(()=>r(JSON.parse(localStorage.getItem('conversation-state-<id>')).draftMessage),1500))"` returns `QA draft text`. Then `control-openhands browser click 'testid=backend-selector-settings-link' --expect-url settings`, `control-openhands browser back` and the `innerText` eval above: `QA draft text`. `control-openhands browser reload` restores it again. A draft typed just before leaving is flushed, not lost (#17926, fixed by #17968): `control-openhands browser type 'testid=chat-input' ' plus fast'` and at once `control-openhands browser click 'testid=backend-selector-settings-link' --expect-url settings`, `control-openhands browser back`: the eval reads `QA draft text plus fast`. The same holds for an immediate sidebar switch to another conversation and back (that other conversation's composer stays empty). Clear with `control-openhands browser fill 'testid=chat-input' ''` and wait a second before navigating.
+- **Home draft (`F05.draft-persistence`).** Run `control-openhands browser goto /`, `control-openhands browser type 'testid=chat-input' 'QA home draft'`, `control-openhands browser goto /settings/secrets`, `control-openhands browser goto /`, then the `innerText` eval: `QA home draft`; `control-openhands browser storage --session` lists `oh:home-prompt-draft`. Clear with `control-openhands browser fill 'testid=chat-input' ''`. Expected: a prompt sent from the automation setup page's docked composer (`/automations/setup`, F22) does not stay behind as the Home draft. Known failure (reproduced 2026-10-13, #18379): after `browser goto /automations`, `browser click 'testid=automations-add-automation'`, `browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'`, `browser type 'testid=chat-input' 'Reply with only the word ok2. Do not run any tools.'` and `browser click 'testid=submit-button' --expect-url '/conversations/'`, `browser storage --session --values` still holds that text under `oh:home-prompt-draft`, and New Chat shows it in the Home composer (a Home send clears it). Clear it before the next bullet.
- **Auto-resize (`F05.composer-resize`).** On `/conversations/<id>` (`control-openhands browser goto /conversations/<id>`; Home draft left `/`) type `line`, then eight times `control-openhands browser press Shift+Enter` and `control-openhands browser type 'testid=chat-input' 'lineN'` (`line2`…`line9`): `control-openhands browser bbox 'testid=chat-input'` grows by 20 px per line, from `height` `20` to `180`; after `control-openhands browser fill 'testid=chat-input' ''` it is `20`. `control-openhands browser count '#resize-grip'` is `1`. `control-openhands browser drag '#resize-grip' --by 0,-200` makes the empty field `220` high and `control-openhands browser drag '#resize-grip' --by 0,150` brings it to `70`; after `control-openhands browser reload` it is `20` again (the dragged height is not kept).
- **Tools menu and macros (`F05.plus-menu`).** On `/conversations/<id>` run `control-openhands browser click 'testid=chat-plus-button'` and `control-openhands browser testids 'testid=tools-context-menu'`: `macros-button`, `show-skills-button`, `show-hooks-button`, `show-agent-tools-button`, `add-files-and-images-button` (no `git-tools-button` outside a repository). `control-openhands browser hover 'testid=macros-button'` shows `macros-submenu` with `increase-test-coverage-button`, `fix-readme-button`, `auto-merge-prs-button`, `clean-dependencies-button`. `control-openhands browser click 'testid=fix-readme-button'` closes the menu and fills the composer with `Please look at the README and make the following improvements…`; the `testid=user-message` count is unchanged. Clear with `control-openhands browser fill 'testid=chat-input' ''`. Open the menu again and `control-openhands browser press Escape`: `browser count 'testid=tools-context-menu'` is `0` and `control-openhands browser eval "document.activeElement.dataset.testid"` is `chat-plus-button`.
- **Show dialogs (`F05.plus-menu`).** For each of `show-skills-button`, `show-hooks-button`, `show-agent-tools-button`: `control-openhands browser click 'testid=chat-plus-button'`, `control-openhands browser click 'testid=show-hooks-button'` (etc.), `control-openhands browser text 'role=dialog'` (starts `Available Skills`, `Available Hooks`, `Agent Tools & Metadata`), then `control-openhands browser press Escape` and `control-openhands browser count 'role=dialog'`: `0`.
@@ -90,7 +90,7 @@ Preconditions:
- Always export your own `OH_VERIFY_RUN`. `launch --new` repoints the shared `current` symlink, and another agent relying on `current` drove and then stopped this family's stack mid-run. If the URL jumps to a page you never opened or `fetch failed` appears, run `control-openhands status` before blaming the product.
- `conversation wait <id>` right after sending returns at once with the previous `finished` status. Use `conversation wait <id> --fresh`; `--until running` then a terminal wait only works for turns longer than the poll interval (a `Reply with only` turn on deepseek-flash can finish first, and `--until running` then times out).
- The slash menu stays open while you type a command; press Escape before Enter or Enter selects the highlighted option instead of sending.
-- Conversation drafts are saved 500 ms after the last keystroke and not flushed on unmount (the home draft is): navigating sooner restores the older draft (fail row) (#17926). Wait a second before navigating when testing restoration.
+- Conversation drafts are saved 500 ms after the last keystroke and flushed on navigation and unmount (#17926, fixed by #17968), so text typed just before leaving comes back.
- Escape closes the `+` tools menu (`browser count 'testid=tools-context-menu'` is `0`) and returns focus to `chat-plus-button`, whether focus was on the trigger or on a menu item. A menu left open covers attachments in screenshots. Escape also closes the narrow-width "More input actions" overflow menu (`browser count 'testid=chat-input-overflow-menu'` is `0`, the trigger's `aria-expanded` is `false`) and returns focus to the trigger, whether focus was on the trigger, on `overflow-model-button` or on a profile row of the open Model submenu (#18174).
- After a client-side switch between conversations (a sidebar row, or a user-message branch in `F06.branch-from-here`) Send keeps the previous conversation's state (Known failure, [#18202](https://github.com/OpenHands/OpenHands/issues/18202); [draft fix PR #18203](https://github.com/OpenHands/OpenHands/pull/18203)). Switching from an empty composer to one with a saved draft restores the text next to a disabled Send; this is a race (Send came up enabled in 1 of 7 tries), so one enabled reading does not show the bug is gone. Switching from a composer with text to an empty one leaves Send enabled, and clicking it does nothing. Typing or `browser reload` fixes it, and Enter in the field sends the restored text anyway. Read `browser enabled 'testid=submit-button'` after a reload, or after typing.
- Expected: a prompt that a suggestion chip (`testid=chat-suggestions`) or a `+` > **Macros** item writes into the composer enables Send at once. Known failure (reproduced 2026-10-09, [#18202](https://github.com/OpenHands/OpenHands/issues/18202)): on a new No workspace conversation, `browser click 'testid=chat-suggestions >> text=Fix README'` (or `browser click 'testid=chat-plus-button'`, `browser hover 'testid=macros-button'`, `browser click 'testid=fix-readme-button'`) fills the field, but `browser enabled 'testid=submit-button'` is `false` (5 of 5 tries at desktop; a race at phone) until a character is typed. Both paths call `setMessageToSend`, which writes the text without an input event.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F06-agent-activity.md b/.agents/skills/verify-openhands/references/feature-map/F06-agent-activity.md
index a85bbf4a49..d382252ae4 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F06-agent-activity.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F06-agent-activity.md
@@ -39,8 +39,8 @@ Source: `src/components/features/chat/chat-interface.tsx`, `src/components/conve
- `F06.reconnect`: when the Agent Server goes away the composer shows Disconnected; after it returns the page reconnects without a reload.
- `F06.error-banner`: losing the server shows "Unable to connect to server" with Retry, Copy and Close; Retry reconnects once the server is back.
- `F06.error-events`: a conversation error (ConversationErrorEvent) surfaces as a warning banner and the composer status Error.
-- `F06.confirmation-mode`: with confirmation mode on, a lock chip sits above the composer and each action waits for "Do you want to continue with this action?" with Cancel (⇧⌘⌫) and Continue (⌘↩).
-- `F06.confirmation-shortcuts`: Cmd+Enter continues and Shift+Cmd+Backspace cancels a pending action.
+- `F06.confirmation-mode`: with confirmation mode on, a lock chip sits above the composer and each action waits for "Do you want to continue with this action?" with Cancel and Continue (hints `⇧⌘⌫` / `⌘↩` on macOS, `Ctrl+⇧+⌫` / `Ctrl+↩` elsewhere); a cancelled action is marked Rejected and counts as resolved in its group.
+- `F06.confirmation-shortcuts`: Cmd+Enter or Ctrl+Enter continues and Shift+Cmd+Backspace or Shift+Ctrl+Backspace cancels a pending action.
- `F06.branch-from-here`: hovering a message shows Branch from here; on an agent message it forks inclusively; on a user message it forks without that message and pre-fills its text in the new composer, ready to send. The branch is titled "<title> (branch)" and keeps working.
- `F06.image-attachments`: images sent with a message show as thumbnails in the bubble; expand opens a lightbox that closes with X or Escape.
- `F06.skill-install-banner`: after the agent installs a skill into the workspace, a banner offers "Start new conversation with this skill" (same workspace) and Close.
@@ -77,6 +77,7 @@ Preconditions:
- **Markdown file preview (`F06.markdown-file-preview`).** Run `control-openhands conversation start --prompt "Use the file_editor tool to create the file qa_notes.md containing a heading '# QA Notes' and one bullet '- first'. Do nothing else and reply DONE." --wait --timeout 150`. Without any click, `control-openhands browser text 'testid=markdown-file-preview'` reads `QA Notes first qa_notes.md View` (rendered heading and bullet, then the file name) and `count 'testid=event-group'` is `0`. `control-openhands browser count 'testid=file-quick-row-item-qa_notes.md'` is `0`; `control-openhands browser click 'testid=markdown-file-preview-view'` makes it `1` and `control-openhands browser text 'testid=file-content-viewer-markdown'` reads `QA Notes first`. Then `control-openhands browser goto /conversations/<stream id>` to return to the stream conversation for the next bullets.
- **Timestamps (`F06.timestamps`).** Run `control-openhands browser tooltip 'testid=user-message'` and `control-openhands browser tooltip 'testid=event-group-toggle'`. Both return the local date and time, e.g. `Oct 4, 2026, 11:08 PM`.
- **Copy a message and a code block (`F06.message-copy`, `F06.code-block-copy`).** On the same page run `control-openhands browser clipboard --write qa-empty`, `control-openhands browser hover 'testid=agent-message >> nth=0'` and `control-openhands browser click 'testid=agent-message >> nth=0 >> testid=copy-to-clipboard >> nth=0'` (the bubble's button; the code block has a second, hidden `copy-to-clipboard`). `control-openhands browser attr 'testid=agent-message >> nth=0 >> testid=copy-to-clipboard >> nth=0' aria-label` is `Copied to clipboard`, and `Copy to clipboard` again about 2 s later; `control-openhands browser clipboard` starts with `| Step | Result |` and ends with the fenced `print(1)` block. Then `control-openhands browser hover 'testid=agent-message >> pre'`, `control-openhands browser click 'testid=agent-message >> pre >> testid=copy-to-clipboard'` and `control-openhands browser clipboard` is exactly `print(1)`.
+- **Long table cell (`F06.markdown-rendering`).** On the stream conversation write a prompt file whose first line is `Reply with only the word OK. Do not run any tools.`, then a blank line and the table `| Name | Description | Status |`, `|---|---|---|`, `| Alpha | This is a really long sentence in a single cell that goes on and on to explain a very involved aspect of the system, which nobody could read on one line without scrolling forever to the right. | ok |`, `| Beta | brief | fail |`. Run `control-openhands browser fill 'testid=chat-input' x --value-file <file>`, `control-openhands browser click 'testid=submit-button'` and `control-openhands conversation wait <id> --fresh --timeout 120`; the user bubble renders the table. Expected: the long cell wraps at a bounded width and the `Status` column stays visible. Known failure (reproduced 2026-10-13, #18356): every cell is `white-space: nowrap`, so `control-openhands browser bbox 'testid=user-message >> nth=-1 >> testid=markdown-table-scroll'` has `scrollWidth` `1394` against `clientWidth` `704` at desktop with the drawer open and `Status` is scrolled off (`browser screenshot 'testid=chat-interface' --feature F06.markdown-rendering --name long-cell-table`); an agent reply with such a table behaves the same.
- **Non-zero exit badge (`F06.tool-visualizers`).** In an open conversation run `control-openhands browser fill 'testid=chat-input' "Run exactly this terminal command, verbatim, with nothing appended: ls /qa_missing_dir2 . Then reply OK."`, `control-openhands browser click 'testid=submit-button'` and `control-openhands conversation wait <id> --fresh --timeout 150` (without `--fresh` it returns the previous run's `finished` at once). If the reply's actions render as a single row, run `control-openhands browser click 'testid=chat-scroll-container >> role=button[name="Expand"][exact] >> nth=-1'`; if they render as a group (`browser count 'testid=event-group'` grew, e.g. `2 actions completed` after a terminal reset and rerun), run `control-openhands browser click 'testid=event-group-toggle >> nth=-1'` and `control-openhands browser click 'testid=event-group-content >> nth=-1 >> role=button[name="Expand"][exact] >> nth=-1'`. Then `control-openhands browser count 'testid=chat-scroll-container >> text="exit 2"'` is `1`; the badge sits above the `No such file or directory` output (`browser screenshot 'testid=event-group >> nth=-1' --feature F06.tool-visualizers --name exit-code`). Repeating the check in the same conversation needs a new directory name and a count that grows, because an earlier expanded badge stays on the page.
- **Task list (`F06.task-list`, `F06.status-indicator`).** From `/` run `control-openhands browser goto /`, `control-openhands browser fill 'testid=chat-input' "Use your task_tracker tool to plan exactly two tasks titled 'qa step one' and 'qa step two'; mark 'qa step one' done and 'qa step two' todo. Do nothing else and reply DONE."` and `control-openhands browser click 'testid=submit-button' --expect-url '/conversations/' --observe '[data-testid=chat-status-indicator]' --observe-ms 8000`. `observed` contains `Starting` for a moment (the pill). Then `control-openhands conversation wait <id> --timeout 150` and `control-openhands browser text 'testid=chat-scroll-container'`: it contains `Tasks`, `qa step one`, `qa step two`; the screenshot shows a check icon and muted text for the done task, an empty circle for the todo one.
- **Empty state (`F06.empty-state-suggestions`).** Run `control-openhands browser click 'testid=conversation-panel-new-thread-picker'`, `control-openhands browser click 'testid=launch-no-workspace' --expect-url '/conversations/'`, then `control-openhands browser text 'testid=chat-suggestions'`: `Let's start building!` plus `Increase test coverage`, `Auto-merge PRs`, `Fix README`, `Clean dependencies`. Run `control-openhands browser click 'testid=chat-suggestions >> text=Fix README'` and `control-openhands browser text 'testid=chat-input'`: the composer holds the README-improvement prompt.
@@ -89,8 +90,8 @@ Preconditions:
- **Reload mid-run (`F06.reload-mid-run`).** Run `control-openhands conversation start --prompt "Run exactly one terminal command: sleep 15 && echo qa-reloaded. Then reply with only its output."`, wait for `testid=live-activity-chip`, then `control-openhands browser reload`. The composer still reads `Running` and the chip is back. After `control-openhands conversation wait <id> --timeout 120`: `testid=agent-message` is `qa-reloaded`, `count 'testid=user-message'` is `1`, `control-openhands browser eval "document.querySelectorAll('[data-testid=chat-scroll-container] [data-testid=generic-event-message-title]').length"` is `1`.
- **Older history (`F06.load-older-history`).** Run `control-openhands conversation start --prompt "Run these 16 terminal commands strictly one per tool call, sequentially (never combine them): echo qa1, echo qa2, echo qa3, echo qa4, echo qa5, echo qa6, echo qa7, echo qa8, echo qa9, echo qa10, echo qa11, echo qa12, echo qa13, echo qa14, echo qa15, echo qa16. Then reply DONE." --wait --timeout 400` (note `<history-id>`); `control-openhands conversation events <history-id> --last 500` reports a count above 50. Run `control-openhands browser network --clear`, `control-openhands browser reload`, then `control-openhands browser network --last 300`: two `GET /api/conversations/<history-id>/events/search` requests (newest page, then the older page). `control-openhands browser text 'testid=chat-scroll-container'` starts with the prompt and shows `16 actions completed` and `DONE`. The other trigger is the user scrolling to the top, driven without a model on the dummy profile from Preconditions (`qa-zeta` active; in a keyed run create and activate it with that same `llm set` command for this bullet, then re-run `control-openhands llm preset deepseek` and remove it with `control-openhands api DELETE /api/profiles/qa-zeta --write`, so later families still count two profiles; arrange, not proof). Run `control-openhands conversation start --prompt "qa older 1"` (no `--wait`; note `<older-id>`), then `for N in $(seq 2 30); do control-openhands conversation send <older-id> --prompt "qa older $N"; done`: every send is accepted while the agent sits in error, about 1.5 s apiece (42 s for the 29 here), and each refused message adds five events (a `MessageEvent`, three `ConversationStateUpdateEvent`s, a `ConversationErrorEvent`), so the conversation ends with about 150 events (152 here). `control-openhands conversation events <older-id> --last 500` reports `"total": 152`, `"pages": 2`, `"more": false` (both server pages read, see Gotchas); its first row is the `SystemPromptEvent` and the first `MessageEvent` is `qa older 1`, while `--last 25` reports `"pages": 1`, `"more": true` and starts at `qa older 26`. Run `control-openhands browser network --clear`, `control-openhands browser reload`, `control-openhands browser wait 'testid=chat-input'`, then `control-openhands browser network --filter 'events/search' --last 10`: two requests, `?limit=50&sort_order=TIMESTAMP_DESC` and one with `timestamp__lt=<ts of qa older 21>`, because the newest 50 events hold only ten bubbles, shorter than the viewport, so the automatic fetch ran once and then stopped. `control-openhands browser count 'testid=user-message'` is `20`, `control-openhands browser text 'testid=chat-scroll-container'` starts `qa older 11` and holds none of `qa older 1`…`qa older 10`, and `control-openhands browser bbox 'testid=chat-scroll-container'` has `scrollHeight` `1576` against `clientHeight` `814`: taller than the viewport, so the third page waits for the user. Run `control-openhands browser scroll 'testid=chat-scroll-container' --by -100000`: `control-openhands browser network --filter 'events/search' --last 5` gains a request with `timestamp__lt=<ts of qa older 11>`, `control-openhands browser count 'testid=user-message'` is `29` and the text starts `qa older 2` (that page held messages 2–10 plus the tail of the first message's events; not seen in two runs: if the first refusal ever logs six events instead of seven, the arithmetic gives count `30`, text `qa older 1` and a last page of only the `SystemPromptEvent`), and the view stays on `qa older 11`: `control-openhands browser eval "document.querySelector('[data-testid=chat-scroll-container]').scrollTop"` is `684`, the height of the prepended rows. Scroll to the top again the same way: a fourth request (`timestamp__lt=` the oldest loaded event), the count is `30`, the text starts `qa older 1` and `scrollTop` is `76` (`control-openhands browser screenshot 'testid=chat-interface' --feature F06.load-older-history --name scroll-top-loaded-qa-older-1`). A third scroll adds no request: the short page ended the paging. `control-openhands browser count 'testid=loading-older-events'` is `0` after each scroll because the `Fetching older messages…` row lasts a few tens of milliseconds on a local stack; to see it, scroll with `control-openhands browser scroll 'testid=chat-scroll-container' --by -100000 --observe 'testid=loading-older-events' --observe-ms 1500` instead (both scrolls were driven this way here, with the same counts), whose `observed` goes `<absent>` at `0` ms, `Fetching older messages…` at about 20 ms and `<absent>` again within about 40 to 120 ms (`116` ms on the first scroll, `39` on the second; `observedBy` `mutation`); the `timestamp__lt=` network rows remain the durable proof. Return to the 16-command conversation for the next bullet: `control-openhands browser goto /conversations/<history-id>` and `control-openhands browser wait 'testid=chat-input'`.
- **Scroll to bottom (`F06.scroll-to-bottom`).** On the 16-command conversation (`<history-id>`; in a model-free run this bullet is blocked with the automatic-fetch half, prerequisite `DEEPSEEK_API_KEY`), `control-openhands browser click 'testid=event-group-toggle'` makes the transcript taller than the viewport while the view stays where it was. Run `control-openhands browser scroll 'testid=chat-scroll-container' --by 2000` first (the button only reacts to scroll events, so a page that is already at the top never shows it): `count 'testid=scroll-to-bottom'` is `0`. Run `control-openhands browser scroll 'testid=chat-scroll-container' --by -2000`; the count is `1`. `control-openhands browser click 'testid=scroll-to-bottom'`, then the count is `0` and `control-openhands browser eval "(()=>{const e=document.querySelector('[data-testid=chat-scroll-container]');return Math.round(e.scrollHeight-e.scrollTop-e.clientHeight)})()"` is `0`.
-- **Confirmation mode on (`F06.confirmation-mode`).** Arrange through the settings UI, in this order (the Security Analyzer field appears only once Confirmation Mode is on): `control-openhands browser goto /settings/verification`, `control-openhands browser click 'testid=verification-settings-screen >> text=Confirmation Mode'`, `control-openhands browser click 'testid=sdk-section-all-toggle'`, `control-openhands browser click 'testid=verification-settings-screen >> role=button[name="Show suggestions"]'`, `control-openhands browser click 'role=listbox >> role=option[name="None"]'`, `control-openhands browser value 'testid=verification-settings-screen >> role=combobox[name="Security Analyzer"]'` (`None`), `control-openhands browser click 'testid=verification-settings-screen >> testid=save-button'`; `control-openhands api GET /api/settings` shows `"confirmation_mode": true` and `"security_analyzer": "none"` (None means every action is confirmed; the default LLM analyzer only stops HIGH-risk actions, so `echo` would run unprompted). Run `control-openhands conversation start --prompt "Run the terminal command 'echo qa-confirm-ok' and reply with its output." --wait --timeout 180`: it returns `"status": "waiting_for_confirmation"`. `control-openhands browser text 'testid=chat-scroll-container'` ends `Do you want to continue with this action? Cancel ⇧⌘⌫ Continue ⌘↩`, `control-openhands browser tooltip 'testid=action-confirm-button'` is `Confirm the requested action`, and a lock icon sits above the composer (screenshot). Run `control-openhands browser click 'testid=action-reject-button'`: status `idle`, the buttons are gone and `conversation events <id> --last 6` ends with `UserRejectObservation`. Send `Run the terminal command 'echo qa-confirm-two' and reply with its output.` through `testid=chat-input` / `testid=submit-button`, `control-openhands browser wait 'testid=action-confirm-button' --timeout 20000`, `control-openhands browser click 'testid=action-confirm-button'`; about 15 s later the status is `finished` and the events contain the observation `qa-confirm-two`. Expected after a Cancel: the rejected row is shown as resolved and the group stops spinning (currently fails, see Gotchas).
-- **Confirmation shortcuts (`F06.confirmation-shortcuts`).** The previous bullet resolved its action, so arrange a new one in the same conversation: send `Run the terminal command 'echo qa-confirm-three' and reply with its output.` through `testid=chat-input` / `testid=submit-button` and `control-openhands browser wait 'testid=action-confirm-button' --timeout 20000`. While it awaits confirmation, `control-openhands browser press Control+Enter` does nothing (`control-openhands conversation status <id>` stays `waiting_for_confirmation`); see Gotchas. `control-openhands browser press Meta+Enter` continues it: `control-openhands conversation wait <id> --fresh --timeout 120` ends `finished` and `control-openhands conversation events <id> --kinds ObservationEvent` contains `qa-confirm-three`. Restore afterwards: `browser goto /settings/verification`, click `testid=sdk-section-all-toggle`, `Show suggestions`, `role=listbox >> role=option[name="LLM"]`, then `testid=verification-settings-screen >> text=Confirmation Mode`, then `save-button`; `api GET /api/settings` shows `"confirmation_mode": false`, `"security_analyzer": "llm"`.
+- **Confirmation mode on (`F06.confirmation-mode`).** Arrange through the settings UI, in this order (the Security Analyzer field appears only once Confirmation Mode is on): `control-openhands browser goto /settings/verification`, `control-openhands browser click 'testid=verification-settings-screen >> text=Confirmation Mode'`, `control-openhands browser click 'testid=sdk-section-all-toggle'`, `control-openhands browser click 'testid=verification-settings-screen >> role=button[name="Show suggestions"]'`, `control-openhands browser click 'role=listbox >> role=option[name="None"]'`, `control-openhands browser value 'testid=verification-settings-screen >> role=combobox[name="Security Analyzer"]'` (`None`), `control-openhands browser click 'testid=verification-settings-screen >> testid=save-button'`; `control-openhands api GET /api/settings` shows `"confirmation_mode": true` and `"security_analyzer": "none"` (None means every action is confirmed; the default LLM analyzer only stops HIGH-risk actions, so `echo` would run unprompted). Run `control-openhands conversation start --prompt "Run the terminal command 'echo qa-confirm-ok' and reply with its output." --wait --timeout 180`: it returns `"status": "waiting_for_confirmation"`. `control-openhands browser text 'testid=chat-scroll-container'` ends `Do you want to continue with this action? Cancel Ctrl+⇧+⌫ Continue Ctrl+↩` on Linux (`Cancel ⇧⌘⌫ Continue ⌘↩` on macOS, #18127), `control-openhands browser tooltip 'testid=action-confirm-button'` is `Confirm the requested action`, and a lock icon sits above the composer (screenshot). The tooltip stays open over the Cancel button, so move the pointer first: `control-openhands browser hover 'testid=chat-input'`. Run `control-openhands browser click 'testid=action-reject-button'`: status `idle`, the buttons are gone, `conversation events <id> --last 6` ends with `UserRejectObservation`, and the action's row reads `Rejected` (`control-openhands browser count 'testid=rejected-indicator'` is `1`) with no spinner. Send `Run the terminal command 'echo qa-confirm-two' and reply with its output.` through `testid=chat-input` / `testid=submit-button`, `control-openhands browser wait 'testid=action-confirm-button' --timeout 20000`, `control-openhands browser click 'testid=action-confirm-button'`; about 15 s later the status is `finished` and the events contain the observation `qa-confirm-two`. A rejection inside a group resolves it too (#17920, fixed by #17995): send `Run the terminal command 'echo qa-g1'. After it finishes, run the terminal command 'echo qa-g2' as a separate tool call. Then reply DONE.`, continue the first action (`browser wait 'testid=action-confirm-button'`, then `control-openhands browser press Control+Enter`, which is also the next bullet's shortcut) and cancel the second (`browser wait 'testid=action-confirm-button' --timeout 60000`, `control-openhands browser press Control+Shift+Backspace`): status `idle`, `control-openhands browser text 'testid=event-group >> nth=-1'` ends `2 actions completed`, `control-openhands browser count 'testid=event-group >> nth=-1 >> .animate-spin'` is `0`, the same after `browser reload`, and the expanded group (`control-openhands browser click 'testid=event-group >> nth=-1 >> button >> nth=0'`) shows `Rejected` on the `qa-g2` row (`browser screenshot 'testid=chat-interface' --feature F06.confirmation-mode --name group-after-reload`). At phone width (`browser viewport phone`) the hints should fit their buttons. Known failure (reproduced 2026-10-13, #18395): the labels wrap inside the 26 px buttons (`scrollHeight` 40), so Cancel's `Ctrl+⇧+⌫` line falls below the button, invisible, and Continue's hint spills below it; the same wrap shows on desktop with the side panel open, and at `553d4519` with the ⌘ hints (screenshot the awaiting prompt at phone width).
+- **Confirmation shortcuts (`F06.confirmation-shortcuts`).** The previous bullet resolved its action, so arrange a new one in the same conversation: send `Run the terminal command 'echo qa-confirm-three' and reply with its output.` through `testid=chat-input` / `testid=submit-button` and `control-openhands browser wait 'testid=action-confirm-button' --timeout 20000`. `control-openhands browser text 'testid=action-confirm-button'` is `Continue Ctrl+↩` off macOS. Ctrl works off macOS (#17928, fixed by #18127): the previous bullet's `Control+Enter` continued and `Control+Shift+Backspace` cancelled. `control-openhands browser press Meta+Enter` continues too: `control-openhands conversation wait <id> --fresh --timeout 120` ends `finished` and `control-openhands conversation events <id> --kinds ObservationEvent` contains `qa-confirm-three`. Restore afterwards: `browser goto /settings/verification`, click `testid=sdk-section-all-toggle`, `Show suggestions`, `role=listbox >> role=option[name="LLM"]`, then `testid=verification-settings-screen >> text=Confirmation Mode`, then `save-button`; `api GET /api/settings` shows `"confirmation_mode": false`, `"security_analyzer": "llm"`.
- **Branch from here (`F06.branch-from-here`).** Open a conversation with at least two exchanges (the OK/PONG one above): `control-openhands browser goto /conversations/<id>` with its id (the previous bullet left `/settings/verification`). Agent message: `control-openhands browser hover 'testid=agent-message >> nth=0'`, `control-openhands browser click 'testid=agent-message >> nth=0 >> role=button[name="Branch from here"]' --expect-url '/conversations/(?!<id>)'`; after `control-openhands browser wait 'testid=user-message'` (the history mounts a moment after the URL changes, so an immediate count reads `0`) the new conversation has `count 'testid=user-message'` `1`, the agent message `OK`, and `browser eval "document.title"` contains `(branch)`. User message (edit): back on the OK/PONG conversation (`control-openhands browser goto /conversations/<id>`; the branch above has one user message), `control-openhands browser hover 'testid=user-message >> nth=1'` and `control-openhands browser click 'testid=user-message >> nth=1 >> role=button[name="Branch from here"]' --observe '[data-testid=chat-input]' --observe-ms 4000`: `observed` shows the composer change from empty to `Reply with only the word PONG.` and stay. The new conversation (`<branch-id>` from `browser url`) omits that message, `control-openhands browser text 'testid=chat-input'` is `Reply with only the word PONG.`, and nothing was sent: `control-openhands conversation events <branch-id> --kinds MessageEvent` lists only the copied first exchange (count `2`: the long message that starts `Reply with only the word OK.`, then `OK`; no `PONG`). `control-openhands browser enabled 'testid=submit-button'` should be `true` with the prefilled text; today it is `false` until the text is edited or the page is reloaded (see Gotchas). Send it with `control-openhands browser press Enter --selector 'testid=chat-input'` (Enter sends whatever the Send button's state is) and `control-openhands conversation wait <branch-id> --fresh --timeout 120`: expected `finished` with a reply; today it ends `error` (Agent Server bug, see Gotchas).
- **Images (`F06.image-attachments`).** Run `control-openhands fixture image --name qa-f06-img` (prints the PNG path), `control-openhands browser upload 'testid=upload-image-input' <png path>` (a thumbnail appears in the composer), fill `testid=chat-input` with `Reply with only the word SEEN.` and click `testid=submit-button`. The user bubble contains `image-carousel` / `image-preview`. Run `control-openhands browser hover 'testid=image-preview'`, `control-openhands browser click 'testid=expand-image-button'` (`count 'testid=image-lightbox'` is `1`), `control-openhands browser press Escape` (`0`), click `expand-image-button` again and `control-openhands browser click 'testid=image-lightbox-close'` (`0`).
- **Error events (`F06.error-events`).** Any run that ends in a `ConversationErrorEvent` (today: any message sent in a branched conversation) leaves `conversation wait <id>` at `"status": "error"`; `control-openhands browser testids 'testid=chat-interface'` lists `error-message-banner` with `warning-message-banner-icon` and the error's text, and the composer status reads `Error`. Read the code with `control-openhands api GET "/api/conversations/<id>/events/search?limit=3&sort_order=TIMESTAMP_DESC"`.
@@ -110,8 +111,7 @@ Preconditions:
- The agent itself may open files with `canvas_ui_control` (a third action in the echo/file run). Close the file tab before proving that a path link opens it.
- On Settings → Verification the Security Analyzer field (All tab) is shown only while Confirmation Mode is on: switch Confirmation Mode on first, then pick the analyzer. Check `api GET /api/settings` after saving.
- Confirmation mode with the default Security Analyzer `LLM` uses ConfirmRisky(HIGH): harmless commands run without a prompt. Set the analyzer to `None` to confirm every action, and restore `LLM` afterwards. The composer stays editable while waiting (status "User needed"); the buttons read Cancel / Continue.
-- Known failure, Canvas UI: after Cancel the event group keeps a spinner and "1/2 actions completed" forever, even after reload, although the conversation is idle and the server recorded `UserRejectObservation` (the group only counts `ObservationEvent`s) (#17920). Evidence `F06.confirmation-mode/rejected-after-reload.png`.
-- Known failure, Canvas UI: the confirm/cancel shortcuts check only `metaKey`; on Linux/Windows `Control+Enter` does nothing although the composer and plan shortcuts accept Ctrl (#17928).
+- The confirm and cancel shortcuts accept Meta or Ctrl and ignore a held key's auto-repeat; once a response is sent the listener is detached, so a second press sends nothing (#18127). Hints read `Ctrl+↩` / `Ctrl+⇧+⌫` off Apple platforms.
- Known failure, Canvas UI ([#18202](https://github.com/OpenHands/OpenHands/issues/18202), reproduced 2026-10-09; [draft fix PR #18203](https://github.com/OpenHands/OpenHands/pull/18203)): after a user-message branch the composer holds the prefilled text but Send stays disabled (`browser enabled 'testid=submit-button'` is `false`, and a click on it times out with `element is not enabled`). The prefill is a saved draft that `src/hooks/chat/use-draft-persistence.ts` writes into the field without an input event, and the composer is reused across the client-side switch, so its Send state keeps the source conversation's empty field. Editing the text, a reload, or Enter in the field (`browser press Enter --selector 'testid=chat-input'`) all work. A draft restored by a sidebar switch behaves the same (F05 Gotchas).
- Known failure, likely Agent Server: every message in a branched conversation ends with `ConversationErrorEvent` `LLMAuthenticationError` ("Your LLM API key appears to be invalid or has expired."), while the source conversation keeps working (OpenHands/software-agent-sdk#5465). Do not use branches as fixtures for other checks.
- "The terminal session was reset because the underlying tmux server/session disappeared" (clock `status-icon` on the row) appears after a `service stop agent-server` / `restart` cycle. Since `launch` gives each run its own short `TMUX_TMPDIR`, other runs no longer cause it. The underlying product bug is still open (OpenHands/OpenHands#17946) for plain `agent-canvas` instances: `bin/agent-canvas.mjs` → `scripts/dev-with-automation.mjs` passes `TMUX_TMPDIR=<state>/tmux` to the Agent Server but `ensureDirectories` never creates it (`dev-safe.mjs` does), so tmux 3.4 falls back to the shared `/tmp/tmux-<uid>/openhands` socket and another instance's restart or stop kills this run's windows. The model usually reruns the command; expect an extra action.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F07-conversation-page.md b/.agents/skills/verify-openhands/references/feature-map/F07-conversation-page.md
index 09372c8acc..c7a07cc069 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F07-conversation-page.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F07-conversation-page.md
@@ -54,24 +54,26 @@ Preconditions:
- A finished conversation: `control-openhands conversation start --prompt "Reply with the single word: pong" --wait --timeout 240` prints its `<id>`.
- A running conversation for the active-only items: `control-openhands conversation start --prompt "Run the shell command: sleep 90 ; then reply with the word done" --wait --until running --timeout 120` prints `<running-id>`. It finishes after about 90 s, so start it right before `F07.stop-confirm` (after a Stop it stays `paused` until Start Runtime).
- A conversation in a git workspace for the git control bar: `control-openhands fixture git-repo --name qa-f07-repo`, then `control-openhands browser goto /` (`conversation start` left the browser on `<id>`), `control-openhands browser click 'testid=open-workspace-button'`, `control-openhands browser click 'role=dialog >> role=combobox[name="Select a workspace"]'`, `control-openhands browser click 'role=dialog >> role=button[name="+ Add Workspace"]'`, `control-openhands browser click 'testid=folder-browser-sidebar-workspace'`, `control-openhands browser click 'testid=folder-browser-up'` three times (to the run directory), `control-openhands browser click 'testid=folder-browser-entry-workspace'`, `control-openhands browser click 'testid=folder-browser-entry-qa-f07-repo'`, `control-openhands browser click 'testid=folder-browser-use'`, `control-openhands browser click 'testid=workspace-launch-button'`, then `control-openhands conversation start --prompt "Reply with the single word: ok" --stay --wait --timeout 240` prints `<git-id>`.
+- An automation setup conversation for the setup-leaving bullet, made right after the finished conversation: `control-openhands browser goto /automations`, `control-openhands browser click 'testid=automations-add-automation'`, `control-openhands browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'`, `control-openhands conversation start --stay --prompt 'Reply with only the word ok. Do not run any tools.' --wait --timeout 180` (prints `<setup-id>`), then `control-openhands browser goto /`.
- Cloud-only rows (`F07.cloud-only`) are blocked without an OpenHands Cloud account.
- Desktop viewport unless a bullet says otherwise.
- **Open by URL (`F07.open-by-url`).** Run `control-openhands browser goto /conversations/<id>`, `control-openhands browser wait 'testid=chat-pane-header'`, `control-openhands browser text 'testid=conversation-name-title'` and `control-openhands browser count 'testid=chat-interface >> testid=agent-message'`. The title is the generated one and the count is `1`. `control-openhands browser eval "localStorage.getItem('openhands-last-conversation-by-backend')"` reads `{"default-local":"<id>"}`.
+- **Leaving an automation setup conversation (`F07.open-by-url`).** A conversation tagged `automationsetup: draft` (started from `/automations/setup`, see `F04.automation-setup-tag`) opens as a setup page (`testid=automation-setup-topbar`, no `chat-pane-header`). Make an empty conversation: `control-openhands browser goto /`, `control-openhands browser click 'testid=conversation-panel-new-thread-picker'`, `control-openhands browser click 'testid=launch-no-workspace' --expect-url '/conversations/'` (note `<plain-id>`; `control-openhands api GET /api/conversations/<plain-id> --pick tags` is only `clientsource`). Open the setup conversation from the sidebar (`control-openhands browser click 'a[href*="/conversations/<setup-id>"] >> nth=0' --expect-url '/conversations/<setup-id>'`), then go back the same way (`'a[href*="/conversations/<plain-id>"] >> nth=0'`). Expected: `<plain-id>` opens as a normal conversation (`browser count 'testid=chat-pane-header'` is `1`) and its tags are unchanged. Known failure (reproduced 2026-10-13, 3 of 3 at desktop, #18378): the setup panel stays mounted for the first render of the new id and tags it, so `api GET /api/conversations/<plain-id> --pick tags` gains `automationsetup: draft`, `browser count 'testid=automation-setup-topbar'` is `1` and the sidebar row gains the `Automation setup: Draft` chip, also after a reload (`browser screenshot --feature F07.open-by-url --name plain-became-setup`). It triggers when the setup conversation is in this tab's `openhands-automation-setup-handoffs` sessionStorage entry (`control-openhands browser storage --session --values`) and the other conversation is already loaded in the page; it did not reproduce at phone width (0 of 2). Remove the tag with F04's Edit tags (`remove-tag-automationsetup`) to restore the conversation.
- **Unknown id (`F07.missing-redirect`).** Run `control-openhands browser goto /conversations/00000000-0000-0000-0000-000000000000`, `control-openhands browser wait-url '/conversations$'` and `control-openhands browser toasts`. A toast reads `This conversation does not exist, or you do not have permission to access it. If this is your conversation, try switching to the workspace where it was created.` and the last-conversation slot is `{}`. It is the only toast: `control-openhands browser toasts --history` has no entry with `does not understand`.
- **Rename inline (`F07.rename-inline`).** On `/conversations/<id>` (`control-openhands browser goto /conversations/<id>`; the unknown id redirected to `/conversations`) run `control-openhands browser dblclick 'testid=conversation-name-title'`, `control-openhands browser fill 'testid=conversation-name-input' 'QA_F07 renamed'`, `control-openhands browser press Enter`, `control-openhands browser toasts` (`Conversation title updated successfully`), then `control-openhands browser reload` and `control-openhands browser text 'testid=conversation-name-title'`. It reads `QA_F07 renamed`, and so does `control-openhands browser text 'testid=conversation-card >> testid=conversation-card-title'`.
- **Rename from the menu, empty value (`F07.rename-inline`).** Run `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=rename-button'`, `control-openhands browser fill 'testid=conversation-name-input' ''` and `control-openhands browser press Enter`. The title stays `QA_F07 renamed` and no toast appears.
- **History skeleton and sidebar entry (`F07.history-skeleton`, `F07.open-by-url`).** From `/` (`control-openhands browser goto /`) run `control-openhands browser click 'testid=conversation-card >> has-text=QA_F07 renamed' --expect-url '/conversations/[0-9a-f-]+' --observe 'testid=chat-messages-skeleton' --observe-ms 3000` (run it after the rename above; before it, match the generated title instead). The `observed` list shows the skeleton present for a few hundred ms, then `<absent>`; the URL is `/conversations/<id>?backend=default-local`.
- **Status menu, stop (`F07.status-menu`).** On `/conversations/<id>` run `control-openhands browser hover 'testid=server-status-menu-trigger'` (for a mouse the hover opens the menu and a click on the open menu's dot closes it; a CLI `click` from elsewhere usually opens it only because the click lands before the hover renders, a race that sometimes leaves it closed, so do not click), `control-openhands browser text 'testid=server-status-context-menu'` (`Running` / `Stop Runtime`), then `control-openhands browser click 'testid=server-status-context-menu >> testid=stop-server-button' --expect-url '/conversations$'` and `control-openhands browser toasts`. The toasts read `Stopping conversation...` and `Conversation stopped` and the URL is `/conversations`.
- **Menu (`F07.menu-open`).** Stop Runtime left the browser on `/conversations`: run `control-openhands browser goto /conversations/<git-id>` (a finished conversation whose runtime was not stopped), then `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'` and `control-openhands browser testids 'testid=conversation-name-context-menu'`. On a finished or running conversation the items are `rename-button`, `show-skills-button`, `show-hooks-button`, `show-agent-tools-button`, `export-transcript-button` (`Export…`), `download-trajectory-button`, `display-cost-button` (`Display Usage and Cost`), `stop-button`, `delete-button`. `control-openhands browser press Escape` closes it (`control-openhands browser count 'testid=conversation-name-context-menu'` is `0`) and focus is back on the trigger (`control-openhands browser eval "document.activeElement.dataset.testid"` is `ellipsis-button`). Open it again: `control-openhands browser mouse-click 900 500` closes it too (count `0`).
-- **Stop with confirmation (`F07.stop-confirm`).** On `/conversations/<running-id>` run `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=stop-button'` and `control-openhands browser snapshot 'role=dialog'` (`Confirm Stop Conversation`, buttons `Cancel` and `Confirm Close`). `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` closes it and `control-openhands conversation status <running-id>` stays `running`. Repeat the two clicks, then `control-openhands browser click 'role=dialog >> role=button[name="Confirm Close"]' --expect-url '/conversations$'`; the toasts read `Conversation stopped` and `conversation status <running-id>` is `paused`.
+- **Stop with confirmation (`F07.stop-confirm`).** On `/conversations/<running-id>` run `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=stop-button'` and `control-openhands browser snapshot 'role=dialog'` (`Confirm Stop Conversation`, buttons `Cancel` and `Confirm Close`, test ids `cancel-button` and `confirm-button`). `control-openhands browser click 'role=dialog >> testid=cancel-button'` closes it and `control-openhands conversation status <running-id>` stays `running`. Repeat the two clicks, then `control-openhands browser click 'role=dialog >> testid=confirm-button' --expect-url '/conversations$'`; the toasts read `Conversation stopped` and `conversation status <running-id>` is `paused`.
- **Branch from a message (`F07.branch-from-message`).** On `/conversations/<id>` (`control-openhands browser goto /conversations/<id>`; Stop with confirmation ended on `/conversations`) run `control-openhands browser hover 'testid=agent-message'`, then `control-openhands browser click 'testid=agent-message >> role=button[name="Branch from here"]' --expect-url '/conversations/(?!<id>)[0-9a-f-]+'`, `control-openhands browser text 'testid=conversation-name-title'` (`QA_F07 renamed (branch)`) and `control-openhands browser count 'testid=chat-interface >> testid=user-message'` (`1`, the history is copied up to that reply). Back on `/conversations/<id>` (`control-openhands browser goto /conversations/<id>`), `control-openhands browser hover 'testid=user-message'` and `control-openhands browser click 'testid=user-message >> role=button[name="Branch from here"]' --expect-url '/conversations/(?!<id>)[0-9a-f-]+'` (it prints `/conversations/<branch-id>`): the new branch has `0` user messages and `control-openhands browser text 'testid=chat-input'` reads the original prompt `Reply with the single word: pong`, still there a few seconds later and not sent (`control-openhands conversation events <branch-id> --kinds MessageEvent` has count `0`).
-- **Delete with confirmation (`F07.delete-confirm`).** On a disposable conversation (for example the branch from `F07.branch-from-message`) run `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=delete-button'` and `control-openhands browser snapshot 'role=dialog'`: `Confirm Delete Are you sure you want to delete the "<title>" conversation? This action cannot be undone.` with `Cancel` and `Confirm Delete`. `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps the URL. Repeat the two clicks, then `control-openhands browser click 'role=dialog >> role=button[name="Confirm Delete"]' --expect-url '/conversations$'`; `control-openhands api GET '/api/conversations?ids=<id>'` returns `[null]` and `browser goto /conversations/<id>` redirects as in `F07.missing-redirect`.
+- **Delete with confirmation (`F07.delete-confirm`).** On a disposable conversation (for example the branch from `F07.branch-from-message`) run `control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button'`, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=delete-button'` and `control-openhands browser snapshot 'role=dialog'`: `Confirm Delete Are you sure you want to delete the "<title>" conversation? This action cannot be undone.` with `Cancel` (`cancel-button`) and `Confirm Delete` (`confirm-button`). `control-openhands browser click 'role=dialog >> testid=cancel-button'` keeps the URL. Repeat the two clicks, then `control-openhands browser click 'role=dialog >> testid=confirm-button' --expect-url '/conversations$'`; `control-openhands api GET '/api/conversations?ids=<id>'` returns `[null]` and `browser goto /conversations/<id>` redirects as in `F07.missing-redirect`.
- **Paused conversation (`F07.menu-items-by-state`, `F07.status-menu`).** Run `control-openhands browser goto /conversations/<running-id>`, open the "..." menu and `control-openhands browser testids 'testid=conversation-name-context-menu'`: `show-hooks-button` and `stop-button` are absent. Close it with `control-openhands browser mouse-click 900 500`. Run `control-openhands browser click 'testid=server-status-menu-trigger'` and `control-openhands browser text 'testid=server-status-context-menu'` (`Server Stopped` / `Start Runtime`), then `control-openhands browser click 'testid=server-status-context-menu >> testid=start-server-button'` and `control-openhands conversation wait <running-id> --until running,finished,idle --timeout 60`. The status is `running` again and the menu reads `Running` / `Stop Runtime`.
- **Hooks (`F07.hooks-modal`).** On `/conversations/<running-id>` (no workspace attached; Paused conversation left the browser there) open the "..." menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-hooks-button'` and `control-openhands browser text 'testid=hooks-modal'`. It reads `Available Hooks`, the workspace explanation and `No hooks configured for this conversation.` (the backend workspace root has no `hooks.json`). Run `control-openhands browser network --clear` and `control-openhands browser click 'testid=hooks-modal >> testid=refresh-hooks'`: the text stays and `control-openhands browser network` shows `POST /api/hooks`. `control-openhands browser click 'testid=close-hooks-modal'` closes it.
- **Skills (`F07.skills-modal`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-skills-button'`, `control-openhands browser snapshot 'role=dialog'` (`Public skills 12` and one button per skill), `control-openhands browser click 'testid=skills-modal >> role=button[name="github Knowledge"]'`; the row expands to `Triggers` and `Content`. `control-openhands browser press Escape` closes it (`browser count 'testid=skills-modal'` is `0`).
- **Project skills and configured hooks (`F07.skills-modal-project`, `F07.hooks-modal`).** Arrange (outside the UI) a project skill and a hook in the git fixture: `mkdir -p <run>/workspace/qa-f07-repo/.agents/skills/qa-f07-skill <run>/workspace/qa-f07-repo/.openhands`, write `<run>/workspace/qa-f07-repo/.agents/skills/qa-f07-skill/SKILL.md` with front matter `name: qa-f07-skill`, `description: QA fixture skill for F07.`, `triggers: [qaf07trigger]` and the body `QA_F07 skill body.`, and write `<run>/workspace/qa-f07-repo/.openhands/hooks.json` as `{"pre_tool_use":[{"matcher":"terminal","hooks":[{"type":"command","command":"true","timeout":10}]}]}`. Then `control-openhands conversation start --workspace qa-f07-repo --prompt "Reply with the single word: hi" --wait --timeout 240` prints `<hooks-id>`; `control-openhands api GET /api/conversations/<hooks-id>` shows that `hook_config.pre_tool_use` holds the `terminal` matcher. On `/conversations/<hooks-id>` open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-skills-button'` and `control-openhands browser snapshot 'role=dialog'`: `Project skills 1` with `button "qa-f07-skill AgentSkills"` above `Public skills 12`. `control-openhands browser click 'testid=skills-modal >> role=button[name="qa-f07-skill AgentSkills"]'` expands it to `Triggers qaf07trigger Content QA_F07 skill body.`; `control-openhands browser click 'testid=skills-modal >> testid=refresh-skills'` re-reads the workspace (`browser network` shows `POST /api/skills`). Close with `control-openhands browser press Escape`. Hooks: open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-hooks-button'` and `control-openhands browser snapshot 'testid=hooks-modal'`: one collapsed event, `button "Pre Tool Use 1 hook"`. `control-openhands browser click 'testid=hooks-modal >> role=button[name="Pre Tool Use 1 hook"]'` expands it to `Matcher terminal Commands true Type: command Timeout: 10s` (`control-openhands browser screenshot --feature F07.hooks-modal --name workspace-hooks`). Close it with `control-openhands browser click 'testid=close-hooks-modal'` and write `<run>/workspace/qa-f07-repo/.openhands/hooks.json` as `{"pre_tool_use":[{"matcher":"terminal","hooks":[{"type":"command","command":"true","timeout":10}]}],"stop":[{"hooks":[{"type":"command","command":"echo qa-f07-stop"}]}]}`. A reopen keeps the list it read: run `control-openhands browser network --clear`, open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-hooks-button'` again, then `control-openhands browser network --filter /api/hooks` (no request) and `control-openhands browser snapshot 'testid=hooks-modal'` (still only `button "Pre Tool Use 1 hook"`). Refresh re-reads the file: `control-openhands browser click 'testid=hooks-modal >> testid=refresh-hooks'`, then `control-openhands browser network --filter /api/hooks` shows `POST /api/hooks` and the snapshot adds `button "Stop 1 hook"`; `control-openhands browser click 'testid=hooks-modal >> role=button[name="Stop 1 hook"]'` expands it to `Matcher * Commands echo qa-f07-stop Type: command Timeout: 60s` (the SDK defaults). Close with `control-openhands browser click 'testid=close-hooks-modal'`.
-- **Agent tools (`F07.agent-tools-modal`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-agent-tools-button'`; the dialog `testid=system-message-modal` has tabs `System Message` (selected, the system prompt) and `Available Tools`. `control-openhands browser click 'role=dialog >> role=tab[name="Available Tools"]'`, `control-openhands browser count 'testid=system-message-modal >> testid=toggle-button'` (backend-provided count; `23` on Agent Server 1.53.0), `control-openhands browser click 'testid=system-message-modal >> testid=toggle-button >> nth=0'` expands `terminal` with its description. Close with `control-openhands browser click 'testid=close-system-message-modal'`.
+- **Agent tools (`F07.agent-tools-modal`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-agent-tools-button'`; the dialog `testid=system-message-modal` has tabs `System Message` (selected, the system prompt) and `Available Tools`. `control-openhands browser click 'role=dialog >> role=tab[name="Available Tools"]'`, `control-openhands browser count 'testid=system-message-modal >> testid=toggle-button'` (backend-provided count; `9` on Agent Server 1.54.0: terminal, file_editor, task_tracker, canvas_ui_control, launch_child_conversation, finish, think, switch_llm, invoke_skill), `control-openhands browser click 'testid=system-message-modal >> testid=toggle-button >> nth=0'` expands `terminal` with its description. Close with `control-openhands browser click 'testid=close-system-message-modal'`.
- **Export transcript (`F07.export-transcript`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=export-transcript-button'`; `control-openhands browser snapshot 'role=dialog'` shows `Export conversation`, radio `Markdown document (.md)` checked, `Standalone web page (.html)`, and checkboxes `Include tool call details` and `Include timestamps` checked. `control-openhands browser click 'testid=confirm-transcript-export'` then `control-openhands browser downloads --last 1 --inspect`: a `<ms>-conversation-<id>.md` (the harness prefixes a timestamp to the suggested `conversation-<id>.md`) lands in `<run>/private/downloads` starting `# QA_F07 renamed`, `**Model:** deepseek/deepseek-flash`, `## User` with `<sub>` timestamps. Reopen, `control-openhands browser click 'role=dialog >> role=radio[name="Standalone web page (.html)"]'`, `control-openhands browser click 'role=dialog >> role=checkbox[name="Include timestamps"]'`, export: the `.html` has `<title>QA_F07 renamed</title>` and no timestamps. Reopen once more: `control-openhands browser click 'testid=cancel-transcript-export'` closes it without a download (the file count in `<run>/private/downloads` is unchanged); `browser press Escape` and `testid=close-transcript-export-modal` close it too.
- **Download data (`F07.download-zip`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=download-trajectory-button'`, then `control-openhands browser downloads`. A `<ms>-conversation_<id>.zip` lands in `<run>/private/downloads`; `browser downloads --last 1 --inspect` lists `<id-without-dashes>/base_state.json` and `bash_events/`, and every LLM `api_key` in `base_state.json` is masked as asterisks (`**********`).
- **Usage (`F07.display-cost`).** Open the menu, `control-openhands browser click 'testid=conversation-name-context-menu >> testid=display-cost-button'`, `control-openhands browser wait 'testid=usage-panel'` and `control-openhands browser attr 'testid=right-panel-toggle' aria-pressed` (`true`). The panel shows Context Window, Token Usage and Total Cost (contents are F27).
@@ -86,7 +88,7 @@ Preconditions:
## Gotchas
-- The stop and delete confirmation buttons have no test ids at runtime (`BrandButton` takes `testId`, the modals pass `data-testid`) (#17915): select them by role inside `role=dialog`.
+- The stop and delete confirmation buttons carry `cancel-button` and `confirm-button` (#17915, fixed by #18151); role names inside `role=dialog` work too.
- `stop-button`, `show-skills-button`, `show-hooks-button` and `show-agent-tools-button` also exist in the composer, and `ellipsis-button` in sidebar rows: always scope to `testid=chat-pane-header` or `testid=conversation-name-context-menu`.
- Stop Runtime (status menu) and Stop Conversation (menu) both navigate to `/conversations`. On a finished local conversation the agent server keeps `finished`; use a running conversation to see `paused` and Start Runtime.
- Rename has no Escape-to-cancel: Escape leaves the input open and the next blur saves whatever was typed.
@@ -106,6 +108,6 @@ Preconditions:
- The overview's Automations section has no opener in the UI (the overview menu offers Workspace and Git sections only).
- The Hooks dialog shows the workspace's `hooks.json` as of its last read (its first open for the conversation after a page load, or Refresh), not the hooks the conversation started with: after the hooks steps above, `browser goto /conversations/<git-id>` (started before the file existed; its `hook_config` is `null`) and opening the dialog lists both events too. A reopen within 5 minutes of that read shows the same list and sends no request: click Refresh after editing `hooks.json`.
- A prompt- or agent-type hook shows its text under Commands (the `prompt`, or an agent hook's `system_prompt`). With the Hooks dialog closed (the hooks steps above end that way; otherwise `control-openhands browser click 'testid=close-hooks-modal'`), write `<run>/workspace/qa-f07-repo/.openhands/hooks.json` as `{"stop":[{"hooks":[{"type":"prompt","prompt":"QA_F07 prompt hook"}]}],"session_start":[{"hooks":[{"type":"agent","system_prompt":"QA_F07 agent hook"}]}]}`, run `control-openhands browser goto /conversations/<hooks-id>`, open the menu and `control-openhands browser click 'testid=conversation-name-context-menu >> testid=show-hooks-button'`, click `testid=hooks-modal >> testid=refresh-hooks`, then `role=button[name="Session Start 1 hook"]` and `role=button[name="Stop 1 hook"]` inside `testid=hooks-modal` (an event expanded before a Refresh stays expanded, and a second click collapses it, so start from a reopened dialog). In `control-openhands browser snapshot 'testid=hooks-modal'` they expand, in that order, to `Matcher * Commands QA_F07 agent hook Type: agent Timeout: 60s` and `Matcher * Commands QA_F07 prompt hook Type: prompt Timeout: 60s`, and `browser text 'testid=hooks-modal >> pre'` returns `QA_F07 agent hook` and `QA_F07 prompt hook` (`control-openhands browser screenshot --feature F07.hooks-modal --name prompt-agent-hooks`). An agent hook without `system_prompt` shows no box: with `{"session_start":[{"hooks":[{"type":"agent"}]}]}`, close, reopen and Refresh, `Session Start 1 hook` expands to `Matcher * Commands Type: agent Timeout: 60s` and `browser count 'testid=hooks-modal >> pre'` is `0`.
-- Expected: an agent hook shows its `system_prompt`, the text it runs with, even when it also carries a `prompt`. Known failure (reproduced 2026-10-09): with `{"session_start":[{"hooks":[{"type":"agent","prompt":"QA_F07 stray prompt","system_prompt":"QA_F07 agent system prompt"}]}]}` in `hooks.json`, close, reopen and Refresh the dialog, then expand `Session Start 1 hook`: it reads `Matcher * Commands QA_F07 stray prompt Type: agent Timeout: 60s`, and `QA_F07 agent system prompt` appears nowhere (`control-openhands browser count 'text=QA_F07 agent system prompt'` is `0`), although `control-openhands api POST /api/hooks --write --data '{"project_dir":"<run>/workspace/qa-f07-repo"}'` returns both fields (#18206). Write the recipe's two-event `hooks.json` (`pre_tool_use` and `stop`) back and Refresh afterwards.
+- An agent hook shows its `system_prompt`, the text it runs with, even when it also carries a `prompt`, and an agent hook with only a `prompt` shows no box (#18206, fixed by #18215). With `{"session_start":[{"hooks":[{"type":"agent","prompt":"QA_F07 stray prompt","system_prompt":"QA_F07 agent system prompt"}]}],"stop":[{"hooks":[{"type":"agent","prompt":"QA_F07 prompt only"}]}]}` in `hooks.json`, close, reopen and Refresh the dialog, then expand both events: `Session Start 1 hook` reads `Matcher * Commands QA_F07 agent system prompt Type: agent Timeout: 60s`, `Stop 1 hook` reads `Matcher * Commands Type: agent Timeout: 60s`, and `control-openhands browser count 'text=QA_F07 stray prompt'` and `browser count 'text=QA_F07 prompt only'` are `0` (`browser screenshot --feature F07.hooks-modal --name agent-hook-system-prompt`). Agent hooks in `hooks.json` really run on the next turn in that workspace (the session-start one shows a `Hook: SessionStart failed` row), so write the recipe's two-event `hooks.json` (`pre_tool_use` and `stop`) back and Refresh afterwards.
- With the Agent Server down, Refresh in the Hooks dialog shows its own fetch error (#18177): after `control-openhands service stop agent-server` on an open dialog, `refresh-hooks` and `browser wait 'testid=hooks-modal >> text=Failed to fetch hooks' --timeout 30000`, the dialog reads `Failed to fetch hooks. Please try again later.` under its explanation (`browser count 'testid=hooks-modal >> text=Failed to fetch skills'` is `0`). The 502s and the closed WebSocket that `browser errors --app-only` then lists are the outage itself. Run it last, or `restart` afterwards.
- After the user-message branch in `F07.branch-from-message`, Send stays disabled next to the prefilled text (`browser enabled 'testid=submit-button'` is `false`; Known failure #18202, see F05 Gotchas). Enter in the field sends it.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F08-workspace-files-and-changes.md b/.agents/skills/verify-openhands/references/feature-map/F08-workspace-files-and-changes.md
index e93d61af35..f4dcea6c51 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F08-workspace-files-and-changes.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F08-workspace-files-and-changes.md
@@ -29,6 +29,7 @@ Source: `src/components/features/conversation/conversation-tabs/`, `src/componen
- `F08.files-empty-workspace`: a workspace with no files shows `No files in workspace`.
- `F08.files-tree-toggle`: the list-tree button hides or shows the tree, and the choice persists per conversation. The tree is 224 px wide by default.
- `F08.files-tree-resize`: dragging the divider between the tree and the preview resizes the tree (160–480 px, default 224) and the width persists across reloads (`files-tab-tree-width` in localStorage).
+- `F08.files-discovery-settings`: the Files toolbar's `File discovery` button opens a dialog (excluded directory patterns, maximum files, symbolic links) whose Save applies to every conversation on that workspace and backend; an excluded directory leaves the tree, Restore defaults brings the default patterns back, an invalid limit disables Save.
- `F08.files-open-tabs`: the open-file strip, each tab with a close X. Closing the selected file selects a neighbour. Open files and the selection survive a reload and do not leak into other conversations.
- `F08.files-no-selection`: with no file selected the pane reads `Select a file to view its contents` and the Rich/Plain toggle is absent.
- `F08.files-rich-plain`: Rich highlights code, renders Markdown and shows HTML in an iframe sandboxed without scripts. Plain shows highlighted source. The mode persists across reloads.
@@ -54,6 +55,7 @@ Source: `src/components/features/conversation/conversation-tabs/`, `src/componen
- Drawer tab bar (`tabs-pane-header`): `conversation-tab-files`, `conversation-tab-commits`. The ellipsis (`tabs-pane-header >> testid=ellipsis-button`) opens the menu with `conversation-tabs-menu-open-<tab>` and `conversation-tabs-menu-pin-<tab>`.
- Direct URL `/conversations/<id>/panel` (the phone panel page at 1024 px or narrower; wider, it redirects to `/conversations/<id>` with the drawer open).
- Overview (`conversation-overview-toggle`) → Changes row (`conversation-overview-diffs`) → Commits tab with Uncommitted expanded.
+- Files toolbar: `File discovery` (`file-discovery-settings`, left of `files-tab-refresh`) opens the File discovery dialog.
- Workspace paths in agent messages written as inline code (`markdown-file-path-link`), plus path chips in file-editor tool cards (`file-path-chip`) → Files tab with that file selected.
- There is no command-menu entry or keyboard shortcut for the drawer or these tabs.
@@ -79,6 +81,7 @@ Preconditions:
- **Tree (`F08.files-tree`).** Run `control-openhands browser click 'testid=files-tab-refresh'` first (see Gotchas: files the agent made with bash are missing until a refresh). Then `control-openhands browser attr 'testid=file-tree-dir-src' aria-expanded` (`false`), `control-openhands browser click 'testid=file-tree-dir-src'` (now `true`) and `control-openhands browser click 'testid=file-tree-file-src/calc.py'`. `control-openhands browser text 'testid=file-content-viewer-highlighted'` shows the 4 lines `def add`…`return a - b`, and `testid=file-quick-row-item-src/calc.py` exists.
- **Tree toggle (`F08.files-tree-toggle`).** Run `control-openhands browser bbox 'testid=files-tab-tree'` (width `224`). Then `control-openhands browser click 'testid=file-quick-row-tree-toggle'`, `control-openhands browser attr 'testid=file-quick-row-tree-toggle' aria-label` (`Show file tree`) and `control-openhands browser count 'testid=files-tab-tree'` (`0`). Reload and reopen the drawer: the count is still `0`. Click the toggle again to restore (count `1`).
- **Tree resize (`F08.files-tree-resize`).** Run `control-openhands browser drag 'testid=files-tab-tree-resize-handle >> .cursor-ew-resize' --by 100,0`; `browser bbox 'testid=files-tab-tree'` is `324` wide and `control-openhands browser eval "localStorage.getItem('files-tab-tree-width')"` is `"324"`. `--by 500,0` clamps at `480`, `--by -600,0` at `160`, and the width survives `browser reload` plus the toggle. Restore with `--by 64,0` (`224`).
+- **File discovery (`F08.files-discovery-settings`).** With the drawer open on Files (open it with `right-panel-toggle` and click `testid=conversation-tab-files` only if Files is not already the active tab: clicking the active tab closes the drawer), run `control-openhands browser click 'testid=file-discovery-settings'` and `control-openhands browser snapshot 'role=dialog[name="File discovery"]'`: `Applies to this workspace on this backend, including other conversations using it.`, textbox `Excluded directories` (`.git`, `node_modules`, `.venv`, … `target`), spinbutton `Maximum files (0 for unlimited)` `2000`, checkbox `Include symbolic links to files`, buttons `Restore defaults`, `Cancel`, `Save`. With `D='role=dialog[name="File discovery"]'`: `control-openhands browser fill "$D >> role=spinbutton" '-1'` makes `control-openhands browser enabled "$D >> role=button[name=\"Save\"]"` `false`; `2000` makes it `true`. Run `control-openhands browser fill "$D >> role=textbox" "$(printf '.git\nnode_modules\nsrc')"` and click Save: the dialog closes, `control-openhands api GET /api/settings` holds `workspace_file_discovery` keyed by the workspace path with `excludedPatterns` `.git`, `node_modules`, `src`, and after `control-openhands browser click 'testid=files-tab-refresh'` `control-openhands browser count 'testid=file-tree-dir-src'` is `0`, also after `browser reload` and reopening the drawer (`browser screenshot --feature F08.files-discovery-settings --name dialog` before saving). Restore: reopen the dialog, click `Restore defaults` (the textbox returns to the default list; the dialog stays open), then `Save`; after Refresh the `file-tree-dir-src` count is `1`. `control-openhands browser press Escape` closes the dialog without saving. At phone width the dialog should fit the viewport. Known failure (reproduced 2026-10-13, #18396): on the 390 px `/panel` page `browser bbox 'role=dialog[name="File discovery"]'` is 520 px wide (x -65 to 455), so the title, the textbox and Save are cut off; `workspace-file-discovery-settings.tsx` (lines 55-58) uses `ModalBody width="md"` without `max-w-[90vw]`.
- **Rich/Plain (`F08.files-rich-plain`).** Click `testid=file-tree-file-qa-notes.md`; `testid=file-content-viewer-markdown` exists. Click `testid=file-tree-file-qa-page.html`, then run `control-openhands browser attr 'testid=file-content-viewer-iframe' sandbox` (`allow-same-origin`) and `control-openhands browser eval "document.querySelector('[data-testid=file-content-viewer-iframe]').contentDocument.body.innerText"` (`QA page`). Run `control-openhands browser click 'testid=files-tab-content-mode-toggle-option-plain'`; `control-openhands browser text 'testid=files-tab-content >> testid=file-content-viewer-highlighted'` reads `1<h1>QA page</h1>`. After `browser reload` and reopening, `control-openhands browser attr 'testid=files-tab-content-mode-toggle-option-plain' aria-checked` is `true`. Switch back with `testid=files-tab-content-mode-toggle-option-rich`.
- **Open in new window (`F08.files-open-new-window`).** With `qa-page.html` selected, run `control-openhands browser click 'testid=files-tab-open-in-new-window'` and `control-openhands browser tabs`. Page 1's URL is `/api/conversations/<id>/workspace/qa-page.html?v=<n>`. Run `control-openhands browser tab 1`, `control-openhands browser text 'body'` (`QA page`) and `control-openhands browser close-tab 1`.
- **Open-file strip (`F08.files-open-tabs`).** With several files opened, run `control-openhands browser attr 'testid=file-quick-row-item-qa-page.html' title` (the path). Select `qa-notes.md` with `control-openhands browser click 'testid=file-quick-row-item-qa-notes.md'`, then close it with `control-openhands browser click 'testid=file-quick-row-close-qa-notes.md'`. `control-openhands browser eval "[...document.querySelectorAll('[data-testid^=file-quick-row-item-]')].filter(e=>e.getAttribute('aria-selected')==='true').map(e=>e.dataset.testid)"` names the neighbour. Run `browser reload`, reopen the drawer and `control-openhands browser text 'testid=file-quick-row'`: the same files remain. Opening a different conversation (see Commits empty state) shows no quick-row items: `browser text 'testid=file-quick-row'` is empty. `browser testids` omits strip tabs scrolled out of view; count them with `browser eval "[...document.querySelectorAll('[data-testid^=file-quick-row-item-]')].length"`.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md b/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md
index fb21c1a3d2..b2e83f335b 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F09-settings-shell.md
@@ -28,7 +28,7 @@ Source: `src/routes.ts`, `src/routes/settings.tsx`, `src/routes/settings-index.t
- `F09.landmarks`: the settings screen exposes a single `main` landmark, on desktop pages and on the phone hub.
- `F09.phone-hub`: below 1024 px (phones and tablets), `/settings` stays put and shows a "Settings" heading, the eight links, the version card and the synced note, with no page header and no horizontal overflow.
- `F09.hub-resize-redirect`: widening the window to ≥1024 px while the phone hub is open replaces `/settings` with `/settings/agents`; narrowing on a sub-page keeps its URL and adds the Back chevron.
-- `F09.breakpoint-sweep`: at 767, 768, 820, 1023, 1024 and 1440 px, `/settings` is the hub below 1024 px and redirects to the desktop nav from 1024 px up, and the Application page's `main` is at least 340 px wide with no horizontal overflow.
+- `F09.breakpoint-sweep`: at 767, 768, 820, 1023, 1024 and 1440 px, `/settings` is the hub below 1024 px and redirects to the desktop nav from 1024 px up, and the Application page's `main` is at least 340 px wide with no horizontal overflow. Below 1024 px the settings `<main>` fills the column down to the viewport bottom and scrolls itself, so a popover inside it (the tablet selector) is not clipped on a short page (#18256).
- `F09.tablet-selector`: at 768–1023 px, a Settings selector above the subpage opens the same visible section links as the desktop sidebar, including Cloud links when available. Selecting a sibling navigates directly and closes it; Tab reaches links, Escape closes and returns focus, and outside clicks dismiss it. The current section uses a slash-boundary match, so a trailing slash does not hide the selector or its selected link. It is absent on the hub, phones and desktops.
- `F09.phone-back`: at phone width each settings page shows a Back chevron (label "Settings") in the top bar that returns to the hub.
- `F09.synced-badge`: the nav footer reads "These settings are synced from Local backend (<origin>)" for the active backend.
@@ -69,9 +69,9 @@ Preconditions:
- **Desktop nav (`F09.desktop-nav`).** On any settings page (`control-openhands browser goto /settings/agents`; Legacy URL ends on `/`) run `control-openhands browser snapshot 'testid=settings-navbar-desktop'`: links Agent, LLM, Model Router, Condenser, Agent Context, Verification, Application, Secrets (with `/url`s), then `button "Agent Canvas Version …"` and the synced text. Click each one, e.g. `control-openhands browser click 'testid=sidebar-settings-/settings/meta-llm'`, `control-openhands browser wait-url '/settings/meta-llm$'`, `control-openhands browser attr 'testid=sidebar-settings-/settings/meta-llm' aria-current` (`page`), and `control-openhands browser count 'testid=settings-navbar-desktop >> [aria-current="page"]'` (`1`). Pinned: `control-openhands browser goto /settings/app` (the only page taller than the viewport), `control-openhands browser bbox 'testid=settings-navbar-desktop'` (`y` 32), `control-openhands browser hover 'testid=settings-page-subtitle'`, `control-openhands browser scroll --by 1000`, then `control-openhands browser bbox 'testid=settings-page-subtitle'` (negative `y`, content scrolled) and `control-openhands browser bbox 'testid=settings-navbar-desktop'` (still `y` 32); `control-openhands browser screenshot --feature F09.desktop-nav --name scrolled` shows Git Settings on the right and the full nav on the left.
- **Page header (`F09.page-header`).** After each nav click, `control-openhands browser text 'testid=settings-screen >> header'` reads title + subline: Agent "Create and manage reusable agent setups.", LLM "Model, API key, and options for the agent.", Model Router "Meta-profiles that route each task to the right LLM profile.", Condenser "Summarize long chats to stay within context limits.", Agent Context "Let the agent keep notes and recall them in new conversations.", Verification "Confirmation prompts and security checks on actions.", Application "Language, theme, notifications, and Git identity.". On Secrets, `control-openhands browser count 'testid=settings-screen >> header >> h2'` is `0` (the page draws its own "Secrets" heading). Editor: on `/settings/agents` (`control-openhands browser goto /settings/agents`) run `control-openhands browser click 'testid=add-agent-profile'`; `control-openhands browser count 'testid=settings-page-subtitle'` is `0` and `control-openhands browser text 'testid=settings-screen >> h2'` is `Add agent profile`. `control-openhands browser click 'testid=back-to-agent-profiles'` brings the subtitle back (count `1`); opening the editor again and clicking `testid=sidebar-settings-/settings/condenser` also shows the Condenser subline.
- **Landmarks (`F09.landmarks`).** Run `control-openhands browser goto /settings/agents`, `control-openhands browser count 'role=main'` (`1`) and `control-openhands browser eval "document.querySelector('[data-testid=settings-screen]').tagName"` (`DIV`: the shell wrapper is not a landmark; the layout's own `<main>` is). `control-openhands browser goto /settings/app` and the same `count` is `1`. At phone width (`control-openhands browser viewport phone`, `control-openhands browser goto /settings`) the hub also counts `1`; return with `control-openhands browser viewport desktop`.
-- **Phone hub and Back (`F09.phone-hub`, `F09.phone-back`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings` (URL stays `/settings`), `control-openhands browser snapshot 'testid=settings-mobile-hub'` (heading "Settings", the eight links, the version button, the synced text), `control-openhands browser count 'testid=settings-page-subtitle'` (`0`), `control-openhands browser bbox 'testid=settings-mobile-hub'` (`pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F09.phone-hub --name hub`. Then `control-openhands browser click 'testid=settings-mobile-hub >> testid=sidebar-settings-/settings/condenser'`, `control-openhands browser wait-url '/settings/condenser$'`, `control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-label` (`Settings`), `control-openhands browser click 'testid=sidebar-mobile-back-button'`, `control-openhands browser wait-url '/settings$'` and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`). Drawer entry: `control-openhands browser goto /`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'`, `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=backend-selector-settings-link'`, `control-openhands browser wait-url '/settings$'`; `control-openhands browser visible 'testid=sidebar-mobile-drawer'` is `false` (the drawer closed). Return with `control-openhands browser viewport desktop`.
+- **Phone hub and Back (`F09.phone-hub`, `F09.phone-back`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings` (URL stays `/settings`), `control-openhands browser snapshot 'testid=settings-mobile-hub'` (heading "Settings", the eight links, the version button, the synced text), `control-openhands browser count 'testid=settings-page-subtitle'` (`0`), `control-openhands browser bbox 'testid=settings-mobile-hub'` (`pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F09.phone-hub --name hub`. Then `control-openhands browser click 'testid=settings-mobile-hub >> testid=sidebar-settings-/settings/condenser'`, `control-openhands browser wait-url '/settings/condenser$'`, `control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-label` (`Settings`), `control-openhands browser click 'testid=sidebar-mobile-back-button'`, `control-openhands browser wait-url '/settings$'` and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`). Drawer entry: `control-openhands browser goto /`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'`, `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=backend-selector-settings-link'`, `control-openhands browser wait-url '/settings$'` and `control-openhands browser wait 'testid=sidebar-mobile-drawer' --state detached --timeout 5000` pass (the drawer closes as it animates out; an immediate `visible` can still read `true`). Return with `control-openhands browser viewport desktop`.
- **Resize from the hub (`F09.hub-resize-redirect`).** Run `control-openhands browser goto /`, `control-openhands browser viewport phone`, `control-openhands browser goto /settings` and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`). Then `control-openhands browser viewport desktop` and `control-openhands browser wait-url '/settings/agents$'`: the hub is gone (`count 'testid=settings-mobile-hub'` is `0`) and `control-openhands browser back` lands on `/` (the redirect replaced `/settings`). Reverse: `control-openhands browser goto /settings/condenser`, `control-openhands browser viewport phone`, `control-openhands browser url` (still `/settings/condenser`) and `control-openhands browser visible 'testid=sidebar-mobile-back-button'` (`true`). Tablets get the hub too, and the boundary is 1024 px: run `control-openhands browser viewport tablet` (820 px), `control-openhands browser goto /settings` (URL stays `/settings`) and `control-openhands browser visible 'testid=settings-mobile-hub'` (`true`); then `control-openhands browser viewport 1023x900`, `control-openhands browser goto /settings` and the same `visible` (`true`); then `control-openhands browser viewport 1024x900` and `control-openhands browser wait-url '/settings/agents$'` (`browser visible 'testid=settings-navbar-desktop'` is `true`). Return with `control-openhands browser viewport desktop`.
-- **Widths around the breakpoint (`F09.breakpoint-sweep`).** For each width `W` in `767`, `768`, `820`, `1023`, `1024`, `1440` run `control-openhands browser viewport Wx1024` and `control-openhands browser goto /settings`. Below 1024 px the URL stays `/settings`, `control-openhands browser visible 'testid=settings-mobile-hub'` is `true` and `control-openhands browser bbox 'testid=settings-mobile-hub'` has `pageHorizontalOverflow` `false` (725, 426, 478 and 681 px wide); from 1024 px up `control-openhands browser wait-url '/settings/agents$'` passes and `control-openhands browser visible 'testid=settings-navbar-desktop'` is `true`. Then `control-openhands browser goto /settings/app` and `control-openhands browser bbox 'role=main'`: `width` is at least 340 (767, 468, 520, 723, 424 and 840 today: full width at 767 px, `W − 300` beside the rail up to 1023 px, `W − 600` beside the rail and the settings nav from 1024 px), `scrollWidth` equals `clientWidth` and `pageHorizontalOverflow` is `false` (`insideViewport` is `false` only because the page is taller than 1024 px). Take `control-openhands browser screenshot --feature F09.breakpoint-sweep --name app-767` and `--name app-1024`. Finish with `control-openhands browser viewport desktop`.
+- **Widths around the breakpoint (`F09.breakpoint-sweep`).** For each width `W` in `767`, `768`, `820`, `1023`, `1024`, `1440` run `control-openhands browser viewport Wx1024` and `control-openhands browser goto /settings`. Below 1024 px the URL stays `/settings`, `control-openhands browser visible 'testid=settings-mobile-hub'` is `true` and `control-openhands browser bbox 'testid=settings-mobile-hub'` has `pageHorizontalOverflow` `false` (725, 426, 478 and 681 px wide); from 1024 px up `control-openhands browser wait-url '/settings/agents$'` passes and `control-openhands browser visible 'testid=settings-navbar-desktop'` is `true`. Then `control-openhands browser goto /settings/app` and `control-openhands browser bbox 'role=main'`: `width` is at least 340 (767, 468, 520, 723, 424 and 840 today: full width at 767 px, `W − 300` beside the rail up to 1023 px, `W − 600` beside the rail and the settings nav from 1024 px), `scrollWidth` equals `clientWidth` and `pageHorizontalOverflow` is `false` (`insideViewport` is `false` only because the page is taller than 1024 px). Take `control-openhands browser screenshot --feature F09.breakpoint-sweep --name app-767` and `--name app-1024`. Height: at `390x844`, `767x1024`, `820x1180` and `1023x900`, on `/settings/secrets` (a short page) `control-openhands browser eval "Math.round(document.querySelector('[data-testid=settings-screen] main').getBoundingClientRect().bottom)+'/'+innerHeight"` reads the viewport height twice (`1180/1180` at 820x1180), and on `/settings/app` `control-openhands browser eval "(()=>{const m=document.querySelector('[data-testid=settings-screen] main');return m.scrollHeight>m.clientHeight})()"` is `true` (the `<main>` scrolls, not an outer column). At 1440x1000 the desktop layout is unchanged (the Secrets `<main>` ends at its content). Finish with `control-openhands browser viewport desktop`.
- **Tablet selector (`F09.tablet-selector`).** Run `control-openhands browser viewport tablet`, `control-openhands browser goto /settings/app`, then `control-openhands browser click 'testid=settings-compact-navigation >> role=button'`. `control-openhands browser snapshot 'testid=settings-compact-navigation >> role=navigation'` lists every visible settings destination with Application current. Select `control-openhands browser click 'testid=settings-compact-navigation >> testid=sidebar-settings-/settings/secrets' --expect-url '/settings/secrets$'`; the selector now shows Secrets and its button has `aria-expanded=false`. Open again, `browser press Tab`, `browser press Escape`: `browser eval "document.activeElement.getAttribute('aria-expanded')"` is `false` (focus returned to the trigger). Capture `browser screenshot --feature F09.tablet-selector --name settings`. Repeat at 768 and 1023 px; at 767 and 1024 px `browser count 'testid=settings-compact-navigation'` is `0`. On `/settings` below 1024 px the hub remains the list. At tablet width, visit `/settings/llm/`: the trigger reads `Settings: LLM`, the page heading is LLM, and opening the selector marks LLM current. A nested URL such as `/settings/llm/example` is not a registered page and shows the global Not Found screen (F09.unknown-subpath).
- **Synced badge (`F09.synced-badge`).** Run `control-openhands browser text 'testid=backend-synced-settings-badge'` and `control-openhands browser eval 'location.origin'`. The text is `These settings are synced from Local backend (<origin>)` with the same origin.
- **Cloud links (`F09.cloud-links`).** On a local backend `control-openhands browser count 'testid=settings-integrations-link'` and `control-openhands browser count 'testid=settings-cloud-link'` are both `0`. Positive case (blocked without a Cloud account): with a Cloud backend active both exist; "All Cloud Settings" points at `<cloud host>/settings?org=<org id>` and opens in a new tab unless the canvas is locked to Cloud.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F10-llm-profiles.md b/.agents/skills/verify-openhands/references/feature-map/F10-llm-profiles.md
index 1779dd5138..5e9a65d3a1 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F10-llm-profiles.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F10-llm-profiles.md
@@ -9,13 +9,13 @@ call, renames, duplicates, deletes and sets one as **Default**, and bulk-adds
models from a provider. The Default profile is the model new conversations run
on. Provider connections themselves (add, edit, delete) are F11.
-Source: `src/routes/llm-settings.tsx`, `src/components/features/settings/llm-profiles/`, `src/components/shared/modals/settings/model-selector.tsx`, `src/components/features/settings/settings-input.tsx`, `src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx`, `src/components/features/settings/sdk-settings/`, `src/api/profiles-service/profiles-service.api.ts`.
+Source: `src/routes/llm-settings.tsx`, `src/components/features/settings/llm-profiles/`, `src/components/shared/modals/settings/model-selector.tsx`, `src/components/features/settings/settings-input.tsx`, `src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx`, `src/components/features/settings/sdk-settings/`, `src/constants/llm-provider-connection.ts`, `src/api/profiles-service/profiles-service.api.ts`.
## Sub-features
- `F10.list`: the "Available Profiles" list shows each row's name, model, a `Default` badge on the active profile and a `...` menu, sorted by name; reachable from the sidebar, the direct URL and the command menu.
- `F10.list-empty`: with no profiles the list reads `No profiles saved yet. Add a profile to save your LLM configurations.` and both Add buttons stay available.
-- `F10.list-states`: a spinner shows while profiles load; a load failure shows `Failed to load profiles`.
+- `F10.list-states`: a spinner shows while profiles load; a load failure shows `Failed to load profiles` in the theme's error colour.
- `F10.list-grouped`: once any profile links to a provider connection, rows group under the connection's name, with unlinked rows last under `Not linked`; with no linked rows the list is flat again.
- `F10.broken-link`: a profile whose linked connection no longer exists shows a warning `Broken link` badge whose tooltip says to edit the profile to re-link it; its editor offers the orphaned id in the Provider connection selector so it can be cleared.
- `F10.actions-menu`: the row menu offers Edit, Rename, Duplicate, Set as default (disabled on the Default row) and Delete; it focuses Edit on open (mouse or Enter), arrows cycle over the enabled items (skipping a disabled Set as default), and Escape, Tab or an outside click close it.
@@ -29,7 +29,7 @@ Source: `src/routes/llm-settings.tsx`, `src/components/features/settings/llm-pro
- `F10.create-prefill`: a new editor prefills the backend default model with a blank key, base URL and connection; the other LLM options it shows come from the agent's current LLM settings, i.e. the last applied Default profile (the editor opens on the tab they need), and Save stores what the form shows.
- `F10.api-key-help`: under the API key field (Basic and Advanced), `Don't know your API key? Click here for instructions` opens the OpenHands docs on getting an API key in a new tab.
- `F10.name-autofill`: the Profile Name is auto-filled from the chosen model and follows later model changes until the user types a name; clearing the field resumes it.
-- `F10.name-validation`: a name that breaks the rule (letter or digit first; letters, digits, `.`, `_`, `-`; max 64) disables Save and turns the rule text red; a name that already exists also disables Save.
+- `F10.name-validation`: a name that breaks the rule (letter or digit first; letters, digits, `.`, `_`, `-`; max 64) disables Save and turns the rule text red; a name that already exists marks the field invalid, shows a taken-name message about LLM profiles and disables Save (Edit accepts the profile's own name).
- `F10.create-validation`: a Save whose validation call fails toasts the provider error and keeps the editor open with nothing saved.
- `F10.custom-model`: the Advanced tab takes a free-text model and Base URL; an empty model is refused with `Model is required`.
- `F10.model-picker`: the Basic provider and model comboboxes group options as Verified Models and Other Models; changing provider clears the model; the OpenHands provider shows account and key help.
@@ -65,7 +65,7 @@ Preconditions:
- No profile or connection named `QA_*`, `deepseek-chat` or `deepseek-v3` exists (`control-openhands api GET /api/profiles`, `control-openhands api GET /api/llm/provider-connections`).
- Select a row by exact name with the CSS form `'[data-testid=profile-row]:has([title="<name>"])'`; `has-text=QA_pro` also matches `QA_pro-copy`.
- Read toasts with `control-openhands browser wait-text '<text>'` (or `browser toasts`) right after the click; they disappear after a few seconds.
-- Blocked here: completing `F10.subscription` sign-in (needs a ChatGPT Plus/Pro account), `F10.cloud-readonly` (needs a Cloud org member account), `F10.cloud-provider-pagination` (needs a Cloud organization backend where the user can manage profiles), `F10.schema-unavailable` (needs an agent server without the schema endpoints, for example an older `launch --sdk-ref`), and the `F10.list-states` error (needs `/api/profiles` to fail while the rest of the agent server answers).
+- Blocked here: completing `F10.subscription` sign-in (needs a ChatGPT Plus/Pro account), `F10.cloud-readonly` (needs a Cloud org member account), `F10.cloud-provider-pagination` (needs a Cloud organization backend where the user can manage profiles), and `F10.schema-unavailable` (needs an agent server without the schema endpoints, for example an older `launch --sdk-ref`). The `F10.list-states` error is arranged by the Load error bullet (a linked profile plus this run's corrupted connections store).
- **Empty list (`F10.list-empty`).** On a fresh run, navigate from the sidebar: `control-openhands browser click 'testid=backend-selector-settings-link' --expect-url '/settings'`, `control-openhands browser click 'testid=sidebar-settings-/settings/llm' --expect-url '/settings/llm'`, then `control-openhands browser text 'testid=profiles-empty'`. The text is `No profiles saved yet. Add a profile to save your LLM configurations.` and `control-openhands browser testids main` lists `add-llm-profile`, `add-models-from-provider` and `profiles-empty`.
- **Open the editor (`F10.create`).** Run `control-openhands browser click 'testid=add-llm-profile'`. `control-openhands browser text 'testid=profile-editor-title'` is `Add LLM Profile`, `control-openhands browser text 'testid=profile-editor-description'` is `Configure your LLM settings below, then click Save to create this profile.`, and the form opens on the Basic tab with provider `OpenAI` and model `gpt-5.6-sol` (`browser value 'testid=llm-provider-input'`, `browser value 'testid=llm-model-input'`).
@@ -75,7 +75,7 @@ Preconditions:
- **Cloud provider pagination (`F10.cloud-provider-pagination`).** Blocked: needs a Cloud organization backend where the user can manage profiles (local backends serve the whole list in one `GET /api/llm/providers`). There, the Basic provider list comes from `providers/search` one page at a time (`control-openhands browser network --filter providers/search` lists one request per page, the later ones with a `page_id`), and `xai` and `openrouter`, which sort past the first page, are offered and pick like any other provider. Record `control-openhands evidence add --feature F10.cloud-provider-pagination --result blocked ...` naming the Cloud account.
- **Create the first profile (`F10.create`, `F10.name-autofill`).** In a fresh editor pick deepseek as above, then `control-openhands browser click 'testid=llm-model-input'` and `control-openhands browser click 'testid=model-item-deepseek-flash'`. `control-openhands browser value 'testid=profile-name-input'` now follows the model: `deepseek-flash` (right after the provider pick, while the model is still empty, it still reads `gpt-5.6-sol`). Run `control-openhands browser fill 'testid=profile-name-input' QA_flash`, `control-openhands browser fill 'testid=llm-api-key-input' --value-file <key file>` (or `--value-env DEEPSEEK_API_KEY`), `control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 4000` and `control-openhands browser wait-text 'Profile "QA_flash" created' --timeout 60000`. The observed button states are `Save`, `Validating...`, `Saving...`, then the editor closes. After `control-openhands browser reload`, `control-openhands browser text '[data-testid=profile-row]:has([title="QA_flash"])'` reads `QA_flash`, `deepseek/deepseek-flash`, `Default`, and `control-openhands api GET /api/profiles` has `active_profile` `QA_flash`.
- **A typed name sticks; a cleared one follows again (`F10.name-autofill`).** In a fresh editor (`control-openhands browser click 'testid=add-llm-profile'`) run `control-openhands browser fill 'testid=profile-name-input' QA_typed`, then pick deepseek as above, `control-openhands browser click 'testid=llm-model-input'` and `control-openhands browser click 'role=option[name="deepseek-v4-pro"][exact]'`; `browser value 'testid=profile-name-input'` stays `QA_typed`. Run `control-openhands browser fill 'testid=profile-name-input' ''`, then `browser click 'testid=llm-model-input'` and `browser click 'testid=model-item-deepseek-flash'`: the name is `deepseek-flash`; pick `role=option[name="deepseek-v4-pro"][exact]` again and it is `deepseek-v4-pro`.
-- **Name rules (`F10.name-validation`).** In the editor run `control-openhands browser fill 'testid=profile-name-input' 'QA bad'`; `control-openhands browser enabled 'testid=save-profile-btn'` is `false` and `control-openhands browser attr 'testid=profile-name-input' aria-invalid` is `true` (the same for `-QA` and a 65-character name), and the rule text under the field turns to the theme's danger colour: `control-openhands browser eval "(()=>{const i=document.querySelector('[data-testid=profile-name-input]');return getComputedStyle(document.getElementById(i.getAttribute('aria-describedby'))).color+' '+getComputedStyle(document.body).getPropertyValue('--oh-color-danger')})()"` reads `rgb(231, 106, 94) #e76a5e` on OpenHands-Neutral and `rgb(209, 52, 56) #D13438` on Light+ (`F16.color-theme`) (#18199); a valid name turns it back to the muted grey. An existing name (`QA_flash`) also gives `enabled` `false`, but `aria-invalid` stays `false` and nothing says why (see Gotchas). `QA_flash2` gives `true`.
+- **Name rules (`F10.name-validation`).** In the editor run `control-openhands browser fill 'testid=profile-name-input' 'QA bad'`; `control-openhands browser enabled 'testid=save-profile-btn'` is `false` and `control-openhands browser attr 'testid=profile-name-input' aria-invalid` is `true` (the same for `-QA` and a 65-character name), and the rule text under the field turns to the theme's danger colour: `control-openhands browser eval "(()=>{const i=document.querySelector('[data-testid=profile-name-input]');return getComputedStyle(document.getElementById(i.getAttribute('aria-describedby'))).color+' '+getComputedStyle(document.body).getPropertyValue('--oh-color-danger')})()"` reads `rgb(231, 106, 94) #e76a5e` on OpenHands-Neutral and `rgb(209, 52, 56) #D13438` on Light+ (`F16.color-theme`) (#18199); a valid name turns it back to the muted grey. An existing name (`QA_flash`) also gives `enabled` `false` and `aria-invalid` `true`, with a role=alert message under the field in the danger colour while the rule text stays grey. Expected: the message says an LLM profile with that name exists. Known failure (reproduced 2026-10-13, #18383): it reads `A meta-profile with this name already exists. Choose a different name, or edit the existing one.`, the Model Router's wording reused by #18144 (`browser eval "[...document.querySelectorAll('[role=alert]')].map(a=>a.innerText+' | '+getComputedStyle(a).color)"`; screenshot `--feature F10.name-validation --name duplicate-neutral`). `QA_flash2` gives `true` and no message.
- **Validation failure (`F10.create-validation`).** In a fresh editor choose deepseek / `model-item-deepseek-flash`, fill `profile-name-input` with `QA_nokey`, leave the API key empty and run `control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 3000` (states `Save`, `Validating...`, `Save`). `control-openhands browser wait-text 'Authentication Fails'` finds the toast `litellm.AuthenticationError: AuthenticationError: DeepseekException - Authentication Fails (...)`; `browser text 'testid=profile-editor-title'` is still `Add LLM Profile` and `control-openhands api GET /api/profiles` has no `QA_nokey`.
- **Custom model (`F10.custom-model`).** In that editor run `control-openhands browser click 'testid=sdk-section-advanced-toggle'`. `browser value 'testid=llm-custom-model-input'` carries the Basic choice (`deepseek/deepseek-flash`; placeholder `openai/gpt-5.6-sol`), and `browser attr 'testid=base-url-input' placeholder` is `https://api.openai.com`. Run `control-openhands browser fill 'testid=llm-custom-model-input' ''`, `control-openhands browser fill 'testid=profile-name-input' QA_adv`, `control-openhands browser click 'testid=save-profile-btn'` and `control-openhands browser wait-text 'Model is required'`. Then `control-openhands browser fill 'testid=llm-custom-model-input' deepseek/deepseek-flash`, `control-openhands browser fill 'testid=base-url-input' https://api.deepseek.com`, fill the key as in Create, Save, and `control-openhands browser wait-text 'Profile "QA_adv" created' --timeout 60000`. `api GET /api/profiles` shows `QA_adv` with `base_url` `https://api.deepseek.com`.
- **Second profile from a verified model.** Repeat Create choosing `control-openhands browser click 'role=option[name="deepseek-v4-pro"][exact]'` (verified models have no `model-item-*` test ID) and the name `QA_pro`. The toast reads `Profile "QA_pro" created`; the row `QA_pro deepseek/deepseek-v4-pro` has no badge.
@@ -84,21 +84,21 @@ Preconditions:
- **Duplicate (`F10.duplicate`).** From the `QA_pro` row menu click `testid=profile-actions-menu >> testid=profile-duplicate` and `control-openhands browser wait-text 'Profile duplicated as "QA_pro-copy"'`; repeat on `QA_pro` for `Profile duplicated as "QA_pro-copy-1"`, and on `QA_pro-copy` for `Profile duplicated as "QA_pro-copy-copy"`. After a reload `control-openhands browser text 'testid=profile-row >> has-text=QA_pro-copy-1'` reads `QA_pro-copy-1 deepseek/deepseek-v4-pro`, the badge stays on `QA_pro`, and `api GET /api/profiles` has `api_key_set: true` on every copy.
- **Rename (`F10.rename`).** Open the `QA_pro-copy-copy` row menu and click `testid=profile-actions-menu >> testid=profile-rename`. `control-openhands browser value 'testid=rename-profile-input'` is `QA_pro-copy-copy` and `browser eval "document.activeElement.dataset.testid"` is `rename-profile-input`. `control-openhands browser fill 'testid=rename-profile-input' '-bad'` makes `control-openhands browser enabled 'role=dialog[name="Rename Profile"] >> role=button[name="Rename"]'` `false` and `control-openhands browser attr 'testid=rename-profile-rule' class` contains `text-danger` (the theme danger colour, #18199). Filling the old name and clicking Rename closes the modal with no toast (`browser count 'testid=rename-profile-modal'` is `0`); `control-openhands browser click 'role=dialog[name="Rename Profile"] >> role=button[name="Cancel"]'` also closes it. To rename, reopen, fill `QA_renamed`, `control-openhands browser press Enter`, `control-openhands browser wait-text 'Profile renamed to "QA_renamed"'`, reload, and the count of `'[data-testid=profile-row]:has([title="QA_renamed"])'` is `1` while the old name's is `0`. Renaming the Default row (`QA_pro` → `QA_pro2`, submit with `testid=rename-profile-submit`) keeps its badge (`browser text '[data-testid=profile-row]:has([data-testid=profile-active-badge])'` reads `QA_pro2 … Default`) and `active_profile` follows.
- **Rename onto an existing name (`F10.rename-conflict`).** The Rename step above already renamed `QA_pro-copy-copy` and `QA_pro`, so use the remaining fixtures: open the `QA_pro-copy` row menu, click `testid=profile-actions-menu >> testid=profile-rename`, fill `testid=rename-profile-input` with `QA_pro2` and click `testid=rename-profile-submit`. The modal stays open (`count 'testid=rename-profile-modal'` is `1`), `control-openhands browser toasts` has the server's message `Profile 'QA_pro2' already exists` (no `HTTP request failed` prefix, no JSON), and `browser screenshot --feature F10.rename-conflict --name toast` shows that toast above the open modal. Close it with `control-openhands browser click 'role=dialog[name="Rename Profile"] >> role=button[name="Cancel"]'`.
-- **Edit (`F10.edit`).** Open the `QA_renamed` row menu and click `testid=profile-actions-menu >> testid=profile-edit`. `browser text 'testid=profile-editor-title'` is `Edit LLM Profile`, `browser text 'testid=profile-editor-description'` is `Editing profile "QA_renamed" - save to apply changes`, `browser attr 'testid=llm-api-key-input' placeholder` is `<hidden>`, `browser count 'testid=set-indicator'` is `1` and `browser enabled 'testid=save-profile-btn'` is `false` (screenshot `--feature F10.edit --name loaded`). Run `control-openhands browser click 'testid=llm-model-input'`, `control-openhands browser click 'testid=model-item-deepseek-flash'` (Save turns `true`), `control-openhands browser fill 'testid=profile-name-input' QA_edited`, Save, and `control-openhands browser wait-text 'Profile "QA_edited" updated' --timeout 60000`. After a reload `browser text '[data-testid=profile-row]:has([title="QA_edited"])'` reads `QA_edited deepseek/deepseek-flash` and `QA_renamed` is gone. The save passed validation without retyping the key, which proves the stored key was kept.
+- **Edit (`F10.edit`).** Open the `QA_renamed` row menu and click `testid=profile-actions-menu >> testid=profile-edit`. `browser text 'testid=profile-editor-title'` is `Edit LLM Profile`, `browser text 'testid=profile-editor-description'` is `Editing profile "QA_renamed" - save to apply changes`, `browser attr 'testid=llm-api-key-input' placeholder` is `<hidden>`, `browser count 'testid=set-indicator'` is `1` and `browser enabled 'testid=save-profile-btn'` is `false` (screenshot `--feature F10.edit --name loaded`). Filling another profile's name (`QA_flash`) sets `aria-invalid` `true` with the taken-name message of `F10.name-validation` and keeps Save disabled; refilling `QA_renamed` clears it. Run `control-openhands browser click 'testid=llm-model-input'`, `control-openhands browser click 'testid=model-item-deepseek-flash'` (Save turns `true`), `control-openhands browser fill 'testid=profile-name-input' QA_edited`, Save, and `control-openhands browser wait-text 'Profile "QA_edited" updated' --timeout 60000`. After a reload `browser text '[data-testid=profile-row]:has([title="QA_edited"])'` reads `QA_edited deepseek/deepseek-flash` and `QA_renamed` is gone. The save passed validation without retyping the key, which proves the stored key was kept.
- **Basic re-save keeps a hidden Base URL (`F10.basic-save-keeps-base-url`).** `QA_adv` carries `base_url` `https://api.deepseek.com` (Custom model above). Open its row menu, click `testid=profile-actions-menu >> testid=profile-edit`, then `control-openhands browser click 'testid=sdk-section-advanced-toggle'`: `control-openhands browser value 'testid=base-url-input'` is `https://api.deepseek.com`. Run `control-openhands browser click 'testid=sdk-section-basic-toggle'`: `control-openhands browser count 'testid=base-url-input'` is `0` (the view hides it), `control-openhands browser value 'testid=llm-model-input'` is `deepseek-flash` and `control-openhands browser enabled 'testid=save-profile-btn'` is `false` (`control-openhands browser screenshot --feature F10.basic-save-keeps-base-url --name basic-view`). Without touching the model, run `control-openhands browser fill 'testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY` (Save turns `true`), `control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 4000` (`Save`, `Validating...`, `Saving...`) and `control-openhands browser wait-text 'Profile "QA_adv" updated' --timeout 60000`. Then `control-openhands api GET /api/profiles/QA_adv --pick config.base_url` is still `https://api.deepseek.com` and `control-openhands api GET /api/profiles/QA_adv --pick config.model` is `deepseek/deepseek-flash`; after `control-openhands browser reload` the same GETs agree. Without a key, arrange `QA_DUMMY_KEY=qa control-openhands llm set --profile QA_base --model deepseek/deepseek-chat --api-key-env QA_DUMMY_KEY --base-url https://api.deepseek.com --no-validate --no-activate` (it prints `activated` `false` and `control-openhands api GET /api/profiles --pick active_profile` is unchanged: the Default stays where it is and the editors below inherit it, as long as some profile is Default; on a run where `QA_base` is the only profile the page makes it Default at the next load, see Gotchas) and `control-openhands browser reload`, then drive the same steps on `QA_base`'s row with its own readbacks: its editor opens on Advanced (the Base URL is a non-default value) with `control-openhands browser value 'testid=base-url-input'` `https://api.deepseek.com`, Basic hides it (`count` `0`), `control-openhands browser value 'testid=llm-model-input'` is `deepseek-chat` and `control-openhands browser enabled 'testid=save-profile-btn'` is `false`; fill the key with `QA_DUMMY_KEY=qa-dummy-key control-openhands browser fill 'testid=llm-api-key-input' --value-env QA_DUMMY_KEY` (Save turns `true`) and Save: the observed states are `Save`, `Validating...` (`[disabled] [busy]`), `Save` within a second, `control-openhands browser toasts` has the provider's message `litellm.BadRequestError: DeepseekException - {"error":{"message":"Authentication Fails, Your api key: ****-key is invalid …`, `browser text 'testid=profile-editor-title'` is still `Edit LLM Profile`, `control-openhands api GET /api/profiles/QA_base --pick config.base_url` is still `https://api.deepseek.com` and `--pick config.model` is `deepseek/deepseek-chat`; record `blocked` with `DEEPSEEK_API_KEY` as the prerequisite, leave with `control-openhands browser click 'testid=cancel-profile-btn'` and remove the arranged profile with `control-openhands api DELETE /api/profiles/QA_base --write` (arrange, not proof).
- **Leave without saving (`F10.editor-discard`).** Edit `QA_adv`, `control-openhands browser click 'testid=sdk-section-all-toggle'`, `control-openhands browser fill 'testid=sdk-settings-llm.top_p' 0.5` (Save turns enabled), then `control-openhands browser click 'testid=back-to-profiles'`. The list returns at once (`browser count 'testid=add-llm-profile'` is `1`) with no prompt (`control-openhands browser events --kinds dialog` is empty), and reopening Edit → All shows `top_p` empty. `testid=cancel-profile-btn` behaves the same.
- **Schema field validation and re-apply (`F10.schema-validation`, `F10.edit-default-reapply`).** Edit the Default profile and run `control-openhands browser click 'testid=sdk-section-all-toggle'`. `control-openhands browser fill 'testid=sdk-settings-llm.temperature' 5`, Save, then `control-openhands browser wait-text 'must be at most 2'` (toast `Temperature must be at most 2`). Clear it, fill `testid=sdk-settings-llm.top_p` with `3`: `Top P must be at most 1`. Clear it, fill `testid=sdk-settings-llm.extra_headers` with `{bad`: `Invalid JSON for Extra Headers`. Clear that, fill temperature `0.3`, Save, and `wait-text 'Profile "<name>" updated'`. `control-openhands api GET /api/settings` then has `agent_settings.llm.temperature` `0.3`, and reopening Edit → All shows `0.3`.
-- **New profile prefill (`F10.create-prefill`).** With that Default (temperature `0.3`) run `control-openhands browser click 'testid=add-llm-profile'`. The editor opens on All (`browser eval "[...document.querySelectorAll('[role=tab]')].map(t=>t.innerText+':'+t.getAttribute('aria-selected')).join(',')"` is `Basic:false,Advanced:false,All:true`), `browser value 'testid=llm-custom-model-input'` is the backend default `openai/gpt-5.6-sol`, and `browser value 'testid=sdk-settings-llm.temperature'` is `0.3`, inherited from the Default. Run `control-openhands browser fill 'testid=llm-custom-model-input' deepseek/deepseek-flash`, `browser fill 'testid=profile-name-input' QA_inherit`, fill the key as in Create, Save and `wait-text 'Profile "QA_inherit" created' --timeout 60000`. Expected: the saved profile has the temperature the form showed. Actual today: `control-openhands api GET /api/profiles/QA_inherit` has `config.temperature` `null`, and after `browser reload` Edit `QA_inherit` → All shows the temperature empty (`fail`; the create path saves dirty fields only, so the shown inherited values are dropped). Screenshot `--feature F10.create-prefill --name edit-after-create`.
+- **New profile prefill (`F10.create-prefill`).** With that Default (temperature `0.3`) run `control-openhands browser click 'testid=add-llm-profile'`. The editor opens on All (`browser eval "[...document.querySelectorAll('[role=tab]')].map(t=>t.innerText+':'+t.getAttribute('aria-selected')).join(',')"` is `Basic:false,Advanced:false,All:true`), `browser value 'testid=llm-custom-model-input'` is the backend default `openai/gpt-5.6-sol`, and `browser value 'testid=sdk-settings-llm.temperature'` is `0.3`, inherited from the Default. Run `control-openhands browser fill 'testid=llm-custom-model-input' deepseek/deepseek-flash`, `browser fill 'testid=profile-name-input' QA_inherit`, fill the key as in Create, Save and `wait-text 'Profile "QA_inherit" created' --timeout 60000`. Expected: the saved profile has the temperature the form showed. Known failure (reproduced 2026-10-13, #17955): `control-openhands api GET /api/profiles/QA_inherit` has `config.temperature` `null`, and after `browser reload` Edit `QA_inherit` → All shows the temperature empty (the create path merges only dirty fields over an empty base, so the shown inherited values are dropped). Screenshot `--feature F10.create-prefill --name edit-after-create`.
- **Link to a provider connection (`F10.connection-link`, `F10.list-grouped`).** Arrange a connection through the F11 form: `control-openhands browser click 'testid=add-provider-connection'`, `control-openhands browser fill 'testid=provider-connection-name-input' QA_ds_conn`, `control-openhands browser click 'testid=provider-connection-provider-input'`, `control-openhands browser fill 'testid=provider-connection-provider-input' deepseek`, `control-openhands browser click 'testid=provider-item-deepseek'`, `control-openhands browser fill 'testid=provider-connection-api-key-input' --value-file <key file>`, `control-openhands browser click 'testid=provider-connection-submit'` and `control-openhands browser wait-text 'Connection "QA_ds_conn" created'`. Edit `QA_adv`, click `testid=sdk-section-basic-toggle`, run `control-openhands browser click 'testid=llm-provider-connection-input'` (options `None`, `QA_ds_conn`) and `control-openhands browser click 'role=option[name="QA_ds_conn"]'`; `browser count 'testid=llm-api-key-input'` is `0`, and on the Advanced tab `browser count 'testid=base-url-input'` is `0`. Picking `role=option[name="None"]` brings the key field back (`1`). Re-select `QA_ds_conn`, then `control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 3000`: states `Save`, `Saving...` (no `Validating...`), and `wait-text 'Profile "QA_adv" updated'`. After a reload `control-openhands browser eval "[...document.querySelectorAll('[data-testid=profile-group-header]')].map(e=>e.innerText).join(' | ')"` is `QA_DS_CONN | NOT LINKED` (CSS upper-case) and `control-openhands browser count 'div:has(> [data-testid=profile-group-header]:text-is("QA_ds_conn")) [data-testid=profile-row]:has([title="QA_adv"])'` is `1` (screenshot `--feature F10.list-grouped --name grouped`).
- **Add models from a provider (`F10.add-models`).** Run `control-openhands browser click 'testid=add-models-from-provider'`; `browser enabled 'testid=add-models-submit'` is `false`. Keyless: `control-openhands browser select 'testid=add-models-provider' moonshot` and `control-openhands browser wait 'testid=add-models-select-all'`; `browser text 'testid=add-models-keyless-note'` is `No connection — profiles will need a key added later`, rows start unchecked (`Add 0 profiles`), and `control-openhands browser check 'testid=add-models-select-all'` makes `browser text 'testid=add-models-submit'` read `Add 12 profiles`; uncheck it again. Linked: `control-openhands browser select 'testid=add-models-provider' deepseek`; the connection field (`testid=add-models-connection-field`, options `No connection (keyless)` and `QA_ds_conn`) is pre-bound to `QA_ds_conn`. Run `control-openhands browser check 'testid=add-models-check-deepseek/deepseek-chat'`, `control-openhands browser check 'testid=add-models-check-deepseek/deepseek-v3'`, `control-openhands browser click 'testid=add-models-submit'` and `control-openhands browser wait-text 'Added 2'` (toast `Added 2 profiles`). The modal closes; after a reload `deepseek-chat` and `deepseek-v3` sit under the `QA_DS_CONN` header and `api GET /api/profiles` shows both with a `provider_connection_id`. Preselect entry: `control-openhands browser click 'testid=provider-connection-row >> has-text=QA_ds_conn >> testid=provider-connection-menu-trigger'` (menu: Bulk add, Edit, Delete), `control-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-add-models'`; provider `deepseek` and the connection are preset, every remaining row is checked (`Add 10 profiles`), and `browser count 'testid=add-models-row-deepseek/deepseek-chat'` is `0` (already added). Close with `control-openhands browser click 'role=dialog[name="Add models as profiles"] >> role=button[name="Cancel"]'`.
- **Broken link (`F10.broken-link`).** The local server refuses to delete a referenced connection (row menu → `testid=provider-connection-delete` → `testid=delete-provider-connection-confirm` toasts `Provider connection cannot be deleted while it is referenced by LLM profile(s): ...`), so arrange the state directly: `control-openhands api POST /api/profiles/QA_broken --write --data '{"llm":{"model":"deepseek/deepseek-chat","provider_connection_id":"00000000000000000000000000000000"},"include_secrets":false}'`. Then `control-openhands browser reload` and `control-openhands browser text '[data-testid=profile-row]:has([title="QA_broken"])'` reads `QA_broken deepseek/deepseek-chat Broken link`; `control-openhands browser attr '[data-testid=profile-row]:has([title="QA_broken"]) >> testid=profile-broken-connection-badge' title` is `The linked provider connection was deleted. Edit this profile to re-link it.` (screenshot `--feature F10.broken-link --name badge`). Edit it: `browser value 'testid=llm-provider-connection-input'` is the orphaned id and the listbox offers `None`, `QA_ds_conn` and that id. The row's group header shows the raw id, not a name (see Gotchas).
-- **ChatGPT subscription, pre-auth (`F10.subscription`).** In a fresh editor run `control-openhands browser click 'testid=sdk-section-basic-toggle'` first (after the schema step the Default profile has a temperature, so a new editor opens on All; see `F10.create-prefill`), then `control-openhands browser click 'testid=llm-auth-type-input'` (options `API key`, `ChatGPT subscription`) and `control-openhands browser click 'role=option[name="ChatGPT subscription"]'`. `browser text 'testid=subscription-status'` is `ChatGPT subscription not connected`, `browser value 'testid=llm-subscription-model-input'` is `gpt-5.5` (list: gpt-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra), and `llm-provider-input` and `llm-api-key-input` are gone (count `0`). Known failure (reproduced 2026-10-12, #17135): run `control-openhands browser fill 'testid=profile-name-input' QA_sub`, `control-openhands browser network --clear`, `control-openhands browser click 'testid=save-profile-btn'` and `control-openhands browser wait-text 'Model is required'`. The toast is `Model is required`, and `control-openhands browser network --filter '/api/profiles'` lists no request, although the dropdown shows `gpt-5.5`: it shows the first subscription model without writing it to the form. Expected: Save validates and saves `gpt-5.5`. Picking a model in `testid=llm-subscription-model-input`, even `gpt-5.5` again, makes the next Save send `POST /api/profiles/QA_sub/validate`, which answers `OpenAI subscription login is required` here (`browser toasts --history`), because no subscription is connected. `control-openhands browser click 'testid=subscription-connect'` and `control-openhands browser wait 'testid=subscription-user-code'`: the card shows the code, `Open sign-in page`, `I've finished signing in` (`subscription-poll`) and Cancel, and `control-openhands browser tabs` lists a second page on `auth.openai.com` (it opens a second or two after the code appears; rerun `browser tabs` if it lists one page). The card polls on its own, so `Sign-in is not complete yet. ...` can already show before you click poll. Close it with `control-openhands browser close-tab 1` and `control-openhands browser tab 0`. `control-openhands browser click 'testid=subscription-poll'` leaves `Sign-in is not complete yet. Finish the browser flow and try again.` on the card, and `control-openhands browser click 'testid=subscription-cancel'` removes the code (`count 'testid=subscription-user-code'` `0`). Switching back with `role=option[name="API key"]` restores provider `OpenAI` and model `gpt-5.6-sol`. Completing sign-in is blocked (needs a ChatGPT Plus/Pro account).
+- **ChatGPT subscription, pre-auth (`F10.subscription`).** In a fresh editor run `control-openhands browser click 'testid=sdk-section-basic-toggle'` first (after the schema step the Default profile has a temperature, so a new editor opens on All; see `F10.create-prefill`), then `control-openhands browser click 'testid=llm-auth-type-input'` (options `API key`, `ChatGPT subscription`) and `control-openhands browser click 'role=option[name="ChatGPT subscription"]'`. `browser text 'testid=subscription-status'` is `ChatGPT subscription not connected`, `browser value 'testid=llm-subscription-model-input'` is `gpt-5.5` (list: gpt-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra), and `llm-provider-input` and `llm-api-key-input` are gone (count `0`). Known failure (reproduced 2026-10-13, #17135): run `control-openhands browser fill 'testid=profile-name-input' QA_sub`, `control-openhands browser network --clear`, `control-openhands browser click 'testid=save-profile-btn'` and `control-openhands browser network --bodies --filter '/api/profiles'`. Expected: Save validates and saves the shown `gpt-5.5`. Actual: one `POST /api/profiles/QA_sub/validate` whose body has `"model":"openai/gpt-5.6-sol"`, the API-key form's hidden default, although the dropdown shows `gpt-5.5` (it shows the first subscription model without writing it to the form); `browser toasts --history` has `OpenAI subscription login is required`, because no subscription is connected. Before #18218 (BASE 553d4519, twice) the same Save toasted `Model is required` and sent nothing. Picking a model in `testid=llm-subscription-model-input`, even `gpt-5.5` again, makes the next Save send `POST /api/profiles/QA_sub/validate`, which answers `OpenAI subscription login is required` here (`browser toasts --history`), because no subscription is connected. `control-openhands browser click 'testid=subscription-connect'` and `control-openhands browser wait 'testid=subscription-user-code'`: the card shows the code, `Open sign-in page`, `I've finished signing in` (`subscription-poll`) and Cancel, and `control-openhands browser tabs` lists a second page on `auth.openai.com` (it opens a second or two after the code appears; rerun `browser tabs` if it lists one page). The card polls on its own, so `Sign-in is not complete yet. ...` can already show before you click poll. Close it with `control-openhands browser close-tab 1` and `control-openhands browser tab 0`. `control-openhands browser click 'testid=subscription-poll'` leaves `Sign-in is not complete yet. Finish the browser flow and try again.` on the card, and `control-openhands browser click 'testid=subscription-cancel'` removes the code (`count 'testid=subscription-user-code'` `0`). Switching back with `role=option[name="API key"]` restores provider `OpenAI` and model `gpt-5.6-sol`. Completing sign-in is blocked (needs a ChatGPT Plus/Pro account).
- **Delete (`F10.delete`, `F10.delete-default`).** Run `control-openhands browser click '[data-testid=profile-row]:has([title="QA_pro-copy"]) >> testid=profile-menu-trigger'` and `control-openhands browser click 'testid=profile-actions-menu >> testid=profile-delete'`. `control-openhands browser snapshot 'role=dialog'` shows `Delete Profile` with `Are you sure you want to delete the profile "QA_pro-copy"? This action cannot be undone.`, and `browser eval "document.activeElement.innerText"` is `Cancel`. `control-openhands browser click 'role=dialog[name="Delete Profile"] >> role=button[name="Cancel"]'` keeps the row (count `1`). Repeat, then `control-openhands browser click 'testid=delete-profile-confirm'`, `control-openhands browser wait-text 'Profile "QA_pro-copy" deleted'`, reload, and the count is `0`. Deleting the Default row the same way leaves exactly one `profile-active-badge` on another profile (`browser text '[data-testid=profile-row]:has([data-testid=profile-active-badge])'`), and `api GET /api/profiles` names it in `active_profile`.
- **Command menu and direct URL (`F10.list`).** Run `control-openhands browser goto /` (the bullets above end on `/settings/llm`, where the URL wait would pass at once), `control-openhands browser press Control+k`, `control-openhands browser type 'testid=command-menu >> role=combobox' LLM` and `control-openhands browser snapshot 'testid=command-menu'`: two options, `LLM profiles` ("Manage models, providers, and API keys.") and `Model Router` (F12; its keywords include "llm"). Hovering an option selects it, so which one Enter runs depends on where the mouse rests: click the option instead, `control-openhands browser click 'testid=command-menu >> role=option[name="LLM profiles"]' --expect-url '/settings/llm(\?|$)'`. `browser count 'testid=add-llm-profile'` is `1` on arrival. `control-openhands browser goto /settings/llm` shows the same list (`browser count 'testid=profile-row'`, one `profile-active-badge`; screenshot `--feature F10.list --name list`).
- **Phone layout (`F10.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings/llm`, `control-openhands browser bbox 'testid=add-llm-profile'`, `control-openhands browser bbox 'testid=profile-row >> nth=0'` and `control-openhands browser screenshot --feature F10.phone --name list`: `insideViewport` `true`, `pageHorizontalOverflow` `false`. Open a row menu: `browser bbox 'testid=profile-actions-menu'` is inside the viewport. Open Edit: `browser bbox 'testid=profile-name-input'` is 348 px wide inside the 390 px viewport and `pageHorizontalOverflow` is `false` (`llm-settings-screen` may report `insideViewport` `false` when the edited profile's form is taller than the screen; only the overflow flag matters). Return with `control-openhands browser click 'testid=cancel-profile-btn'` and `control-openhands browser viewport desktop`.
- **Default profile drives a conversation (`F10.default-used`).** Make a profile with a distinct model Default through the row menu (for example `QA_pro-copy-1`, `deepseek/deepseek-v4-pro`, then `wait-text 'Switched to profile "QA_pro-copy-1"'`), and run `control-openhands conversation start --prompt "Reply with exactly the word: pong" --wait --timeout 180`. The JSON has `"status": "finished"` and `"model": "deepseek/deepseek-v4-pro"`. The browser is now on the conversation page: `control-openhands browser goto /settings/llm` before driving this family again.
- **Persistence across a restart (`F10.list`).** `control-openhands restart`, `control-openhands doctor`, `control-openhands browser goto /settings/llm`: the same rows and the same Default badge are back.
-- **Load error (`F10.list-states`, blocked).** `control-openhands service stop agent-server` and `control-openhands browser reload` do not reach `testid=profiles-load-error`: the whole app is replaced by the disconnected-backend screen (`testid=agent-server-onboarding-screen`, toasts `An error occurred` (twice, one after the other) and `Could not connect to the configured agent server. Make sure it is running and reachable, then reload the page.` (#18051); the Manage backends row detail still reads `HTTP request failed (502 Bad Gateway): "Bad Gateway: connect ECONNREFUSED 127.0.0.1:<agent-server port>"`). The list error needs `/api/profiles` alone to fail. Bring the stack back with `control-openhands restart`.
+- **Load error (`F10.list-states`).** With any profile linked to a connection (here `QA_adv` → `QA_ds_conn`, from the Link bullet), make this run's connections store unreadable (shell arrange, this run only): `F=$OH_VERIFY_RUN/private/provider-connections/provider_connections.json; cp $F $F.bak; printf '{not json' > $F`. `control-openhands api GET /api/profiles` is now `400` (`Provider connections file is unreadable: …`). Run `control-openhands browser reload`, `control-openhands browser wait 'testid=profiles-load-error'` and `control-openhands browser wait 'testid=provider-connections-load-error'` (it can appear one retry after the profiles error): the first reads `Failed to load profiles` in the theme's error colour (`browser eval "getComputedStyle(document.querySelector('[data-testid=profiles-load-error] p')).color"` is `rgb(231, 106, 94)` on OpenHands-Neutral and `rgb(192, 40, 45)` on Light+, #18330), with both Add buttons still shown and `provider-connections-load-error` below it (`F11.load-error`); screenshot `--feature F10.list-states --name load-error-neutral`. Restore with `cp $F.bak $F && rm $F.bak` and `browser reload`. The backend-down route does not reach it: `control-openhands service stop agent-server` and `control-openhands browser reload` do not reach `testid=profiles-load-error`: the whole app is replaced by the disconnected-backend screen (`testid=agent-server-onboarding-screen`, toasts `An error occurred` (twice, one after the other) and `Could not connect to the configured agent server. Make sure it is running and reachable, then reload the page.` (#18051); the Manage backends row detail still reads `HTTP request failed (502 Bad Gateway): "Bad Gateway: connect ECONNREFUSED 127.0.0.1:<agent-server port>"`). The list error needs `/api/profiles` alone to fail. Bring the stack back with `control-openhands restart`.
- **Cleanup.** Run `control-openhands browser goto /settings/llm` (the Load error bullet left the disconnected-backend screen), then delete every `QA_*`, `deepseek-chat` and `deepseek-v3` profile through the row menu, linked ones first; `control-openhands browser count 'testid=profile-group-header'` drops to `0` once no linked row is left (`F10.list-grouped`). Then delete `QA_ds_conn` (`testid=provider-connection-row >> has-text=QA_ds_conn >> testid=provider-connection-menu-trigger`, `testid=provider-connection-actions-menu >> testid=provider-connection-delete`, `testid=delete-provider-connection-confirm`; toast `Connection "QA_ds_conn" deleted`). With no profiles left, `testid=profiles-empty` returns and `api GET /api/profiles` is `{"profiles":[],"active_profile":null}`.
## Gotchas
@@ -110,7 +110,7 @@ Preconditions:
- An open provider or model listbox intercepts clicks on the editor's buttons (`cancel-profile-btn`, `save-profile-btn` time out with "subtree intercepts pointer events"): `browser press Escape` first.
- Provider and model options render in a portal outside the editor and modals: select `testid=provider-item-<name>` unscoped. Only verified providers have `provider-item-*` IDs and only Other models have `model-item-*` IDs; use `role=option[name="..."][exact]` for the rest. `browser testids --filter model-item` lists only items scrolled into view; `browser count` finds the rest.
- The auto-filled Profile Name never reuses an existing profile's name: picking a model whose name is already a profile's (for example `deepseek-flash` after `llm preset deepseek`) empties the field, which disables Save. Recipes fill `profile-name-input` with a `QA_*` name anyway.
-- A duplicate profile name disables Save silently: no message, and `aria-invalid` stays `false` (#17938). Check `browser enabled 'testid=save-profile-btn'`, not the field styling.
+- A duplicate profile name is flagged since #18144 (closed #17938; verified 2026-10-13 on desktop, phone, OpenHands-Neutral and Light+): `aria-invalid` `true` and a taken-name alert. That alert reuses the Model Router's `A meta-profile with this name already exists. …` (Known failure, #18383; see `F10.name-validation`). A checkout without #18144 disables Save silently.
- The Rename modal does not check duplicates client-side (Rename stays enabled); the server's 409 comes back as the toast `Profile '<name>' already exists`, and `browser errors --app-only` counts one `http-error` and one `console.error` for it.
- Set as default (and deleting the Default) rewrites the agent's active LLM settings (`control-openhands llm show`). Deleting every profile leaves the last applied model and key in agent settings.
- The app never leaves profiles without a Default: `src/routes/root-layout.tsx` runs `useEnsureActiveProfile` (`src/hooks/use-ensure-active-profile.ts`), which activates the first profile with a key (else the first profile) whenever profiles exist but none is Default, whether never activated or because the Default was deleted (this is what promotes a profile in `F10.delete-default`). So `llm set --no-activate` keeps the Default only while another profile is Default: on a run whose only profile is the arranged one, `control-openhands api GET /api/profiles --pick active_profile` flips from `null` to it at the next page load (`browser reload`) and the agent's LLM settings follow (`llm show`).
@@ -120,4 +120,4 @@ Preconditions:
- The list follows the server's order, which sorts by profile file name: `QA_pro-copy-1` lists before `QA_pro-copy` (`-` sorts before `.json`'s `.`). Do not assert a strict alphabetical order on names that are prefixes of each other.
- Toasts last only a few seconds. A `browser screenshot` taken after a slow command can miss them, so assert with `browser wait-text` or `browser toasts`.
- Known issue #17955: a new profile is saved without the inherited LLM options the editor shows, such as temperature (`F10.create-prefill`).
-- Known issue #18303: `Subscription models are not loaded yet.` is English in every language. It shows when a subscription profile is saved before `GET /api/llm/subscription/openai/models` answers, in the settings save (`src/routes/llm-settings.tsx`) and in onboarding's LLM step. No recipe drives it, since it needs that request to be slow or to fail.
+- `Subscription models are not loaded yet.` is translated in every language (`SETTINGS$SUBSCRIPTION_MODELS_NOT_LOADED`, #18308; source check 2026-10-13, not driven live). It shows when a subscription profile is saved before `GET /api/llm/subscription/openai/models` answers, in the settings save (`src/routes/llm-settings.tsx`) and in onboarding's LLM step. No recipe drives it, since it needs that request to be slow or to fail.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F11-provider-connections.md b/.agents/skills/verify-openhands/references/feature-map/F11-provider-connections.md
index db4edac4eb..8238364b1e 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F11-provider-connections.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F11-provider-connections.md
@@ -73,7 +73,7 @@ Preconditions:
- **Persistence across a backend restart (`F11.create`).** Run `control-openhands restart` and `control-openhands browser reload`; `browser eval "[...document.querySelectorAll('[data-testid=provider-connection-row]')].map(r=>r.innerText.replace(/\n/g,'|')).join(' ; ')"` lists the same rows and counts as before (for example `QA_shared|deepseek|1 model(s) ; QA_long…|anthropic|0 model(s)`).
- **Unlisted provider (`F11.edit-unlisted-provider`).** Arrange (not proof) `control-openhands api POST /api/llm/provider-connections --data '{"display_name":"QA_custom","provider":"qa_unlisted","api_key":"dummy-key-6","base_url":null}' --write` (201), then `browser reload`: the row reads `QA_custom\nqa_unlisted\n0 model(s)`. Open Edit on `QA_custom`: `browser value 'testid=provider-connection-provider-input'` is `qa_unlisted`; `browser click` that input, `browser fill ... qa_` and `browser snapshot 'role=listbox'` shows only group `Other Models` with option `qa_unlisted` [selected]. Click `'role=option[name="qa_unlisted"]'`, fill the name with `QA_custom2`, Save: toast `Connection "QA_custom2" updated` and the API still shows `"provider": "qa_unlisted"`. Delete `QA_custom2` and `QA_long` through their row menus and `testid=delete-provider-connection-confirm` (wait for the confirm button `--state detached` between them); `api GET /api/llm/provider-connections` lists only `QA_shared`.
- **Stale reference and cleanup (`F11.delete-stale-reference`).** Delete the linked profile (F10): `control-openhands browser click '[data-testid=profile-row]:has([title="deepseek-flash"]) >> testid=profile-menu-trigger'`, `control-openhands browser click 'testid=profile-actions-menu >> testid=profile-delete'`, `control-openhands browser click 'testid=delete-profile-confirm'` (toast `Profile "deepseek-flash" deleted`). After `browser reload` the `QA_shared` row reads `0 model(s)`. Delete `QA_shared` through its row menu and `testid=delete-provider-connection-confirm`. Expected: it is deleted. Today the toast is `Provider connection cannot be deleted while it is referenced by the active agent settings. Update those references before deleting it.` and nothing on the page clears that reference (fail, screenshot `--feature F11.delete-stale-reference --name refused`). To finish cleanup, close the dialog, arrange an unlinked active profile with `control-openhands llm preset deepseek --api-key-file <key file>` (this is the arrange step, not proof), `browser reload`, delete `QA_shared` through the row menu (toast `Connection "QA_shared" deleted`), `browser reload`: `testid=provider-connections-empty` is back and `api GET /api/llm/provider-connections` is `[]`.
-- **Load error (`F11.load-error`).** With the baseline restored (connections `[]`), run the shell arrange step (it writes only this run's state) `F=$OH_VERIFY_RUN/private/provider-connections/provider_connections.json; cp $F $F.bak; printf '{not json' > $F`. `control-openhands api GET /api/llm/provider-connections` is now `400` (`Provider connections file is unreadable: ...`) while `api GET /api/profiles` is `200`. Run `control-openhands browser reload`, `control-openhands browser text 'testid=provider-connections-load-error'` (`Failed to load provider connections.`), `browser count 'testid=add-provider-connection'` (`1`) and `browser count 'testid=profile-row'` (> `0`; screenshot `--feature F11.load-error --name error`). Restore with `cp $F.bak $F && rm $F.bak`, `browser reload`: `testid=provider-connections-empty` is back and `provider-connections-load-error` count is `0`.
+- **Load error (`F11.load-error`).** With the baseline restored (connections `[]`), run the shell arrange step (it writes only this run's state; the file exists only once the run has created a connection, as the bullets above do, so on a run that never created one `cp` fails: create and delete one through **Add connection** first) `F=$OH_VERIFY_RUN/private/provider-connections/provider_connections.json; cp $F $F.bak; printf '{not json' > $F`. `control-openhands api GET /api/llm/provider-connections` is now `400` (`Provider connections file is unreadable: ...`) while `api GET /api/profiles` is `200`. Run `control-openhands browser reload`, `control-openhands browser text 'testid=provider-connections-load-error'` (`Failed to load provider connections.`), `browser count 'testid=add-provider-connection'` (`1`) and `browser count 'testid=profile-row'` (> `0`; screenshot `--feature F11.load-error --name error`). The message uses the theme's error colour (`browser eval "getComputedStyle(document.querySelector('[data-testid=provider-connections-load-error] p')).color"`: `rgb(231, 106, 94)` on OpenHands-Neutral, `rgb(192, 40, 45)` on Light+, #18330). The profile rows render only because no profile links to a connection at this point: with a linked profile `GET /api/profiles` fails with the same `400` and the list above shows `Failed to load profiles` instead (`F10.list-states`). Restore with `cp $F.bak $F && rm $F.bak`, `browser reload`: `testid=provider-connections-empty` is back and `provider-connections-load-error` count is `0`.
- **Errors sweep.** `control-openhands browser errors --app-only` shows `pageErrors` `0`; the HTTP errors are the deliberate `POST 422` (long name), two `DELETE 409` (referenced, then the stale reference) and the `GET 400` from the load-error arrange, all on `/api/llm/provider-connections`. Run `browser errors --clear` afterwards.
## Gotchas
diff --git a/.agents/skills/verify-openhands/references/feature-map/F13-agent-profiles.md b/.agents/skills/verify-openhands/references/feature-map/F13-agent-profiles.md
index 316e0a1aca..189a6bb8d6 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F13-agent-profiles.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F13-agent-profiles.md
@@ -3,17 +3,17 @@
Settings → Agent is a library of named agent profiles. Each profile is either an
OpenHands agent (an LLM profile, a system prompt, a tool set, parallel
tool calls, and MCP-server and secret scopes) or an ACP external agent (a preset
-such as Claude Code, Codex or Gemini CLI, its launch command, a model and
-provider credentials). One profile is active; new conversations started from
-Home launch from it.
+such as Claude Code, Codex, Gemini CLI, Pi or OpenCode, its launch command, a
+model the agent itself reports, and provider credentials). One profile is
+active; new conversations started from Home launch from it.
-Source: `src/routes/agent-profiles-settings.tsx`, `src/routes/agent-settings.tsx`, `src/components/features/settings/agent-profiles/`, `src/components/features/settings/acp-credentials-section.tsx`, `src/constants/acp-providers.ts`, `src/hooks/mutation/use-create-conversation.ts`.
+Source: `src/routes/agent-profiles-settings.tsx`, `src/routes/agent-settings.tsx`, `src/components/features/settings/agent-profiles/`, `src/components/features/settings/acp-credentials-section.tsx`, `src/components/features/settings/acp-conflict-warnings.tsx`, `src/constants/acp-providers.ts`, `src/constants/acp-brand-marks.ts`, `src/hooks/query/use-acp-model-discovery.ts`, `src/hooks/mutation/use-create-conversation.ts`.
## Sub-features
- `F13.list`: under **Available Profiles**, rows (sorted by name) show the profile name, then its LLM profile (OpenHands) or `ACP (external subprocess)`, a **Default** badge on the active profile and a `...` menu (Edit, Set as active, Delete).
- `F13.create`: **Add agent profile** opens the editor; Save toasts `Profile "<name>" created` and the row is listed after a reload.
-- `F13.name-validation`: an empty or malformed name marks the field invalid (red rule) and disables Save; a duplicate name disables Save without a message.
+- `F13.name-validation`: an empty or malformed name marks the field invalid (red rule) and disables Save; a name another profile already has also marks the field invalid, shows a red taken-name message about agent profiles under it (the rule stays grey) and disables Save (Edit accepts the profile's own name).
- `F13.editor-no-llm`: with no LLM profiles, an OpenHands profile shows `Create an LLM profile first to define an OpenHands agent.` and Save toasts `Select an LLM profile for this agent.` without creating anything.
- `F13.openhands-options`: OpenHands profiles offer an LLM profile dropdown (the active LLM profile by default), a **System prompt** choice (`OpenHands default`, `Default + your instructions` or `Custom persona`, each saved on the profile), **Parallel tool calls** (default 1, minimum 1) and **Tools**: `Standard tools` (default) lists the server's standard set read-only, `Choose tools` turns the server's tool catalog into switches; values persist and reopen.
- `F13.edit`: Edit reopens the stored values with Save disabled until something changes; renaming keeps the profile id; Back and Cancel leave without saving.
@@ -23,9 +23,11 @@ Source: `src/routes/agent-profiles-settings.tsx`, `src/routes/agent-settings.tsx
- `F13.llm-pill-precedence`: when the active profile pins a different LLM profile than the Home LLM pill, the launch uses the pill's model and not the profile's other settings (by design).
- `F13.mcp-scope`: **MCP servers** offers **All servers** (every configured server listed, switched on and disabled) or **Choose servers** (a switch per configured server); the choice persists; a chosen server that was removed stays listed with a red warning, and launching with it is refused.
- `F13.secrets-scope`: **Secrets** offers **No profile restriction** (every switch on and disabled) or **Choose secrets**; on an ACP profile, Choose preselects that provider's secret names; the selection persists.
-- `F13.acp-form`: choosing **ACP (external subprocess)** shows Preset, Command and Model; each preset prefills its command and model, **Custom** empties the command and disables Save until one is typed, typing a preset's exact command selects that preset, and the Model list's **Custom** opens a free-text model field.
+- `F13.acp-form`: choosing **ACP (external subprocess)** shows Preset, Command, Credentials and Model; each preset prefills its command and its model choice (`Agent default`, or Gemini CLI's preferred `gemini-2.5-pro`), **Custom** empties the command and disables Save until one is typed, typing a preset's exact command selects that preset, and the Model list's **Custom** opens a free-text model field.
+- `F13.acp-local-presets`: on a local backend the Preset list also offers **Pi** and **OpenCode** (with their own commands and credentials); a profile saved on them stores `acp_server` `pi`/`opencode` with `acp_command` `null`. On Cloud both are hidden (blocked here).
+- `F13.acp-model-discovery`: for a built-in preset with its default command the Model list comes from the agent: `Asking <agent> which models it offers…` while the agent-server asks it, then its models with `Agent default (<model>)` first; an agent that wants a login says `Sign in or add credentials above to see the models <agent> offers.`, one that cannot start says `<agent>'s models appear here after your first conversation with it. …`; a picked model is saved as `acp_model` and reopens selected.
- `F13.acp-credentials`: built-in presets show a Credentials section (password fields), an auth banner (signed in / configured), a conflict warning for mutually exclusive Claude credentials, and `Already saved — leave blank to keep` for stored values. Credentials are saved as global secrets.
-- `F13.acp-preset-credentials`: the Credentials fields follow the preset: Claude Code `CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL`; Codex `OPENAI_API_KEY`, `CODEX_AUTH_JSON` (multi-line), `OPENAI_BASE_URL`; Gemini CLI `GOOGLE_APPLICATION_CREDENTIALS_JSON` (multi-line), `GOOGLE_CLOUD_PROJECT`, `GOOGLE_CLOUD_LOCATION`, `GOOGLE_GENAI_USE_VERTEXAI`, `GEMINI_API_KEY`, `GEMINI_BASE_URL`; **Custom** has no Credentials section. With no host login and no stored credential (Gemini here) no auth banner shows.
+- `F13.acp-preset-credentials`: the Credentials fields follow the preset: Claude Code `CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL`; Codex `OPENAI_API_KEY`, `CODEX_AUTH_JSON` (multi-line), `OPENAI_BASE_URL`; Gemini CLI `GOOGLE_APPLICATION_CREDENTIALS_JSON` (multi-line), `GOOGLE_CLOUD_PROJECT`, `GOOGLE_CLOUD_LOCATION`, `GOOGLE_GENAI_USE_VERTEXAI`, `GEMINI_API_KEY`, `GEMINI_BASE_URL`; Pi `PI_AUTH_JSON` (multi-line), `ANTHROPIC_API_KEY`; OpenCode `OPENCODE_AUTH_CONTENT` (multi-line), `OPENCODE_API_KEY`; **Custom** has no Credentials section. With no host login and no stored credential (Gemini here) no auth banner shows.
- `F13.menu-keyboard`: opening the row's `...` menu focuses Edit; ArrowDown/ArrowUp move focus between the enabled items (wrapping, and skipping the disabled **Set as active** on the active row), Enter runs the focused item, and Tab, Escape or a click outside close the menu.
- `F13.delete`: Delete asks for confirmation; Cancel keeps the row, Delete removes it. Deleting the active profile leaves none active; deleting the last profile makes the server re-seed `default`.
- `F13.phone`: the list, row menu and editor fit a 390 px viewport without horizontal overflow.
@@ -53,11 +55,13 @@ Preconditions:
- **List (`F13.list`).** From `/` run `control-openhands browser click 'testid=backend-selector-settings-link' --expect-url '/settings'`, then `control-openhands browser url` (`/settings/agents`) and `control-openhands browser text 'testid=agent-profile-row'`: `default`, its LLM profile `default`, `Default` on three lines. `control-openhands browser count 'testid=agent-profile-active-badge'` is `1`; `control-openhands browser screenshot --feature F13.list --name list`. Command menu: run `control-openhands browser goto /` (the browser is on `/settings/agents`, where the URL wait would pass at once), `control-openhands browser press Control+k`, `control-openhands browser type 'testid=command-menu >> role=combobox' 'Agent settings'`, `control-openhands browser press Enter`, `control-openhands browser wait-url '/settings/agents(\?|$)'`. Legacy URL: `control-openhands browser goto /settings/agent` returns `.../settings/agents`.
- **No LLM profile (`F13.editor-no-llm`).** Before the preset, run `control-openhands browser click 'testid=add-agent-profile'`, then `control-openhands browser text 'testid=agent-profile-no-llm'`: `Create an LLM profile first to define an OpenHands agent.` `control-openhands browser text 'testid=agent-profile-editor-title'` is `Add agent profile` and `control-openhands browser text 'testid=agent-profile-editor-description'` is `Configure the agent below, then click Save to create this profile.` (agent copy, not the LLM page's hint, since #18035). Run `control-openhands browser fill 'testid=agent-profile-name-input' QA_NoLlm`; Save turns enabled (`control-openhands browser enabled 'testid=save-agent-profile-btn'`). Click `testid=save-agent-profile-btn` and run `control-openhands browser toasts`: `Select an LLM profile for this agent.` `api GET /api/agent-profiles` lists no `QA_NoLlm`. Leave with `control-openhands browser click 'testid=cancel-agent-profile-btn'`.
-- **Name rules (`F13.name-validation`).** In the Add editor, fill `testid=agent-profile-name-input` with `''`, `default`, `'bad name!'` and `QA_ok` in turn; after each run `control-openhands browser attr 'testid=agent-profile-name-input' aria-invalid` and `control-openhands browser enabled 'testid=save-agent-profile-btn'`. Results: `''` → `true`/`false`; `default` (duplicate) → `false`/`false`, and nothing explains why; `'bad name!'` → `true`/`false`; `QA_ok` → `false`/`true`. The rule under the field is always shown (grey) and turns the theme danger colour (`text-danger`, #18199) while the name is invalid; it reads `Profile name must start with a letter or digit, and contain only letters, digits, dots, underscores, or hyphens (max 64 characters)`. Take `control-openhands browser screenshot --feature F13.name-validation --name duplicate` with `default` filled.
-- **ACP form (`F13.acp-form`).** In the Add editor run `control-openhands browser click 'testid=agent-type-selector'` and `control-openhands browser click 'role=option[name="ACP (external subprocess)"]'`. `control-openhands browser value 'testid=agent-preset-selector'` is `Claude Code`, `browser value 'testid=agent-command-input'` is `npx -y --prefer-offline @agentclientprotocol/[email protected]` and `browser value 'testid=agent-model-selector'` is `Claude Opus (1M)`; `agent-profile-no-llm` is gone (ACP needs no LLM profile). Pick `Codex` and `Gemini CLI` from `testid=agent-preset-selector`: the command becomes `npx -y --prefer-offline @agentclientprotocol/[email protected]` / `npx -y --prefer-offline @google/[email protected] --acp` and the model `GPT-5.5` / `Gemini 2.5 Pro`. Pick `Custom`: the command is empty and Save is disabled. `control-openhands browser fill 'testid=agent-command-input' 'npx -y qa-custom-acp --stdio'` enables Save. Filling the exact Codex command flips the preset to `Codex`; appending ` --verbose` flips it back to `Custom`. Model override: with a built-in preset, run `control-openhands browser choose 'testid=agent-model-selector' 'Custom'` (or open the model list with its toggle button and `control-openhands browser click 'role=option[name="Custom"][exact]'`); `control-openhands browser count 'testid=agent-model-input'` is `1` and empty. The **Custom** preset shows `agent-model-input` directly (no model list).
+- **Name rules (`F13.name-validation`).** In the Add editor, fill `testid=agent-profile-name-input` with `''`, `default`, `'bad name!'` and `QA_ok` in turn; after each run `control-openhands browser attr 'testid=agent-profile-name-input' aria-invalid` and `control-openhands browser enabled 'testid=save-agent-profile-btn'`. Results: `''` → `true`/`false`; `default` (duplicate) → `true`/`false`; `'bad name!'` → `true`/`false`; `QA_ok` → `false`/`true`. The rule under the field is always shown (grey) and turns the theme danger colour (`text-danger`, #18199) while the name is invalid; it reads `Profile name must start with a letter or digit, and contain only letters, digits, dots, underscores, or hyphens (max 64 characters)`. For the duplicate, `control-openhands browser count 'role=alert >> text=already exists'` is `1`: the alert is the field's description, in the danger colour (`rgb(231, 106, 94)` on OpenHands-Neutral, `rgb(209, 52, 56)` on Light+), while the rule text stays grey. Expected: it says an agent profile with that name exists. Known failure (reproduced 2026-10-13, #18383): it reads `A meta-profile with this name already exists. Choose a different name, or edit the existing one.`, the Model Router's wording reused by #18144. Take `control-openhands browser screenshot --feature F13.name-validation --name duplicate` with `default` filled. In Edit the same message appears for another profile's name and not for the profile's own name (`F13.edit`).
+- **ACP form (`F13.acp-form`).** In the Add editor run `control-openhands browser click 'testid=agent-type-selector'` and `control-openhands browser click 'role=option[name="ACP (external subprocess)"]'`. `control-openhands browser value 'testid=agent-preset-selector'` is `Claude Code`, `browser value 'testid=agent-command-input'` is `npx -y --prefer-offline @agentclientprotocol/[email protected]` and `browser value 'testid=agent-model-selector'` is `Agent default`; `agent-profile-no-llm` is gone (ACP needs no LLM profile). The preset list (`control-openhands browser click 'div:has(> div > input[data-testid=agent-preset-selector]) >> role=button[name="Show suggestions"]'`, then `control-openhands browser snapshot 'role=listbox'`) is `Claude Code`, `Codex`, `Gemini CLI`, `Pi`, `OpenCode`, `Custom` (`browser press Escape`). Pick `Codex` and `Gemini CLI` from `testid=agent-preset-selector`: the command becomes `npx -y --prefer-offline @agentclientprotocol/[email protected]` / `npx -y --prefer-offline @google/[email protected] --acp` and the model `Agent default` / `gemini-2.5-pro` (the models come from the agent since #18131: `F13.acp-model-discovery`). Pick `Custom`: the command is empty and Save is disabled. `control-openhands browser fill 'testid=agent-command-input' 'npx -y qa-custom-acp --stdio'` enables Save. Filling the exact Codex command flips the preset to `Codex`; appending ` --verbose` flips it back to `Custom`. Model override: with a built-in preset, run `control-openhands browser choose 'testid=agent-model-selector' 'Custom'` (or open the model list with its toggle button and `control-openhands browser click 'role=option[name="Custom"][exact]'`); `control-openhands browser count 'testid=agent-model-input'` is `1` and empty. The **Custom** preset shows `agent-model-input` directly (no model list).
- **Create an ACP profile (`F13.create`).** With preset `Custom`, fill `testid=agent-profile-name-input` with `QA_acp_custom`, `testid=agent-command-input` with `'npx -y qa-custom-acp --stdio'` and `testid=agent-model-input` with `qa-model`, click `testid=save-agent-profile-btn`, then `control-openhands browser wait-text 'Profile "QA_acp_custom" created' --timeout 10000`, `control-openhands browser reload` and `control-openhands browser text 'testid=agent-profile-row >> has-text=QA_acp_custom'`: `QA_acp_custom` / `ACP (external subprocess)`. `control-openhands api GET /api/agent-profiles/QA_acp_custom` shows `acp_server` `custom`, the command and `acp_model` `qa-model`.
+- **Pi and OpenCode presets (`F13.acp-local-presets`).** For each of `OpenCode` and `Pi`: run `control-openhands browser click 'testid=add-agent-profile'`, `control-openhands browser choose 'testid=agent-type-selector' 'ACP (external subprocess)'` and `control-openhands browser choose 'testid=agent-preset-selector' '<preset>'`. `browser value 'testid=agent-command-input'` is `npx -y --prefer-offline [email protected] acp` / `npx -y --prefer-offline [email protected] --package=@earendil-works/[email protected] pi-acp` (the versions follow `@openhands/typescript-client`). Fill `testid=agent-profile-name-input` with `QA_opencode` / `QA_pi`, run `control-openhands browser wait 'testid=agent-model-discovering' --state detached --timeout 120000`, click `testid=save-agent-profile-btn` and `control-openhands browser wait-text 'Profile "<name>" created' --timeout 10000`. `control-openhands api GET /api/agent-profiles/<name>` has `acp_server` `opencode` / `pi`, `acp_command` `null` and `acp_model` `null`, and after `browser reload` both rows read `<name>` / `ACP (external subprocess)`. Cloud hides both presets (blocked here: needs a Cloud backend).
+- **Models from the agent (`F13.acp-model-discovery`).** In a new ACP editor, each built-in preset pick first shows (unless a successful lookup for that preset and secret set is cached, about 5 minutes: OpenCode then skips it) `control-openhands browser text 'testid=agent-model-discovering'` `Asking <agent> which models it offers…` (the agent-server runs the agent CLI through npx for `POST /api/acp/models`; the first lookup can take a minute while npx downloads it). Wait with `control-openhands browser wait 'testid=agent-model-discovering' --state detached --timeout 120000`, then read `control-openhands browser testids --hidden --filter agent-model`. In this sandbox (no Claude, Codex, Gemini or Pi login for the agent-server): Claude Code fails to start and shows `agent-model-list-after-first-conversation` (`Claude Code's models appear here after your first conversation with it. You can also switch models from the chat.`); Codex, Gemini CLI and Pi need a login and show `agent-model-discovery-needs-auth` (`Sign in or add credentials above to see the models <agent> offers.`), with the model left at `Agent default` (`gemini-2.5-pro` for Gemini); `<run>/private/stack.log` logs `ACP model discovery failed: server=<key> code=ACPInitError|ACPAuthRequired`. OpenCode needs no key: `browser value 'testid=agent-model-selector'` is `Agent default (OpenCode/Big Pickle)` and the list (open it with `browser click 'div:has(> div > input[data-testid=agent-model-selector]) >> role=button[name="Show suggestions"]'`, then `browser snapshot 'role=listbox'`) has that entry, a non-empty list of the models OpenCode reports live (12 on 2026-10-13, such as `OpenCode/Big Pickle` and `OpenCode/Exo Free`) and `Custom` (screenshot `--feature F13.acp-model-discovery --name opencode-models`). Edit `QA_opencode`: Save is disabled until `control-openhands browser choose 'testid=agent-model-selector' 'OpenCode/Exo Free'`; Save (`Profile "QA_opencode" updated`) stores `acp_model` `opencode/exo-free`, and reopening shows `OpenCode/Exo Free` with Save disabled. With a saved `OPENAI_API_KEY` (even a dummy, `F13.acp-credentials`) Codex lists its models and shows `Agent default (GPT-6-Astra)`. Lookups never add a conversation to the list (`api GET "/api/conversations/search?limit=20"` stays empty).
- **Edit and rename (`F13.edit`).** Run `control-openhands browser click 'testid=agent-profile-row >> has-text=QA_acp_custom >> testid=agent-profile-menu-trigger'`; `control-openhands browser snapshot 'testid=agent-profile-actions-menu'` lists `Edit`, `Set as active`, `Delete`. Click `testid=agent-profile-edit`: the title is `Edit agent profile`, the description `Editing profile "QA_acp_custom" - save to apply changes`, the type/preset/command/model values are the stored ones, and Save is disabled. Note the `id` from `api GET /api/agent-profiles`, fill the name with `QA_acp_renamed`, click Save, `control-openhands browser wait-text 'Profile "QA_acp_renamed" updated' --timeout 10000` and `browser reload`: `browser count 'testid=agent-profile-row >> has-text=QA_acp_custom'` is `0`, the renamed row is `1` and `api GET /api/agent-profiles` shows the same id under the new name. Back/Cancel: open any editor, change a field, click `testid=back-to-agent-profiles` (or `testid=cancel-agent-profile-btn`); `browser count 'testid=add-agent-profile'` is `1` and the API is unchanged.
-- **Credentials (`F13.acp-credentials`).** In a new ACP editor with preset `Claude Code`, `control-openhands browser testids --hidden --filter acp` lists `settings-acp-secret-CLAUDE_CODE_OAUTH_TOKEN`, `-ANTHROPIC_API_KEY`, `-ANTHROPIC_BASE_URL` and one banner (`settings-acp-auth-detected` when the agent-server machine has a Claude CLI login, as this sandbox does: `You're already signed in to Claude Code — you can leave the fields below blank.`). `control-openhands browser attr 'testid=settings-acp-secret-ANTHROPIC_API_KEY' type` is `password`. Fill `settings-acp-secret-CLAUDE_CODE_OAUTH_TOKEN` with `qa-dummy-oauth` and `settings-acp-secret-ANTHROPIC_API_KEY` with `qa-dummy-key`; `control-openhands browser text 'testid=acp-credential-conflict-warning'` is `Setting ANTHROPIC_API_KEY alongside CLAUDE_CODE_OAUTH_TOKEN breaks its authentication — leave one of them blank.` (screenshot `--feature F13.acp-credentials --name conflict` after `browser scroll 'testid=acp-credential-conflict-warning'`). Cancel; `api GET /api/settings/secrets` gains nothing. Saved credential: new profile `QA_codex`, ACP, preset `Codex`, fill `testid=settings-acp-secret-OPENAI_API_KEY` with `qa-dummy-openai`, Save (`Profile "QA_codex" created`); `api GET /api/settings/secrets` now lists `OPENAI_API_KEY` and the profile has `acp_server` `codex`, `acp_command` `null`, `acp_model` `gpt-5.5`. Reopen it: `control-openhands browser testids --hidden --filter settings-acp-auth` shows `settings-acp-auth-configured` (`Credentials for Codex are configured — you can leave the fields below blank.`) and `control-openhands browser attr 'testid=settings-acp-secret-OPENAI_API_KEY' placeholder` is `Already saved — leave blank to keep` with an empty value.
+- **Credentials (`F13.acp-credentials`).** In a new ACP editor with preset `Claude Code`, `control-openhands browser testids --hidden --filter acp` lists `settings-acp-secret-CLAUDE_CODE_OAUTH_TOKEN`, `-ANTHROPIC_API_KEY`, `-ANTHROPIC_BASE_URL` and one banner (`settings-acp-auth-detected` when the agent-server machine has a Claude CLI login, as this sandbox does: `You're already signed in to Claude Code — you can leave the fields below blank.`). `control-openhands browser attr 'testid=settings-acp-secret-ANTHROPIC_API_KEY' type` is `password`. Fill `settings-acp-secret-CLAUDE_CODE_OAUTH_TOKEN` with `qa-dummy-oauth` and `settings-acp-secret-ANTHROPIC_API_KEY` with `qa-dummy-key`; `control-openhands browser text 'testid=acp-credential-conflict-warning'` is `Setting ANTHROPIC_API_KEY alongside CLAUDE_CODE_OAUTH_TOKEN breaks its authentication — leave one of them blank.` (screenshot `--feature F13.acp-credentials --name conflict` after `browser scroll 'testid=acp-credential-conflict-warning'`). Known failure in Light+ (reproduced 2026-10-13 on TARGET and BASE, #18004): the auth banners use raw `text-green-200` (`settings-acp-auth-detected`) and `text-blue-200` (`settings-acp-auth-configured`) on a pale tint over white (`acp-auth-status-banner.tsx:63/93`), measuring 1.10:1 and 1.26:1; expected: readable banner text in every theme (screenshot `--feature F13.acp-credentials --name detected-banner-lightplus`). Cancel; `api GET /api/settings/secrets` gains nothing. Saved credential: new profile `QA_codex`, ACP, preset `Codex`, fill `testid=settings-acp-secret-OPENAI_API_KEY` with `qa-dummy-openai`, Save (`Profile "QA_codex" created`); `api GET /api/settings/secrets` now lists `OPENAI_API_KEY` and the profile has `acp_server` `codex`, `acp_command` `null`, `acp_model` `null` (the agent's own default since #18131). Reopen it: `control-openhands browser testids --hidden --filter settings-acp-auth` shows `settings-acp-auth-configured` (`Credentials for Codex are configured — you can leave the fields below blank.`) and `control-openhands browser attr 'testid=settings-acp-secret-OPENAI_API_KEY' placeholder` is `Already saved — leave blank to keep` with an empty value.
- **Secrets scope (`F13.secrets-scope`).** In the `QA_codex` editor, `control-openhands browser eval "[...document.querySelectorAll('[data-testid=agent-settings-secret-list] input')].map(i=>i.closest('li').innerText.split('\n')[0]+'='+i.checked+(i.disabled?'(disabled)':''))"` shows every name `=true(disabled)` under `No profile restriction`. Open `testid=agent-settings-secrets-mode`, `control-openhands browser click 'role=option[name="Choose secrets"]'` and rerun the eval: `OPENHANDS_AUTOMATION_API_KEY=false`, `OPENAI_API_KEY=true`, `CODEX_AUTH_JSON=true`, `OPENAI_BASE_URL=true`. Save (`Profile "QA_codex" updated`); `api GET /api/agent-profiles/QA_codex` has those three in `secret_refs`, and after `browser reload` and Edit the mode and switches are the same. On an OpenHands profile, Choose starts with nothing selected; a switch toggles by its name: in the Add editor pick `Choose secrets`, then `control-openhands browser click 'testid=agent-settings-secret-list >> text=OPENHANDS_AUTOMATION_API_KEY'` turns `document.querySelector('[data-testid=agent-settings-secret-OPENHANDS_AUTOMATION_API_KEY]').checked` from `false` to `true`.
- **Stale LLM reference (`F13.stale-llm-ref`).** After `control-openhands llm preset deepseek`, run `control-openhands browser reload`, open `testid=agent-profile-row >> has-text=default >> testid=agent-profile-menu-trigger` → `testid=agent-profile-edit`, `control-openhands browser wait 'testid=agent-profile-llm-selector'`. `browser value 'testid=agent-profile-llm-selector'` is `deepseek-flash (deepseek/deepseek-flash)` and Save is enabled although nothing was touched. Save (`Profile "default" updated`), `browser reload`: the row reads `default` / `deepseek-flash` / `Default` and `api GET /api/agent-profiles/default` has `llm_profile_ref` `deepseek-flash` with the same id. Screenshot `--feature F13.stale-llm-ref --name fallback` before saving.
- **OpenHands options (`F13.openhands-options`, `F13.create`).** Click `testid=add-agent-profile`, fill the name `QA_oh`. Defaults: `browser value` on `testid=agent-profile-llm-selector` is the active LLM profile (`deepseek-flash (deepseek/deepseek-flash)`), on `testid=agent-settings-system-prompt-mode` `OpenHands default`, on `testid=agent-settings-tools-mode` `Standard tools` and on `testid=sdk-settings-tool_concurrency_limit` `1`; `control-openhands browser text 'testid=agent-settings-tool-list'` lists `file_editor`, `task_tracker`, `terminal` and `switch_llm` with their descriptions (the list follows the Agent Server; 1.53.0 here). Run `control-openhands browser choose 'testid=agent-settings-tools-mode' 'Choose tools'`; `control-openhands browser eval "[...document.querySelectorAll('[data-testid=agent-settings-tool-list] input')].map(i=>i.dataset.testid.replace('agent-settings-tool-','')+'='+i.checked)"` is `file_editor=true`, `task_tool_set=false`, `task_tracker=true`, `terminal=true`, `glob=false`, `grep=false`, `switch_llm=true`. Click `'testid=agent-settings-tool-list >> text=switch_llm'` and `'testid=agent-settings-tool-list >> text=task_tool_set'` (the eval flips both). Fill `testid=sdk-settings-tool_concurrency_limit` with `0` and click Save: `browser toasts` shows `Parallel tool calls must be at least 1` and `browser eval "document.querySelector('[data-testid=sdk-settings-tool_concurrency_limit]').validationMessage"` is `Value must be greater than or equal to 1.` Fill `2`, `control-openhands browser choose 'testid=agent-profile-llm-selector' 'deepseek-pro (deepseek/deepseek-v4-pro)'`, Save (`Profile "QA_oh" created`), `browser reload`: the row reads `QA_oh` / `deepseek-pro`, and `api GET /api/agent-profiles/QA_oh` has `llm_profile_ref` `deepseek-pro`, `tools` named `file_editor`, `task_tool_set`, `task_tracker`, `terminal`, `enable_classify_and_switch_llm_tool` `false` and `tool_concurrency_limit` `2`. Reopening shows `Choose tools` with the same switches, `2` and `deepseek-pro`, with Save disabled. (There are no **Enable sub-agents** or **Let the agent switch LLM profiles** switches: `browser count 'text=Enable sub-agents'` is `0`.)
@@ -67,8 +71,8 @@ Preconditions:
- **Active profile drives the launch (`F13.active-drives-conversation`).** Run `control-openhands browser goto /settings/agents` (the previous `conversation start` left the browser on the conversation), edit `QA_oh`, run `control-openhands browser choose 'testid=agent-profile-llm-selector' 'deepseek-flash (deepseek/deepseek-flash)'` (the toggle-button opener failed 5 of 5 times here: see Gotchas), check `browser value 'testid=agent-profile-llm-selector'`, Save (`Profile "QA_oh" updated`). Run the same `conversation start` again; `api GET /api/conversations/<id>` now has `launched_agent_profile.agent_profile_id` equal to QA_oh's id from `api GET /api/agent-profiles` and `tool_concurrency_limit` `2`; `control-openhands conversation events <id> --kinds MessageEvent` contains `qa-profile-ok`.
- **MCP scope (`F13.mcp-scope`).** With `qa_mcp_a` and `qa_mcp_b` arranged, `browser goto /settings/agents`, Edit `QA_oh`: `browser value 'testid=agent-settings-mcp-mode'` is `All servers` and the eval below (with `+(i.disabled?'(disabled)':'')` appended) shows both `=true(disabled)`. Pick `Choose servers` from `testid=agent-settings-mcp-mode`; `control-openhands browser eval "[...document.querySelectorAll('[data-testid=agent-settings-mcp-list] input')].map(i=>i.dataset.testid+'='+i.checked)"` shows both `=true`. Run `control-openhands browser click 'testid=agent-settings-mcp-list >> text=qa_mcp_b'` (now `false`), Save; `api GET /api/agent-profiles/QA_oh` has `mcp_server_refs` `["qa_mcp_a"]`. Dangling: arrange `control-openhands api DELETE /api/settings/mcp/qa_mcp_a --write`, `browser reload`, Edit `QA_oh`: `control-openhands browser text 'testid=agent-settings-mcp-dangling'` is `qa_mcp_a is no longer configured. Saving with it selected will stop this agent from starting — clear it or re-add the server.` (screenshot `--feature F13.mcp-scope --name dangling`). Leave without saving, `browser goto /`, `browser reload`, `control-openhands browser fill 'testid=chat-input' 'Reply with only: qa-dangling'`, `control-openhands browser click 'testid=submit-button' --observe 'role=status' --observe-ms 4000` and `control-openhands browser toasts --history` (QA_oh must still be active and pinned to the pill's LLM, as `F13.active-drives-conversation` leaves it; otherwise the launch skips the profile and nothing is refused): the launch is refused (one `POST /api/conversations` 422 in `browser errors --app-only`; earlier failures in the session are listed too): `browser toasts --history` shows `Creating conversation…`, then one toast carrying the server's `detail.message` (`MCP server(s) not configured: qa_mcp_a` on Agent Server 1.53.0), and `browser text 'testid=chat-input'` still reads `Reply with only: qa-dangling`. Clear the composer with `browser fill 'testid=chat-input' ''`, then clear the ref: `control-openhands browser goto /settings/agents`, Edit `QA_oh`, `browser click 'testid=agent-settings-mcp-list >> text=qa_mcp_a'` (the warning count drops to `0`), pick `All servers`, Save; `mcp_server_refs` is `null`.
- **Credential fields per preset (`F13.acp-preset-credentials`).** In the Add editor, `control-openhands browser choose 'testid=agent-type-selector' 'ACP (external subprocess)'`, then for each of `Codex`, `Gemini CLI` and `Custom` run `control-openhands browser choose 'testid=agent-preset-selector' '<preset>'` and `control-openhands browser testids --hidden --filter settings-acp`: Codex lists `settings-acp-secret-OPENAI_API_KEY` (input), `-CODEX_AUTH_JSON` (textarea), `-OPENAI_BASE_URL`; Gemini CLI lists `-GOOGLE_APPLICATION_CREDENTIALS_JSON` (textarea), `-GOOGLE_CLOUD_PROJECT`, `-GOOGLE_CLOUD_LOCATION`, `-GOOGLE_GENAI_USE_VERTEXAI`, `-GEMINI_API_KEY`, `-GEMINI_BASE_URL`; Custom lists nothing and `browser eval "document.body.innerText.includes('Credentials')"` is `false`. For Gemini, `control-openhands browser wait 'testid=settings-acp-auth-checking' --state detached --timeout 15000`, then `browser testids --hidden --filter settings-acp-auth` has count `0` (no login, no stored credential); `browser eval "document.querySelector('[data-testid=settings-acp-secret-GEMINI_API_KEY]').type"` is `password`, `GOOGLE_CLOUD_PROJECT` is `text`. Screenshot `--feature F13.acp-preset-credentials --name gemini` after `browser scroll 'testid=settings-acp-secret-GOOGLE_APPLICATION_CREDENTIALS_JSON'`. Cancel (Codex shows `settings-acp-auth-configured` instead while `OPENAI_API_KEY` from `F13.acp-credentials` is still saved).
-- **Menu keyboard (`F13.menu-keyboard`).** Run `control-openhands browser goto /settings/agents`. It needs a non-active row: run `control-openhands browser click 'testid=add-agent-profile'`, `control-openhands browser fill 'testid=agent-profile-name-input' QA_kb`, `control-openhands browser click 'testid=save-agent-profile-btn'` and `control-openhands browser wait-text 'Profile "QA_kb" created' --timeout 10000`. Open its menu with `control-openhands browser click 'testid=agent-profile-row >> has-text=QA_kb >> testid=agent-profile-menu-trigger'` and right away run `control-openhands browser eval "document.activeElement?.dataset?.testid"`, then `control-openhands browser press ArrowDown` and the same eval. Expected: `agent-profile-edit`, then `agent-profile-set-active` (opening the menu moves focus to its first item, as the LLM profile menu does in `F10.actions-menu`). Known failure: both evals read `agent-profile-menu-trigger`; focus stays on the trigger and ArrowDown does nothing (#18060). Then run `control-openhands browser focus 'testid=agent-profile-edit'`, and `control-openhands browser press ArrowDown` followed by that eval four times: `agent-profile-set-active`, `agent-profile-delete`, `agent-profile-edit`, `agent-profile-set-active`; `browser press ArrowUp` returns to `agent-profile-edit`. `control-openhands browser press Escape` closes the menu (`control-openhands browser count 'testid=agent-profile-actions-menu'` is `0`); reopen it, run `control-openhands browser focus 'testid=agent-profile-delete'` and `control-openhands browser press Tab`: closed; reopen it and run `control-openhands browser mouse-click 900 600`: closed. Active row: open its menu with `control-openhands browser click '[data-testid=agent-profile-row]:has([data-testid=agent-profile-active-badge]) >> testid=agent-profile-menu-trigger'` (`control-openhands browser snapshot 'testid=agent-profile-actions-menu'` shows `menuitem "Set as active" [disabled]`), run `control-openhands browser focus 'testid=agent-profile-edit'`, then `control-openhands browser press ArrowDown` and the eval, then `control-openhands browser press ArrowUp` and the eval. Expected: `agent-profile-delete` (the disabled **Set as active** is skipped), then `agent-profile-edit`. Known failure: `agent-profile-edit` (ArrowDown tries to focus the disabled item, which cannot take focus), then `agent-profile-delete` (ArrowUp wraps) (#18060). With the menu still open, run `control-openhands browser focus 'testid=agent-profile-edit'` and `control-openhands browser press Enter`: `control-openhands browser text 'testid=agent-profile-editor-title'` is `Edit agent profile`. Leave the editor with `control-openhands browser click 'testid=cancel-agent-profile-btn'` (`browser count 'testid=add-agent-profile'` is `1`). Delete `QA_kb`: reopen its menu, `control-openhands browser click 'testid=agent-profile-delete'`, `control-openhands browser click 'testid=delete-agent-profile-confirm'` and `control-openhands browser wait-text 'Profile "QA_kb" deleted' --timeout 10000`.
-- **Delete (`F13.delete`).** Run `control-openhands browser click 'testid=agent-profile-row >> has-text=QA_acp_renamed >> testid=agent-profile-menu-trigger'`, `control-openhands browser click 'testid=agent-profile-delete'`; `control-openhands browser text 'role=dialog'` reads `Delete Profile` and `Are you sure you want to delete the profile "QA_acp_renamed"? This action cannot be undone.` `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps the row (count `1`). Repeat and `control-openhands browser click 'testid=delete-agent-profile-confirm'`, `browser wait-text 'Profile "QA_acp_renamed" deleted' --timeout 10000`, `browser reload`: count `0`. Delete the active `QA_oh` the same way: after `browser reload`, `browser count 'testid=agent-profile-active-badge'` is `0` and `api GET /api/agent-profiles` has `active_agent_profile_id` `null`. Delete `QA_codex` and `default`: the list again shows one row, `default` / `deepseek-flash` / `Default`, with a new id (the server re-seeds it).
+- **Menu keyboard (`F13.menu-keyboard`).** Run `control-openhands browser goto /settings/agents`. It needs a non-active row: run `control-openhands browser click 'testid=add-agent-profile'`, `control-openhands browser fill 'testid=agent-profile-name-input' QA_kb`, `control-openhands browser click 'testid=save-agent-profile-btn'` and `control-openhands browser wait-text 'Profile "QA_kb" created' --timeout 10000`. Open its menu with `control-openhands browser click 'testid=agent-profile-row >> has-text=QA_kb >> testid=agent-profile-menu-trigger'` and right away run `control-openhands browser eval "document.activeElement?.dataset?.testid"`: `agent-profile-edit` (opening the menu moves focus to its first enabled item, as the LLM profile menu does in `F10.actions-menu`; fixed by #18112). Then `control-openhands browser press ArrowDown` followed by that eval four times: `agent-profile-set-active`, `agent-profile-delete`, `agent-profile-edit`, `agent-profile-set-active`; `browser press ArrowUp` returns to `agent-profile-edit`. `control-openhands browser press Escape` closes the menu (`control-openhands browser count 'testid=agent-profile-actions-menu'` is `0`) and returns focus to the row's own trigger (`control-openhands browser eval "(()=>{const a=document.activeElement;const r=a.closest('[data-testid=agent-profile-row]');return a.dataset.testid+'@'+(r?r.innerText.split('\\n')[0]:'-')})()"` is `agent-profile-menu-trigger@QA_kb`); reopen it and `control-openhands browser press Tab`: closed, and focus moves on past the trigger to the next row's trigger; keyboard open (`control-openhands browser focus` on the trigger, then `browser press Enter`) also lands on `agent-profile-edit`; reopen it and run `control-openhands browser mouse-click 900 600`: closed. Active row: open its menu with `control-openhands browser click '[data-testid=agent-profile-row]:has([data-testid=agent-profile-active-badge]) >> testid=agent-profile-menu-trigger'` (`control-openhands browser snapshot 'testid=agent-profile-actions-menu'` shows `menuitem "Set as active" [disabled]`; focus is already on `agent-profile-edit`), then `control-openhands browser press ArrowDown` and the eval, then `control-openhands browser press ArrowUp` and the eval: `agent-profile-delete` (the disabled **Set as active** is skipped), then `agent-profile-edit` (`control-openhands browser screenshot --feature F13.menu-keyboard --name active-row-menu`). At `browser viewport phone` the menu opens inside the viewport with the same focus order. With the menu still open, run `control-openhands browser focus 'testid=agent-profile-edit'` and `control-openhands browser press Enter`: `control-openhands browser text 'testid=agent-profile-editor-title'` is `Edit agent profile`. Leave the editor with `control-openhands browser click 'testid=cancel-agent-profile-btn'` (`browser count 'testid=add-agent-profile'` is `1`). Delete `QA_kb`: reopen its menu, `control-openhands browser click 'testid=agent-profile-delete'`, `control-openhands browser click 'testid=delete-agent-profile-confirm'` and `control-openhands browser wait-text 'Profile "QA_kb" deleted' --timeout 10000`.
+- **Delete (`F13.delete`).** Run `control-openhands browser click 'testid=agent-profile-row >> has-text=QA_acp_renamed >> testid=agent-profile-menu-trigger'`, `control-openhands browser click 'testid=agent-profile-delete'`; `control-openhands browser text 'role=dialog'` reads `Delete Profile` and `Are you sure you want to delete the profile "QA_acp_renamed"? This action cannot be undone.` `control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'` keeps the row (count `1`). Repeat and `control-openhands browser click 'testid=delete-agent-profile-confirm'`, `browser wait-text 'Profile "QA_acp_renamed" deleted' --timeout 10000`, `browser reload`: count `0`. Delete the active `QA_oh` the same way: after `browser reload`, `browser count 'testid=agent-profile-active-badge'` is `0` and `api GET /api/agent-profiles` has `active_agent_profile_id` `null`. Delete `QA_codex`, `QA_opencode`, `QA_pi` and `default`: the list again shows one row, `default` / `deepseek-flash` / `Default`, with a new id (the server re-seeds it).
- **Phone (`F13.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings/agents`, `control-openhands browser bbox 'testid=agent-profile-row'` (`insideViewport` `true`, `pageHorizontalOverflow` `false`) and `browser screenshot --feature F13.phone --name list`. Open the row menu: `browser bbox 'testid=agent-profile-actions-menu'` is inside the viewport. `browser press Escape`, click `testid=add-agent-profile`: `browser bbox 'testid=agent-settings-screen'` is 348 px wide at x 16 with no page overflow (`insideViewport` is `false` only because the form is taller than the screen). Switch to ACP, `browser scroll 'testid=settings-acp-secret-ANTHROPIC_API_KEY'` and screenshot `--name acp-credentials`. Cancel and `control-openhands browser viewport desktop`.
- **Errors.** After the family, `control-openhands browser errors --app-only` shows no page errors and no `[i18n] Missing translation` warnings (the Parallel tool calls label and description are translated since #18035), only the deliberate 422s from the dangling-MCP launch.
- **Blocked (`F13.acp-conversation`, `F13.cloud-read-only`).** Record `control-openhands evidence add --feature F13.acp-conversation --result blocked ...` naming the missing provider CLI/account, and the same for `F13.cloud-read-only` naming the Cloud member login.
@@ -78,7 +82,9 @@ Preconditions:
- The editor is not a route: `browser url` stays `/settings/agents` and `browser reload` drops unsaved edits back to the list. The settings page header (`settings-page-subtitle`) is hidden while it is open.
- Autocomplete dropdowns: clicking an input that already shows a value can open an empty listbox (the text filters it), and an option click then times out. The toggle-button opener does not always open the list either: on the Edit editor's `agent-profile-llm-selector` (bottom of the form) the option click timed out 5 of 5 times right after opening the editor, and the model list's `Custom` option once detached mid-click after a preset change. `browser choose` was reliable on every dropdown. A listbox also closes if you spend a command (snapshot, eval) in between, so click the option right after opening.
-- `Save` is disabled for a duplicate name with no message and no red rule (`aria-invalid` stays `false`) (#17938); check the name before suspecting the form.
+- A taken name marks the field invalid with an alert since #18144 (closed #17938; verified 2026-10-13); the alert reuses the Model Router's `A meta-profile with this name already exists. …` (Known failure, #18383; see `F13.name-validation`). A checkout without #18144 disables Save silently.
+- `has-text=default` also matches the active row's `Default` badge (Playwright's text match ignores case), so with several profiles `'testid=agent-profile-row >> has-text=default'` hits two rows; select the seeded profile with `'testid=agent-profile-row >> nth=-1'` (it sorts last) or by its badge.
+- Model lookups (`F13.acp-model-discovery`) spawn the provider CLI on the agent-server machine through npx with the profile's allowed secrets; they send no prompt. A failed lookup is retried each time the preset is picked again; a successful one is cached for about five minutes per preset and secret set.
- Switch rows are `<input>`s inside labels (#17900): click the label text (`'testid=agent-settings-tool-list >> text=<tool>'`, `'testid=agent-settings-mcp-list >> text=<name>'`) and read `.checked` with `browser eval`. A bare `label` selector segment is parsed as `label=`, not CSS.
- The Default badge, the **Set as active** item and the `Switched to profile` toast all refer to the same active pointer; the wording differs from the LLM page (**Set as default**).
- The OpenHands row's grey text is the LLM profile name, not the kind. A fresh run's `default` shows `default` there although no LLM profile of that name exists until it is edited (`F13.stale-llm-ref`).
@@ -88,5 +94,5 @@ Preconditions:
- **Choose secrets** on an ACP profile also selects provider secret names that are not saved (`CODEX_AUTH_JSON`, `OPENAI_BASE_URL`); they show as switches without descriptions.
- The empty state (`agent-profiles-empty`) and the load-error state (`agent-profiles-load-error`) are not reachable on a local backend: deleting the last profile re-seeds `default`, and with the agent-server stopped the app swaps to **Manage backends** after a reload, or keeps the cached list without one.
- The refused-launch toast text comes from the Agent Server and changes between versions (`MCP server(s) not configured: <name>` on 1.53.0): assert that one toast names the server and the prompt stays, not the exact wording.
-- Row-menu keyboard: on the active row, ArrowDown from **Edit** keeps focus on Edit because the handler moves focus to the next item without skipping the disabled **Set as active**, and a disabled button cannot take focus; reach **Delete** with ArrowUp. Opening the menu also leaves focus on the trigger (`F13.menu-keyboard`, an accessibility bug). Both are open as #18060. The LLM profile menu on Settings → LLM had the same defects: #18019 fixed only that menu (`F10.actions-menu`) and closed #17934, so #17934 being closed says nothing about this menu.
+- Row-menu keyboard: #18112 (closed #18060) ported #18019's LLM-menu fix: opening focuses the first enabled item, arrows skip the disabled **Set as active**, and Escape/Tab return focus to the trigger first (verified 2026-10-13 on desktop and phone). A checkout without it leaves focus on the trigger and ArrowDown stuck on the active row's Edit.
- #18035 (closed #17939) gave the Add editor its own description and translated the Parallel tool calls field. A checkout without it shows the LLM page's `Configure your LLM settings below, then click Save to create this profile.` and logs `[i18n] Missing translation for key "SCHEMA$TOOL_CONCURRENCY_LIMIT$LABEL"` / `$DESCRIPTION` whenever the editor renders.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F16-application-settings.md b/.agents/skills/verify-openhands/references/feature-map/F16-application-settings.md
index 212ad1fd12..13fdf50eb8 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F16-application-settings.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F16-application-settings.md
@@ -25,11 +25,12 @@ Source: `src/routes/app-settings.tsx`, `src/components/features/settings/app-set
- `F16.voice-endpoint`: Voice input Base URL, API Key (masked) and Model save on every keystroke in this browser only, independently of Save; the key lives in session storage.
- `F16.git-identity`: Git Username and Git Email save with the form, persist after a reload, and are what the agent's commits use.
- `F16.git-identity-validation`: an email without `@` is refused by native validation; empty fields save the defaults `openhands` / `[email protected]`.
-- `F16.save-states`: Save is enabled only while a saved field differs from the stored value; while a save is pending the whole form, Save included, is replaced by the `app-settings-skeleton` (so the "Saving..." label in the source never shows); success toasts "Settings saved", failure toasts the HTTP error and should keep the user's edits for a retry.
+- `F16.save-states`: Save is enabled only while a saved field differs from the stored value; while a save is pending the whole form, Save included, is replaced by the `app-settings-skeleton` (so the "Saving..." label in the source never shows); success toasts "Settings saved", failure toasts the server's message (`An error occurred` when it has none) and should keep the user's edits for a retry.
- `F16.keyboard`: every control, including the three switches, is reachable with Tab and exposed to assistive technology.
- `F16.phone`: the form fits a 390 px viewport without horizontal overflow and Save is reachable by scrolling.
- `F16.title-model-clear`: the Title generation model combobox has a clear (×) button, shown on hover; it resets the choice to Automatic (recommended).
- `F16.dropdown-filter`: typing into the Language (or any) combobox filters its options; Escape restores the stored value and leaves Save disabled.
+- `F16.backend-switch`: switching the active backend in the backend selector while this page is open shows the new backend's stored preferences (the footer already names it), also when switching back to a backend the page has already loaded. Known failure, see its bullet.
- `F16.browser-scope`: backend-saved preferences (language and the rest of the Save group) follow the user to a fresh browser profile, while theme and checklist visibility return to their defaults there.
## How to get to it (user POV)
@@ -66,12 +67,13 @@ Preconditions:
- **Voice input endpoint (`F16.voice-endpoint`).** Run `control-openhands browser fill 'testid=transcription-base-url-input' http://127.0.0.1:9/v1`, `control-openhands browser fill 'testid=transcription-api-key-input' qa-dummy-key`, `control-openhands browser fill 'testid=transcription-model-input' qa-whisper`, then `control-openhands browser enabled 'testid=submit-button'` (`false`) and `control-openhands browser attr 'testid=transcription-api-key-input' type` (`password`). After `control-openhands browser reload`, `control-openhands browser value 'testid=transcription-model-input'` is `qa-whisper` (same for the other two). `control-openhands browser eval "localStorage.getItem('openhands-transcription-endpoint') + ' | session=' + sessionStorage.getItem('openhands-transcription-api-key')"` reads `{"baseUrl":"http://127.0.0.1:9/v1","model":"qa-whisper"} | session=qa-dummy-key`; the API body has no `qa-whisper`. Clear each with `control-openhands browser fill 'testid=transcription-base-url-input' ''` (and the other two). Using the endpoint from the composer microphone is not driven here (needs microphone capture and a transcription server).
- **Git identity (`F16.git-identity`).** Run `control-openhands browser fill 'testid=git-user-name-input' 'QA Tester'`, `control-openhands browser fill 'testid=git-user-email-input' '[email protected]'`, `control-openhands browser click 'testid=submit-button'`, `control-openhands browser wait-text 'Settings saved'`, `control-openhands browser reload`, then `control-openhands browser value 'testid=git-user-name-input'` (`QA Tester`) and `control-openhands api GET /api/settings` (`git_user_name`, `git_user_email` set). Agent half: `control-openhands conversation start --prompt "Run exactly this command and reply with only its output: env | grep -c '^GIT_'; git init -q qa_t && cd qa_t && git commit --allow-empty -qm x; git log -1 --format='%an <%ae>'" --wait --timeout 240`, then `control-openhands conversation events <id> --kinds ObservationEvent,MessageEvent` with the `id` from the start output. Expected: `QA Tester <[email protected]>`. **Known failure:** the observation is `0 Author identity unknown ...`: the identity is stored only in `misc_settings.app_preferences` and never reaches the agent.
- **Git validation and defaults (`F16.git-identity-validation`).** Run `control-openhands browser fill 'testid=git-user-email-input' 'not-an-email'`, `control-openhands browser click 'testid=submit-button'`, then `control-openhands browser eval "document.querySelector('[data-testid=git-user-email-input]').validationMessage"` (`Please include an '@' in the email address. ...`); the API email is unchanged. Then `control-openhands browser fill 'testid=git-user-email-input' ''`, `control-openhands browser fill 'testid=git-user-name-input' ''`, click submit, `control-openhands browser wait-text 'Settings saved'`, `control-openhands browser reload`: the inputs read `openhands` and `[email protected]`, which also restores the baseline.
-- **Save button states (`F16.save-states`).** Click the analytics label once: `control-openhands browser enabled 'testid=submit-button'` is `true`; click it again: `false` (back to the stored value). Each successful save above made while the UI is in English shows the toast found by `control-openhands browser wait-text 'Settings saved'`; the Arabic save and the English restore in `F16.language` are made from a French and an Arabic UI and toast `Paramètres enregistrés` and `تم حفظ الإعدادات` instead (see Gotchas). Pending and failure: run `control-openhands service stop agent-server` (the open page keeps its form), click `testid=app-settings-screen >> text=Sound Notifications`, start a sampler with `control-openhands browser eval "(() => { window.__seen = []; window.__iv = setInterval(() => { const s = document.querySelector('[data-testid=submit-button]'); const k = (s ? s.textContent : '-') + ' skeleton=' + !!document.querySelector('[data-testid=app-settings-skeleton]'); if (window.__seen.at(-1) !== k) window.__seen.push(k); }, 10); return 'started'; })()"`, click `testid=submit-button`, `control-openhands browser wait-text 'HTTP request failed'` (the toast starts `HTTP request failed (502 Bad Gateway)` and names the refused Agent Server port), then `control-openhands browser eval "(() => { clearInterval(window.__iv); return window.__seen.join(' -> '); })()"`: it starts with `Save Changes skeleton=false -> - skeleton=true`, i.e. the form and its Save button are replaced by the skeleton while pending; `Saving...` never appears. By the time the failure toast is read the form has usually come back, adding `-> Save Changes skeleton=false`; assert the prefix. Expected after the failure: the Sound switch stays on so the user can retry. **Known failure:** `control-openhands browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"` is `false` and Save is disabled: the edit is silently discarded. Bring the backend back with `control-openhands restart`, `control-openhands doctor`, `control-openhands browser goto /settings/app`.
+- **Save button states (`F16.save-states`).** Click the analytics label once: `control-openhands browser enabled 'testid=submit-button'` is `true`; click it again: `false` (back to the stored value). Each successful save above made while the UI is in English shows the toast found by `control-openhands browser wait-text 'Settings saved'`; the Arabic save and the English restore in `F16.language` are made from a French and an Arabic UI and toast `Paramètres enregistrés` and `تم حفظ الإعدادات` instead (see Gotchas). Pending and failure: run `control-openhands service stop agent-server` (the open page keeps its form), click `testid=app-settings-screen >> text=Sound Notifications`, start a sampler with `control-openhands browser eval "(() => { window.__seen = []; window.__iv = setInterval(() => { const s = document.querySelector('[data-testid=submit-button]'); const k = (s ? s.textContent : '-') + ' skeleton=' + !!document.querySelector('[data-testid=app-settings-skeleton]'); if (window.__seen.at(-1) !== k) window.__seen.push(k); }, 10); return 'started'; })()"`, click `testid=submit-button`, `control-openhands browser wait-text 'An error occurred'` (after three `PATCH /api/settings` attempts answer `502`, `browser network --filter /api/settings` shows them; the ingress's plain-text 502 body carries no server message, so the toast is the generic one, #18051), then `control-openhands browser eval "(() => { clearInterval(window.__iv); return window.__seen.join(' -> '); })()"`: it starts with `Save Changes skeleton=false -> - skeleton=true`, i.e. the form and its Save button are replaced by the skeleton while pending; `Saving...` never appears. By the time the failure toast is read the form has usually come back, adding `-> Save Changes skeleton=false`; assert the prefix. Expected after the failure: the Sound switch stays on so the user can retry. **Known failure:** `control-openhands browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"` is `false` and Save is disabled: the edit is silently discarded. Bring the backend back with `control-openhands restart`, `control-openhands doctor`, `control-openhands browser goto /settings/app`.
- **Keyboard and screen readers (`F16.keyboard`).** Run `control-openhands browser focus 'testid=color-theme-input'`, then repeat `control-openhands browser press Tab` and `control-openhands browser eval "(document.activeElement.getAttribute('data-testid')||'') + ' ' + document.activeElement.tagName"`. Expected (the acceptance criterion): focus visits the three switches before `title-llm-profile-input`. **Known failure, today's result:** the first Tab lands on `title-llm-profile-input`; `control-openhands browser snapshot 'testid=app-settings-screen' --feature F16.keyboard --name aria` shows the switches only as `text: Send anonymous usage data Sound Notifications Show Getting Started checklist`, with no switch or checkbox nodes.
- **Phone layout (`F16.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /settings/app`, `control-openhands browser bbox 'testid=app-settings-screen'` (`pageHorizontalOverflow: false`, width 348 at x 16), `control-openhands browser screenshot --feature F16.phone --name top`, `control-openhands browser scroll 'testid=submit-button'`, `control-openhands browser bbox 'testid=submit-button'` (`insideViewport: true`) and `control-openhands browser screenshot --feature F16.phone --name bottom`. Return with `control-openhands browser viewport desktop`.
- **Clear the title model (`F16.title-model-clear`).** Run `control-openhands browser click 'testid=title-llm-profile-input'`, `control-openhands browser click 'role=option >> has-text=deepseek-flash'` (Save enables), `control-openhands browser hover 'testid=title-llm-profile-input'`, then `control-openhands browser click 'testid=title-llm-profile-input >> xpath=../..//button[not(@aria-label)]'`. `control-openhands browser value 'testid=title-llm-profile-input'` reads `Automatic (recommended)` and `control-openhands browser enabled 'testid=submit-button'` is `false`. Without the hover the click times out (`<div ...> intercepts pointer events`).
- **Filter a dropdown by typing (`F16.dropdown-filter`).** Run `control-openhands browser fill 'testid=language-input' Deu` and `control-openhands browser snapshot 'role=listbox'`: the only option is `Deutsch`. Save is briefly `true` while the text is typed; `control-openhands browser press Escape` restores `control-openhands browser value 'testid=language-input'` to `English` and `control-openhands browser enabled 'testid=submit-button'` to `false`.
- **Browser vs backend scope (`F16.browser-scope`).** Choose `Deutsch` in `testid=language-input` and save, choose `Solarized Light` in `testid=color-theme-input`, and hide the checklist with `control-openhands browser click 'testid=show-getting-started-checklist-switch >> xpath=ancestor::label'` (the label text is German now). Then `control-openhands browser reset`, `control-openhands onboard --skip`, `control-openhands browser goto /settings/app`, `control-openhands browser wait 'testid=submit-button'`: `control-openhands browser text 'testid=submit-button'` is `Änderungen speichern` and `control-openhands browser value 'testid=language-input'` is `Deutsch` (backend), while `control-openhands browser value 'testid=color-theme-input'` is `OpenHands-Neutral`, `control-openhands browser eval "localStorage.getItem('openhands-color-theme')"` is `null` and `control-openhands browser count 'testid=sidebar-onboarding-checklist'` is `1` (browser-only, back to defaults). Restore English (the option keeps its English name in the German UI): `control-openhands browser click 'testid=language-input'`, `control-openhands browser click 'role=option[name="English"]'`, `control-openhands browser click 'testid=submit-button'`, `control-openhands browser reload`, `control-openhands browser wait 'testid=submit-button'`; `control-openhands browser text 'testid=submit-button'` reads `Save Changes` and `control-openhands api GET /api/settings --pick misc_settings.app_preferences.language` is `en`.
+- **Backend switch in place (`F16.backend-switch`).** Needs a second backend with a different Git username: the second stack from F25's Preconditions added as `QA_Second` (F25 Add bullet), arranged with `control-openhands api PATCH /api/settings --run "$OH_VERIFY_RUN_2" --write --data '{"misc_settings_diff":{"app_preferences":{"git_user_name":"QA Second Git"}}}'`. With Local active, run `control-openhands browser goto /settings/app` and `control-openhands browser reload`; `browser value 'testid=git-user-name-input'` is `openhands`. Switch without leaving the page: `control-openhands browser click 'testid=backend-selector'`, `control-openhands browser click 'testid=backend-selector >> role=option[name="Connected QA_Second"]'`, `control-openhands browser wait 'testid=environment-switch-overlay' --state detached --timeout 10000`, wait a few seconds: the value is `QA Second Git` and `browser text 'testid=backend-synced-settings-badge'` names QA_Second (a first visit to a backend loads fresh). Switch back the same way to `Connected Local`. Expected: `openhands` beside `synced from Local backend`. Known failure (reproduced 2026-10-13 on main 2bdc0e9d6 and on 553d45191, #18388): the footer names Local but the form still shows `QA Second Git`, and it stays so on further switches until the page remounts (another settings page and back, or a reload). The Git fields are uncontrolled inputs (`defaultValue` in `src/routes/app-settings.tsx`) that do not remount when the switched-to backend's settings come from the cache. A Save after any edit then sends the stale Git identity to the active backend (Local's `git_user_name` became `QA Second Git`, reproduced 2026-10-13). Switch back to Local and remove `QA_Second` afterwards (F25).
- After the family, `control-openhands browser errors --app-only` reports `appErrors: 0`. Requests to `registry.npmjs.org` (update check) and Google Fonts fail through the sandbox proxy; they are not app errors.
## Gotchas
diff --git a/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md b/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md
index 12c5967def..f560e8615e 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F17-mcp-servers.md
@@ -72,8 +72,8 @@ Preconditions:
- **Tablet selector (`F17.tablet-selector`).** Run `control-openhands browser viewport tablet`, `control-openhands browser goto /mcp`, and `control-openhands browser click 'testid=extensions-compact-navigation >> role=button'`. `control-openhands browser snapshot 'testid=extensions-compact-navigation >> role=navigation'` lists MCP Servers (current), Skills, Plugins and Apps. `control-openhands browser click 'testid=extensions-compact-navigation >> testid=sidebar-extensions-/skills' --expect-url '/skills$'` navigates directly and closes the list. Repeat from Skills to Plugins, Apps and MCP; the selector's current label follows each route. Capture `browser screenshot --feature F17.tablet-selector --name customize`. Check 768 and 1023 px, then 767 and 1024 px where `browser count 'testid=extensions-compact-navigation'` is `0`. Escape after keyboard opening returns focus to the trigger. The same links have `sidebar-extensions-*` IDs in the hidden desktop nav, so scope every tablet action to `extensions-compact-navigation`.
- **Phone hub (`F17.mobile-hub`, `F17.phone`).** Run `control-openhands browser viewport phone`, `control-openhands browser goto /customize` and `control-openhands browser text 'testid=extensions-mobile-hub'` (the same five lines as the desktop aside); `control-openhands browser screenshot --feature F17.mobile-hub --name hub`. Run `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'`; `control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-label` is `Customize`, and `control-openhands browser count 'testid=extensions-navbar-desktop >> visible'` is `0`. `control-openhands browser bbox 'testid=mcp-page'` has `insideViewport` `true` and `pageHorizontalOverflow` `false`; `control-openhands browser screenshot --feature F17.phone --name mcp-page` shows the header, toolbar and one column of cards. Run `control-openhands browser click 'testid=sidebar-mobile-back-button' --expect-url '/customize(\?|$)'`; `control-openhands browser count 'testid=extensions-mobile-hub'` is `1`. Drawer entry: `control-openhands browser goto /conversations`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'` and `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=sidebar-skills-link' --expect-url '/customize(\?|$)'`; the hub is shown. Tablets get the hub too: `control-openhands browser viewport tablet` (820 px) keeps it on `/customize`; run `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'`, then `control-openhands browser visible 'testid=extensions-navbar-desktop'` and `control-openhands browser visible 'testid=sidebar-mobile-back-button'` (both `false`), `control-openhands browser bbox 'role=main'` (520 px wide, `pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F17.mobile-hub --name tablet-mcp`; the rail's `control-openhands browser click 'testid=sidebar-skills-link' --expect-url '/customize(\?|$)'` brings the hub back. Then `control-openhands browser viewport desktop` and `control-openhands browser wait-url '/mcp(\?|$)'`: widening on `/customize` redirects to `/mcp`.
- **Widths around the breakpoint (`F17.breakpoint-sweep`).** For each width `W` in `767`, `768`, `820`, `1023`, `1024`, `1440` run `control-openhands browser viewport Wx1024` and `control-openhands browser goto /customize`. Below 1024 px `control-openhands browser visible 'testid=extensions-mobile-hub'` is `true` and `control-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'` opens the MCP page; from 1024 px up `control-openhands browser wait-url '/mcp(\?|$)'` passes at once and `control-openhands browser count 'testid=extensions-mobile-hub'` is `0`. On `/mcp`, `control-openhands browser visible 'testid=extensions-navbar-desktop'` is `false` below 1024 px and `true` from 1024 px (the switch is exactly 1023 → 1024), `control-openhands browser visible 'testid=mcp-add-custom-server'` is `true`, `control-openhands browser bbox 'testid=mcp-search-input'` is wider than 150 px (622, 323, 375, 578, 257 and 673 today) and `control-openhands browser bbox 'role=main'` has `pageHorizontalOverflow` `false` with equal `scrollWidth` and `clientWidth` (`main` is full width at 767 px, `W − 300` beside the rail from 768 to 1023 px, `W − 640` beside the rail and the aside from 1024 px). `control-openhands browser fill 'testid=mcp-search-input' GitHub` keeps `control-openhands browser count 'testid=mcp-marketplace-card-github'` at `1`; `control-openhands browser click 'testid=mcp-search-clear'`. At the boundary take `control-openhands browser screenshot --feature F17.breakpoint-sweep --name mcp-1023` and `--name mcp-1024`. Finish with `control-openhands browser viewport desktop`.
-- **Page and empty state (`F17.page-states`).** On a fresh run run `control-openhands browser goto /mcp`, `control-openhands browser text 'testid=mcp-installed-empty'` (`No MCP servers installed yet.` and `Pick one from the marketplace below to get started.`) and `control-openhands browser count '[data-testid^="mcp-marketplace-card-"]'` (`55` today; the catalog ships with `@openhands/extensions`). `control-openhands browser eval "[...document.querySelectorAll('main h2')].map(h=>h.textContent)"` is `["Model Context Protocol (MCP)","Installed","Library"]`. Take `control-openhands browser screenshot --feature F17.page-states --name empty-desktop`. After the family, `control-openhands browser errors --app-only` shows `pageErrors` `0`.
-- **Search (`F17.search`).** Run `control-openhands browser fill 'testid=mcp-search-input' time` and `control-openhands browser count '[data-testid^="mcp-marketplace-card-"]'` (`1`, `mcp-marketplace-card-time`). Fill `qa-zzz-nothing`; `control-openhands browser text 'testid=mcp-marketplace-empty'` is `No matches for your search.` (the installed list's search needs installed cards: it is driven at the end of `F17.install-stdio`). Run `control-openhands browser click 'testid=mcp-search-clear'`; `control-openhands browser value 'testid=mcp-search-input'` is `""` and the card count is back to `55`.
+- **Page and empty state (`F17.page-states`).** On a fresh run run `control-openhands browser goto /mcp`, `control-openhands browser text 'testid=mcp-installed-empty'` (`No MCP servers installed yet.` and `Pick one from the marketplace below to get started.`) and `control-openhands browser count '[data-testid^="mcp-marketplace-card-"]'` (`56` with `@openhands/extensions` 0.30.0, #18336, which added an installable Bitbucket card; `55` before; the catalog ships with `@openhands/extensions`). `control-openhands browser eval "[...document.querySelectorAll('main h2')].map(h=>h.textContent)"` is `["Model Context Protocol (MCP)","Installed","Library"]`. Take `control-openhands browser screenshot --feature F17.page-states --name empty-desktop`. After the family, `control-openhands browser errors --app-only` shows `pageErrors` `0`.
+- **Search (`F17.search`).** Run `control-openhands browser fill 'testid=mcp-search-input' time` and `control-openhands browser count '[data-testid^="mcp-marketplace-card-"]'` (`1`, `mcp-marketplace-card-time`). Fill `qa-zzz-nothing`; `control-openhands browser text 'testid=mcp-marketplace-empty'` is `No matches for your search.` (the installed list's search needs installed cards: it is driven at the end of `F17.install-stdio`). Run `control-openhands browser click 'testid=mcp-search-clear'`; `control-openhands browser value 'testid=mcp-search-input'` is `""` and the card count is back to `56`.
- **Section filter (`F17.section-filter`).** Run `control-openhands browser click 'testid=mcp-section-filter >> testid=dropdown-trigger'`, `control-openhands browser snapshot 'testid=mcp-section-filter'` (`button "Filter MCP servers" [expanded]: All` and `menu "Filter MCP servers"` with `All` [checked], `Installed`, `Library`) and `control-openhands browser click 'testid=mcp-section-filter-library'`; the `main h2` list above loses `Installed`. Open the dropdown again and click `testid=mcp-section-filter-installed`; `control-openhands browser count 'testid=mcp-marketplace-section'` is `0` and `control-openhands browser text 'testid=mcp-section-filter >> testid=dropdown-trigger'` is `Installed`. Restore with `testid=mcp-section-filter-all`.
- **Open and close the install modal (`F17.library-catalog`).** Run `control-openhands browser click 'testid=mcp-marketplace-card-time'`, `control-openhands browser text 'testid=mcp-install-modal'` (`Time`, its description, `View documentation →`, `Command`, `Cancel`, `Install`) and `control-openhands browser value 'testid=mcp-install-field-command-readonly'` (`uvx mcp-server-time`; `browser enabled` is `false`). Close with `control-openhands browser click 'testid=mcp-install-cancel'`; `control-openhands browser count 'testid=mcp-install-modal'` is `0`. Reopen with `control-openhands browser click 'testid=mcp-marketplace-toggle-time'` and close with `control-openhands browser click 'testid=mcp-install-modal-close'`. Keyboard: `control-openhands browser focus 'testid=mcp-marketplace-card-time'`, `control-openhands browser press Enter` (count `1`), `control-openhands browser press Escape` (count `0`).
- **Remote entry, masked key (`F17.install-remote`).** Run `control-openhands browser click 'testid=mcp-marketplace-card-stripe'`; `control-openhands browser value 'testid=mcp-install-modal >> testid=mcp-install-field-url'` is `https://mcp.stripe.com/` and `browser enabled` on it is `false`. Click `testid=mcp-install-modal >> testid=mcp-install-submit` with the key empty: `control-openhands browser eval "document.querySelector('[data-testid=mcp-install-field-api_key]').validationMessage"` is `Please fill out this field.` and no request is sent. Run `control-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-api_key' rk_test_qa_dummy_000`; `control-openhands browser attr 'testid=mcp-install-modal >> testid=mcp-install-field-api_key' type` is `password` and `control-openhands browser screenshot 'testid=mcp-install-modal' --feature F17.install-remote --name stripe-masked` shows dots. Cancel; never click Install with a dummy key on a hosted server.
@@ -103,7 +103,7 @@ Preconditions:
## Gotchas
-- Server errors on MCP mutations toast the server's message, or `An error occurred` when the body has none (#18051). Expected: one toast per failed action. The stale-editor delete and stale-card toggle 404 paths each produced one error toast on Local desktop and phone on 2026-10-12, after [#18182](https://github.com/OpenHands/OpenHands/pull/18182) fixed [#18181](https://github.com/OpenHands/OpenHands/issues/18181). Use the stale-mutation recipe above; this proof does not cover a backend-down 502 or the conversation Overview toggle.
+- Server errors on MCP mutations toast the server's message, or `An error occurred` when the body has none (#18051). Expected: one toast per failed action. The stale-editor delete and stale-card toggle 404 paths each produced one error toast on Local desktop and phone on 2026-10-12, after [#18182](https://github.com/OpenHands/OpenHands/pull/18182) fixed [#18181](https://github.com/OpenHands/OpenHands/issues/18181). Use the stale-mutation recipe above; this proof does not cover a backend-down 502 or the conversation Overview toggle. A custom server's save (**Save Server** in the edit form, **Add Server** in the add form) whose pre-save connection test fails because the Agent Server is down (`control-openhands service stop agent-server` with the editor open, then `control-openhands restart`) shows one `An error occurred` toast and keeps the editor open since [#18267](https://github.com/OpenHands/OpenHands/pull/18267) (closed #18266; verified 2026-10-13 on Light+ desktop); while the server is down, background `GET /api/settings` polls add their own `An error occurred` toasts every few seconds, so count only the toast that follows the click. A failed add, edit or delete is still sent three times (`withRetry` in `settings-service.api.ts`, 0.5 s and 1 s apart; a `POST 409` for a taken name shows three rows in `browser network`) before its single toast, the same `withRetry` root cause as open [#17932](https://github.com/OpenHands/OpenHands/issues/17932).
- Desktop `/customize` is a client-side redirect: `browser url` may still read `/customize` for a moment; use `wait-url '/mcp(\?|$)'`.
- From 768 to 1023 px the sidebar rail stays and the phone top bar is gone. The compact Customize selector above each detail page provides sibling navigation; the rail's **Customize** link (`sidebar-skills-link`, unscoped at this width) still returns to the hub.
- On a phone the drawer and the hidden desktop rail both render `sidebar-skills-link`; scope it with `testid=sidebar-mobile-drawer >> ...` or the click fails with a strict-mode error, even though `browser testids` lists it once.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F21-automations-dashboard.md b/.agents/skills/verify-openhands/references/feature-map/F21-automations-dashboard.md
index 28e2164baa..61ef95be01 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F21-automations-dashboard.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F21-automations-dashboard.md
@@ -3,14 +3,16 @@
The Automate dashboard (`/automations`) is where a user sees every automation at
a glance and acts on one without opening it. It shows four overview tiles, a
search box, a Filters popover (status, trigger, sort), a grid/list view toggle,
-and Active and Inactive groups of cards or rows with run health, a recent-runs
-sparkline and stats. Each automation has a Play (Run now) button and a kebab
-menu with Run now, View, Export, Edit, Turn on/off and Delete. The page sits in
+a **Drafts** group of saved setup drafts (Resume, Edit, Test, Delete), and Active
+and Inactive groups of cards or rows with run health, a recent-runs sparkline
+and stats. Each automation has a Play (Run now) button and a kebab menu with Run
+now, View, Export, Edit, Turn on/off and Delete; Edit opens the setup page
+(`/automations/setup?automationId=<id>`, F22) in edit mode. The page sits in
a Dashboard/Templates sub-page shell. It is reached from the sidebar, the command
menu or a pinned home route, and it only exists when the automation interface
manifest from `@openhands/extensions` is admitted.
-Source: `src/routes/automations-list.tsx`, `src/components/features/automations/` (`automation-card.tsx`, `automation-list-row.tsx`, `kebab-menu.tsx`, `build-automation-menu-items.tsx`, `delete-confirmation-modal.tsx`, `automation-view-toggle.tsx`, `empty-state.tsx`, `dashboard/`), `src/components/features/manifest/manifest-subpage-layout.tsx`, `src/components/features/manifest/manifest-overview-tiles.tsx`, `src/manifests/automation-insights.ts`, `src/manifests/automation-interface.ts`, `src/hooks/query/use-automations.ts`, `src/hooks/use-pinned-home-route.ts`, `node_modules/@openhands/extensions/automations/interface.json`.
+Source: `src/routes/automations-list.tsx`, `src/components/features/automations/` (`automation-card.tsx`, `automation-list-row.tsx`, `kebab-menu.tsx`, `build-automation-menu-items.tsx`, `delete-confirmation-modal.tsx`, `automation-view-toggle.tsx`, `empty-state.tsx`, `dashboard/`), `src/components/features/manifest/manifest-subpage-layout.tsx`, `src/components/features/manifest/manifest-overview-tiles.tsx`, `src/manifests/automation-insights.ts`, `src/manifests/automation-interface.ts`, `src/hooks/query/use-automations.ts`, `src/hooks/use-open-automation-editor.ts`, `src/hooks/use-start-automation-setup.ts`, `src/utils/automation-state.ts`, `src/hooks/use-pinned-home-route.ts`, `node_modules/@openhands/extensions/automations/interface.json`.
## Sub-features
@@ -24,10 +26,10 @@ Source: `src/routes/automations-list.tsx`, `src/components/features/automations/
- `F21.backend-unavailable`: when the health check fails, the page shows **Automations Unavailable** with a Retry button.
- `F21.list-error`: when the list request fails with nothing cached, the page shows **Failed to load automations** with Retry.
- `F21.add-menu`: the header **Add Automation** menu offers **Create Automation** and **Import automation**; Create Automation opens the guided setup page at `/automations/setup` (F22).
-- `F21.empty-state`: with zero automations the page shows **No automations configured**, the "Create an automation" instructions, a docs link, **Create Automation** and the Recommended automations rail; the view toggle is disabled.
+- `F21.empty-state`: with zero automations and zero saved drafts the page shows **No automations configured**, the "Create an automation" instructions, a docs link, **Create Automation** (opens `/automations/setup`, F22, without creating a conversation) and the Recommended automations rail; the view toggle is disabled.
- `F21.empty-rail`: a Recommended automations card on the empty dashboard opens its template setup at `/automations/new/<template-id>` (F22 owns the setup flow).
-- `F21.overview-tiles`: four tiles summarize the loaded org list: Automations (`N active`), Needs attention (`Latest run failed` or `No latest-run failures`; an enabled automation counts when its latest run is Failed or its task outcome is `failed` or `blocked`, while Partial and Needs review do not count), Total runs and Average duration.
-- `F21.search`: the search box narrows the visible automations client-side by name, prompt, repository or model; the tiles do not change.
+- `F21.overview-tiles`: four tiles summarize the loaded org list (expected: the automations the groups list; Known failure (reproduced 2026-10-13, #18381): they also count hidden DRAFT test automations, see Gotchas): Automations (`N active`), Needs attention (`Latest run failed` or `No latest-run failures`; an enabled automation counts when its latest run is Failed or its task outcome is `failed` or `blocked`, while Partial and Needs review do not count), Total runs and Average duration.
+- `F21.search`: the search box narrows the visible automations client-side by name, prompt, repository or model, and the saved drafts by name, prompt, kind or trigger; the tiles do not change.
- `F21.filters`: the **Filters** popover filters by status (All / Active / Needs attention / Disabled) and trigger (All / Scheduled / Event-driven), counts non-default choices in a badge and offers **Reset all**; it stays open while the user changes several choices.
- `F21.sort`: Sort (Latest run / Most runs / Name) orders automations inside each group and counts as a non-default choice.
- `F21.filtered-empty`: when nothing matches, **No automations match these filters** and **Clear filters** appear; Clear filters resets search, status and trigger but keeps the sort.
@@ -44,9 +46,10 @@ Source: `src/routes/automations-list.tsx`, `src/components/features/automations/
- `F21.run-now`: Play or kebab **Run now** on an enabled automation dispatches a run with the toast **Automation dispatched**; the card moves through Pending/Running to the result. Both are disabled on a disabled automation.
- `F21.run-now-error`: a failed dispatch shows exactly one error toast with the API message; when the automation is gone (`Automation not found`), its card then drops out of the dashboard without a reload.
- `F21.toggle`: kebab **Turn on** / **Turn off** flips the enabled flag immediately (no confirmation on the dashboard) and moves the automation between the Active and Inactive groups.
-- `F21.edit`: kebab **Edit** opens the edit modal prefilled from the automation; Save persists (field-level editing is F23).
+- `F21.edit`: kebab **Edit** opens the setup page in edit mode (`/automations/setup?automationId=<id>`) prefilled from the automation, with **Test**, **Save** and **Close** in its toolbar; Save sends one PATCH and toasts **Automation updated**, Close returns to `/automations` (field-level editing is F23). For a script (tarball) automation it should summarize the saved bundle (**Existing code bundle**). Known failure (reproduced 2026-10-13, #18341): from the kebab it shows generated starter Python and a default setup script instead; a cold load of the same URL shows the bundle summary.
- `F21.export`: kebab **Export** downloads `<name-slug>.automation.json` with `version`, `kind: "automation"` and the spec.
- `F21.delete`: kebab **Delete** asks `Delete "<name>"? This cannot be undone.`; Cancel and the X keep it, Delete removes it for good, and Escape dismisses the dialog.
+- `F21.saved-drafts`: saved setup drafts (#17242) appear in a **Drafts** group above Active/Inactive, one row each with the name (Resume), a pencil (**Edit**), Play (**Test draft**, tooltip **Test Run**; disabled for event-triggered or non-dispatchable drafts) and a trash (**Delete draft**). Resume and Edit open `/automations/setup?draftId=<id>`; Test dispatches a test run (toast **Test run started.**) on a materialized DRAFT-state automation that the groups do not list; Delete asks **Delete draft?** (`Delete “<name>”? This removes the saved setup draft, but does not delete any final automations.`) with Cancel / **Delete draft** and toasts **Draft deleted.**, also removing the draft's materialized test automation. Expected: the confirmation closes on Escape like the automation delete dialog. Known failure (reproduced 2026-10-13, #18382): Escape leaves it open and it has no dialog role.
- `F21.phone`: at 390 px the dashboard has no horizontal overflow, tiles wrap 2×2 and the kebab menu stays inside the viewport.
## How to get to it (user POV)
@@ -58,6 +61,7 @@ Source: `src/routes/automations-list.tsx`, `src/components/features/automations/
- Sub-page navigation: `automations-navbar-desktop` (aside) or `automations-navbar-mobile` (phone strip), links `automations-navigation-list` and `automations-navigation-templates`.
- Header **Add Automation** (`automations-add-automation`) → **Create Automation** (`automations-add-automation-create`, `/automations/setup`, F22) or **Import automation** (`automations-import-automation`, F22); on the empty dashboard, the Recommended automations rail cards (`recommended-automation-rail-card-<id>`).
- Getting-started checklist item **Schedule a task** links to `/automations` (onboarding checklist family).
+- Saved drafts: the **Drafts** group rows (`automation-setup-draft-resume-<draft-id>`, `-edit-`, `-test-`, `-delete-`).
- Per automation: Play (`automation-run-now-<id>`, name "Run now") and kebab (name "Automation actions") on each card or row; the card itself and the row link open the detail page (F23).
## Driving it with control-openhands
@@ -82,9 +86,10 @@ Preconditions:
- **List loading (`F21.list-loading`).** Run `control-openhands browser goto /settings/secrets`, then `control-openhands browser click 'testid=sidebar-automations-link' --observe '[data-testid="automation-card-skeleton"], [data-testid="automations-add-automation"]' --observe-ms 2000`. One observed state is `Add Automation` plus three empty skeleton entries (about 50 ms), followed by `Add Automation` alone.
- **Health loading (`F21.health-loading`).** Blocked on this run. The health-only skeleton (title and three `automation-card-skeleton`, no header buttons) shows only on the first health fetch, which the sidebar checklist always makes before a user can reach the dashboard, and stopping the service makes the fetch fail at once rather than hang.
- **Missing manifest (`F21.manifest-404`).** Use an isolated worktree at the frozen target and a private copy of its pinned `@openhands/extensions` package. Remove only the `AUTOMATION_INTERFACE` export from the copied `automations/index.js` before `npm run build:app`; leave Canvas source and the lockfile unchanged. Serve that frontend against an owned healthy Local backend. Open `/` and `/automations`: the sidebar Automate link should be absent, `/automations` should render 404, and Home should have no **Schedule a task** link, recommendation section, or no-manifest error toast. On `main@3500d9e5` the route/sidebar checks pass but Home shows the dead link and two `No automation interface manifest is admitted` toasts ([#18210](https://github.com/OpenHands/OpenHands/issues/18210); [draft fix PR #18212](https://github.com/OpenHands/OpenHands/pull/18212)). Record the alternate build as fault injection; the unmodified pinned package does include the manifest. Stop the private frontend and remove only this test worktree/build afterward.
-- **Empty state (`F21.empty-state`).** With no automations run `control-openhands browser goto /automations`, `control-openhands browser text 'testid=automations-empty'`, `control-openhands browser enabled 'testid=automations-view-toggle'` and `control-openhands browser screenshot --feature F21.empty-state --name empty`. The text starts `No automations configured`, contains `Create an automation`, `Learn more in the documentation` and `Create Automation`, and lists the Recommended automations; `enabled` is `false`; the tiles read `Automations 0 / 0 active` and `Needs attention 0 / No latest-run failures`. **Create Automation** (`automations-create-automation`) starts a model-backed chat: see F22.
+- **Empty state (`F21.empty-state`).** With no automations run `control-openhands browser goto /automations`, `control-openhands browser text 'testid=automations-empty'`, `control-openhands browser enabled 'testid=automations-view-toggle'` and `control-openhands browser screenshot --feature F21.empty-state --name empty`. The text starts `No automations configured`, contains `Create an automation`, `Learn more in the documentation` and `Create Automation`, and lists the Recommended automations; `enabled` is `false`; the tiles read `Automations 0 / 0 active` and `Needs attention 0 / No latest-run failures`. `control-openhands browser click 'testid=automations-empty >> testid=automations-create-automation' --expect-url '/automations/setup'` opens the setup page (form plus docked composer, F22) and `control-openhands conversation list` is unchanged (no conversation until the user sends a prompt). The empty-state copy still says "Start a new conversation and tell OpenHands to Create an automation".
- **Add Automation menu (`F21.add-menu`).** Run `control-openhands browser click 'testid=automations-add-automation'` and `control-openhands browser snapshot 'testid=automations-add-automation-menu'`: buttons `Create Automation` and `Import automation`. `control-openhands browser press Escape` (or a click on `role=heading[name="Dashboard"]`) makes `browser count 'testid=automations-add-automation-menu'` `0`. Reopen it and `control-openhands browser click 'testid=automations-add-automation-create' --expect-url '/automations/setup'`: the agent-assisted setup page opens. Go back to `/automations`, reopen the menu, and `control-openhands browser click 'testid=automations-import-automation'`: the import modal is covered by F22.
- **Recommended rail on the empty dashboard (`F21.empty-rail`).** With no automations, `control-openhands browser click 'testid=automations-empty >> testid=recommended-automation-rail-card-custom-automation' --expect-url 'automations/new'` lands on `/automations/new/custom-automation` with the **Before you start** prerequisites dialog (F22). `control-openhands browser back` returns to `/automations`; there `browser attr 'testid=recommended-automations-rail-fade-left' data-visible` is `false` and `...-fade-right` is `true` (scrolling is F03.recommended-automations-rail).
+- **Saved drafts (`F21.saved-drafts`, `F21.search`).** Arrange one draft through the setup page (F22's **Open and save a draft**: name `QA_F22 Delta Draft`, prompt `Reply pong. Do not run any tools.`, custom cron `0 0 1 1 *`, Save draft), then `control-openhands browser goto /automations`. `control-openhands browser text 'role=main'` lists `Drafts 1` / `QA_F22 Delta Draft` above the groups, and `control-openhands browser testids 'role=main' --filter draft` lists `automation-setup-draft-<draft-id>`, `-resume-`, `-open-`, `-edit-` (`Edit`), `-test-` (`Test draft`) and `-delete-` (`Delete draft`). `control-openhands browser tooltip 'testid=automation-setup-draft-test-<draft-id>'` is `Test Run`; clicking it toasts `Test run started.` and the draft (`api GET /api/automation/v1/drafts/<draft-id>`) gains `materialized_automation_id` and `last_test_run_id`; that automation has `state` `DRAFT`, is not listed in any group, and its detail page shows the Draft badge (F23.header). `testid=automation-setup-draft-resume-<draft-id>` and `testid=automation-setup-draft-edit-<draft-id>` each open `/automations/setup?draftId=<draft-id>` (`--expect-url '/automations/setup'`) with the saved values. Search narrows drafts too: filling `Delta` leaves 0 rows and 1 draft; `zzqa-nomatch` shows the filtered empty state with no draft. Delete: click `testid=automation-setup-draft-delete-<draft-id>`; `control-openhands browser text 'testid=automation-setup-draft-delete-confirm >> xpath=ancestor::div[2]'` reads `Delete draft?` / `Delete “QA_F22 Delta Draft”? This removes the saved setup draft, but does not delete any final automations.` / `Cancel` / `Delete draft`. Its Cancel (`'testid=automation-setup-draft-delete-confirm >> xpath=ancestor::div[2] >> role=button[name="Cancel"]'`) and a backdrop click (`control-openhands browser mouse-click 1400 950`) close it. Expected: Escape closes it too. Known failure (reproduced 2026-10-13, #18382): `browser press Escape` leaves `browser count 'testid=automation-setup-draft-delete-confirm'` at `1`. `control-openhands browser click 'testid=automation-setup-draft-delete-confirm'` toasts `Draft deleted.`; drafts `total` is `0` and the materialized test automation answers `404`.
- **Arrange two automations (import, F22).** Run `control-openhands browser click 'testid=automations-add-automation'`, `control-openhands browser click 'testid=automations-import-automation'`, `control-openhands browser upload 'testid=automations-import-file' "$OH_VERIFY_RUN/evidence/_fixtures/qa-f21-alpha.automation.json"`, `control-openhands browser click 'testid=import-automation-confirm'`, `control-openhands browser wait 'testid=import-automation-modal' --state detached`. Repeat with `qa-f21-beta.automation.json`. Both arrive disabled, under **Inactive 2**.
- **Grid cards (`F21.card-grid`).** Run `control-openhands browser reload`, `control-openhands browser snapshot 'role=main'` and `control-openhands browser screenshot --feature F21.card-grid --name grid`. Each card shows its name, prompt, pills (`pull_request.opened` + GitHub logo for Beta, `cron` for Alpha), **No activity yet**, and `Runs 0 / Recent success — / Avg. duration —`; both Play buttons are `[disabled]`.
- **Kebab menu (`F21.kebab-menu`).** Run `control-openhands browser click '[data-testid^="automation-card-"] >> has-text=QA_F21 Alpha >> role=button[name="Automation actions"]'` and `control-openhands browser snapshot 'role=list >> has-text=Export'`: buttons `Run now [disabled]`, `View`, `Export`, `Edit`, `Turn on`, `Delete`. `control-openhands browser press Escape`, then `control-openhands browser count 'role=list >> has-text=Export'` is `0`. Reopen it and click `role=heading[name="Dashboard"]`; the count is `0` again.
@@ -97,7 +102,7 @@ Preconditions:
- **Filtered empty and Clear filters (`F21.filtered-empty`).** With `zzqa-nomatch` in the search box run `control-openhands browser text 'testid=automations-filtered-empty'` (`No automations match these filters` / `Clear filters`), `control-openhands browser click 'testid=automations-clear-filters'`, `control-openhands browser value 'role=textbox[name="Search automations..."]'` (empty) and the row count (`2`).
- **Filters (`F21.filters`).** Run `control-openhands browser click 'testid=automations-filters >> testid=dropdown-trigger >> nth=0'`, `control-openhands browser snapshot 'testid=automations-filters-menu'` (Filter by status `All statuses`, Filter by trigger `All triggers`, Sort automations `Latest run`), `control-openhands browser click 'testid=automations-filter-status >> testid=dropdown-trigger'`, `control-openhands browser click 'testid=automations-filter-status-disabled'`, then `control-openhands browser text 'testid=automations-filters >> testid=dropdown-trigger >> nth=0'` (`Filters 1`) and the row text (only QA_F21 Beta). The popover stays open: `control-openhands browser count 'testid=automations-filters-menu'` is `1` and `control-openhands browser attr 'testid=automations-filters >> testid=dropdown-trigger >> nth=0' aria-expanded` is `true`. In the same popover run `control-openhands browser click 'testid=automations-filter-trigger >> testid=dropdown-trigger'` and `control-openhands browser click 'testid=automations-filter-trigger-schedule'`: the badge is `Filters 2`, `testid=automations-filtered-empty` appears and the menu count is still `1` (`control-openhands browser screenshot --feature F21.filters --name two-filters`). `control-openhands browser click 'testid=automations-filters-reset'`: both rows return, the button reads `Filters` and the popover stays open. Trigger **Event-driven** (`automations-filter-trigger-event`, chosen in the same open popover) alone leaves only QA_F21 Beta. An outside click closes the popover: `control-openhands browser click 'role=heading[name="Dashboard"]'`, then the menu count is `0` and `aria-expanded` is `false`. Run `control-openhands browser reload` to clear the filter (filters are page state): the next bullets need Alpha visible.
- **Turn off (`F21.toggle`).** In list view run `control-openhands browser click '[data-testid^="automation-list-row-"] >> has-text=QA_F21 Alpha >> role=button[name="Automation actions"]'`, `control-openhands browser click 'role=list >> has-text=Export >> role=button[name="Turn off"]'`, `control-openhands browser count 'testid=confirmation-modal'` (`0`, no confirmation), `control-openhands browser reload`. The page shows **Inactive 2** with the tile at `0 active`, and Play reports `enabled` `false`.
-- **Edit from the dashboard (`F21.edit`).** Turn off (above) left both automations in the Inactive group, as Sort needs. Open Alpha's kebab, `control-openhands browser click 'role=list >> has-text=Export >> role=button[name="Edit"]'`, `control-openhands browser value 'testid=edit-automation-name'` (`QA_F21 Alpha`; `edit-automation-cron` is `0 0 1 1 *`, `edit-automation-model` is `Active profile`), `control-openhands browser fill 'testid=edit-automation-name' 'QA_F21 Zulu'`, `control-openhands browser click 'testid=edit-automation-save'`, `control-openhands browser wait 'testid=edit-automation-save' --state detached`, `control-openhands browser reload`. `control-openhands api GET /api/automation/v1` shows `QA_F21 Zulu` with the schedule unchanged.
+- **Edit from the dashboard (`F21.edit`).** Turn off (above) left both automations in the Inactive group, as Sort needs. Open Alpha's kebab and `control-openhands browser click 'role=list >> has-text=Export >> role=button[name="Edit"]' --expect-url '/automations/setup'`: the URL is `/automations/setup?automationId=<id>`, `control-openhands browser value 'testid=automation-setup-name'` is `QA_F21 Alpha`, `automation-setup-prompt` holds the prompt, `automation-setup-custom-schedule` is `0 0 1 1 *` (Frequency Custom, timezone UTC), Timeout `600`, and `browser testids 'testid=automation-setup-toolbar'` lists `automation-setup-test`, `automation-setup-save` and `automation-setup-close`; `control-openhands conversation list` is unchanged. Run `control-openhands browser fill 'testid=automation-setup-name' 'QA_F21 Zulu'`, `control-openhands browser network --clear`, `control-openhands browser click 'testid=automation-setup-save'` and `control-openhands browser toasts --history` (`Automation updated`); `control-openhands browser network --bodies --filter 'automation/v1'` shows one `PATCH /api/automation/v1/<id>` with `name`, `trigger`, `model: null` (Active profile kept), `agent_profile_id: null`, `timeout` and `prompt`, and `control-openhands api GET /api/automation/v1` shows `QA_F21 Zulu` with the schedule unchanged. The toast sits over the toolbar and stays while the pointer rests on it (see Gotchas): run `control-openhands browser hover 'testid=automation-setup-name'` and wait about 5 s, then `control-openhands browser click 'testid=automation-setup-close' --expect-url '/automations$'`. At phone width the same kebab Edit on QA_F21 Beta (event trigger) shows Event selected with Event source GitHub and no horizontal overflow (`browser bbox 'testid=automation-setup-form'`). Script automation: Known failure (reproduced 2026-10-13, #18341): for a tarball automation (create one with F22's Upload tarball bullet), kebab Edit shows `Custom Python` with generated starter code (`browser value 'testid=automation-setup-custom-code'` contains `def fire_callback` and an empty prompt) and `browser count 'testid=automation-setup-existing-bundle'` is `0`; expected the **Existing code bundle** summary, which a cold `browser goto '/automations/setup?automationId=<id>'` does show.
- **Sort (`F21.sort`).** With QA_F21 Zulu (1 run) and QA_F21 Beta (no runs) both inactive, open Filters, `control-openhands browser click 'testid=automations-sort >> testid=dropdown-trigger'`, `control-openhands browser click 'testid=automations-sort-name'`, then `control-openhands browser text '[data-testid^="automation-list-row-"] >> nth=0'`. Beta comes first, the badge reads `Filters 1` and the popover stays open. Fill the search with `zzqa-nomatch` and click `testid=automations-clear-filters` (a click outside the popover, which closes it): the badge stays `Filters 1` and Beta stays first (the sort is kept). Open Filters and the sort field again and choose `automations-sort-runs`; Zulu comes first. Close the popover with `control-openhands browser click 'role=heading[name="Dashboard"]'` (`browser count 'testid=automations-filters-menu'` is `0`).
- **Export (`F21.export`).** Open Zulu's kebab, `control-openhands browser click 'role=list >> has-text=Export >> role=button[name="Export"]'`, then `control-openhands browser downloads --last 1 --inspect`. The download path ends in `qa-f21-zulu.automation.json` (under `<run>/private/downloads/`); the inspected head holds `"version": 1`, `"kind": "automation"` and a `spec` with name, trigger, `enabled`, prompt, `model` (`null` for Active profile), timeout and timezone.
- **Open the detail page (`F21.open-detail`).** Kebab `role=list >> has-text=Export >> role=button[name="View"]`, `control-openhands browser click '[data-testid^="automation-list-row-"] >> has-text=QA_F21 Zulu >> role=link >> nth=0'`, `control-openhands browser click '[data-testid^="automation-card-"] >> has-text=QA_F21 Zulu >> role=heading'` (grid: switch first with `control-openhands browser click 'testid=automations-view-toggle'` and `control-openhands browser click 'testid=automations-view-toggle-grid'`; the later bullets use cards), and `control-openhands browser focus '[data-testid^="automation-card-"] >> has-text=QA_F21 Beta'` + `control-openhands browser press Enter` each make `control-openhands browser url` read `/automations/<that automation's id>`. Go back with `control-openhands browser back`.
@@ -113,6 +118,9 @@ Preconditions:
- Both sub-page navs are always in the DOM (one hidden by CSS). Unscoped `testid=automations-navigation-templates` is a strict-mode violation; scope it with `testid=automations-navbar-desktop >> ` or `testid=automations-navbar-mobile >> `.
- The pin toggle is invisible until the Automate item is hovered on a fine pointer: `browser hover 'testid=sidebar-automations-link'` before clicking it. The pin is stored per backend and org in `localStorage` (`oh:pinned-home-route:<backend>:<org>`); unpin before leaving the run.
+- Overview tiles count DRAFT-state test automations that the groups hide: after one draft Test the tiles read `Automations 3`, `Total runs 2`, `Average duration 2m` while the page lists two automations with no runs. Known failure (reproduced 2026-10-13, #18381). Run `F21.overview-tiles` with no saved drafts, or delete the draft first (that removes its test automation).
+- The Filters popover's status and trigger choices do not apply to the Drafts group: with status Active and trigger Event-driven, a cron draft stays listed and the filtered empty state does not show (search does filter drafts). Intent undocumented in #17242.
+- The setup page's success toast (`Automation updated`) covers its toolbar's Test, Save and Close and does not time out while the pointer rests on it; a click there fails with "subtree intercepts pointer events". Move the pointer away (`browser hover` on a form field), wait about 5 s, then click.
- `testid=dropdown-trigger` is reused by the backend selector, the Filters button and every inner dropdown. Always scope it (`testid=automations-filters >> testid=dropdown-trigger >> nth=0` for the Filters button, `testid=automations-filter-status >> testid=dropdown-trigger` for a field).
- The Filters popover stays open while choices change and closes only on a click outside it or on the Filters button; Escape does not close it. Open, it covers the right part of the list (in list view the first rows' Play buttons): close it with a click on `role=heading[name="Dashboard"]` before clicking row or card controls.
- A card whose automation was deleted elsewhere stays on the dashboard after its Run now fails with `Automation not found`. Expected: the card drops out once the dispatch returns 404. Known failure: nothing refetches the list after the failed dispatch, so the card stays until a reload or another list refetch (still there 2 minutes later) (#18062).
diff --git a/.agents/skills/verify-openhands/references/feature-map/F22-automation-creation.md b/.agents/skills/verify-openhands/references/feature-map/F22-automation-creation.md
index 30eaac57cd..f86e98c6a7 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F22-automation-creation.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F22-automation-creation.md
@@ -28,7 +28,7 @@ Source: `src/routes/automation-templates.tsx`, `src/routes/automation-setup-rout
- `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, 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-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.
- `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.
@@ -74,8 +74,9 @@ Preconditions:
- **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`, `control-openhands browser count 'testid=recommended-automations-section'` and `control-openhands browser screenshot --feature F22.templates-search --name no-match`. Expected: a "no templates match" message. Actual: the count is `0` and `browser text 'role=main'` is only the title and description; the area under the search box is blank (recorded as `fail`). Clear with `control-openhands browser fill 'role=main >> placeholder=Search automations...' ''` (23 cards again).
- **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'`. Expected: 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`). Known failure: the value is `""` and `option "Default"` has no `[selected]`: switching to Prompt or Plugin stores an empty profile id, and the selector shows that as a blank field instead of `Default` (#18061). `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'`. Expected: `Default` (the choice was cleared, shown as on a fresh form). Known failure: `""`, the same blank field (choosing `Default` from the list blanks it too) (#18061). Choose `Prompt` again before continuing. Creating an automation with a profile is in the Upload tarball bullet below.
+- **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.` 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`.
@@ -109,8 +110,10 @@ Preconditions:
## Gotchas
-- Expected: a completed draft test updates the open Test runs row to Successful automatically. Known failure (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](https://github.com/OpenHands/OpenHands/issues/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.
+- 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](https://github.com/OpenHands/OpenHands/issues/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.
+- A prompt sent from the setup page's docked composer is kept as the home prompt draft (`sessionStorage` `oh:home-prompt-draft`): afterwards the Home composer and every later `/automations/setup` composer (new or edit) open pre-filled with that already-sent text. Expected: a delivered prompt clears the draft. Reproduced twice 2026-10-13 (CLI `conversation start --stay` and a pure UI fill + `submit-button`); Known failure #18379. Clear the composer (`browser fill 'testid=automation-setup-docked-composer >> testid=chat-input' ''`) before reading it in later bullets.
+- 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 uses an inline confirmation, not a `role=dialog`. 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).
@@ -119,7 +122,7 @@ Preconditions:
- 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 (after a switch through Prompt or Plugin, or after picking `Default`) shows as a blank field rather than `Default` (`F22.setup-agent-profile`, #18061).
+- 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 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.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F23-automation-detail.md b/.agents/skills/verify-openhands/references/feature-map/F23-automation-detail.md
index e9e8dc7260..ee89f1ea5c 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F23-automation-detail.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F23-automation-detail.md
@@ -8,10 +8,13 @@ for a script automation, the Script bundle); Configuration (repositories,
trigger, schedule or event source/type/filter, LLM profile); a **Plugins** card
when it has plugins; an Activity card (Created, Last run);
and the **Activity Log** of runs with status, summary, cost, a logs dialog, a
-link to each run's conversation and JSON/CSV export. The **Edit automation**
-dialog changes name, prompt, agent and LLM profile, timeout and the schedule.
+link to each run's conversation and JSON/CSV export. Kebab **Edit** opens the
+setup page in edit mode (`/automations/setup?automationId=<id>`, since #17688),
+which changes name, prompt, agent and LLM profile, timeout and the trigger. A
+DRAFT-state test automation (materialized by a draft Test, F21.saved-drafts)
+shows a **Draft** badge and no on/off switch.
-Source: `src/routes/automation-detail.tsx`, `src/components/features/automations/detail/`, `src/components/features/automations/delete-confirmation-modal.tsx`, `src/hooks/query/use-automation-detail.ts`, `src/utils/automation-preset-sources.ts`, `src/hooks/query/use-bash-command-logs.ts`, `src/hooks/query/use-automation-tarball-files.ts`, `src/utils/automation-schedule.ts`, `src/utils/automation-timeout.ts`, `src/utils/automation-disabled-reason.ts`, `src/utils/automation-activity-log-export.ts`.
+Source: `src/routes/automation-detail.tsx`, `src/components/features/automations/detail/`, `src/hooks/use-open-automation-editor.ts`, `src/utils/automation-edit-draft.ts`, `src/utils/automation-state.ts`, `src/components/features/automations/setup/automation-setup-panel.tsx` (edit mode), `src/components/features/automations/delete-confirmation-modal.tsx`, `src/hooks/query/use-automation-detail.ts`, `src/utils/automation-preset-sources.ts`, `src/hooks/query/use-bash-command-logs.ts`, `src/hooks/query/use-automation-tarball-files.ts`, `src/utils/automation-schedule.ts`, `src/utils/automation-timeout.ts`, `src/utils/automation-disabled-reason.ts`, `src/utils/automation-activity-log-export.ts`.
## Sub-features
@@ -21,7 +24,7 @@ Source: `src/routes/automation-detail.tsx`, `src/components/features/automations
- `F23.not-found`: an unknown id shows **Automation not found** with "The automation you're looking for doesn't exist or has been deleted." and the back link.
- `F23.backend-unavailable`: with the automation service down, the page shows **Automations Unavailable** and **Retry**; Retry recovers once the service is back.
- `F23.load-error`: when the health check is still good but the automation request fails, the page shows **Failed to load automations** and **Retry**.
-- `F23.header`: the header shows the name, the Active/Inactive badge, **Run now** (disabled while inactive), the switch (`Turn on`/`Turn off`) and the **Automation actions** kebab with Export, Tarball, Edit, Turn on/Turn off and Delete.
+- `F23.header`: the header shows the name, the Active/Inactive badge, **Run now** (disabled while inactive), the switch (`Turn on`/`Turn off`) and the **Automation actions** kebab with Export, Tarball, Edit, Turn on/Turn off and Delete. A DRAFT-state test automation shows a **Draft** badge (`active-status-badge-draft`), no switch, no paused banner and a kebab without Turn on/off.
- `F23.toggle`: the header switch flips the enabled flag at once (no confirmation); the badge, switch and Run now follow and survive a reload.
- `F23.disabled-reason`: after **Turn off**, the banner `automation-disabled-reason-banner` reads **Why this is paused** / **Turned off manually** / **Paused <time>**; it is gone while active.
- `F23.run-now`: **Run now** dispatches a run with the toast **Automation dispatched** and a Pending row appears in the log (the button reads **Starting…** only for the few ms of the request).
@@ -44,22 +47,22 @@ Source: `src/routes/automation-detail.tsx`, `src/components/features/automations
- `F23.export`: kebab **Export** downloads `<name-slug>.automation.json` (`version`, `kind: "automation"`, `spec`); an automation's first repository and its plugins go into `spec` as `repository`, `branch` and `plugins`.
- `F23.tarball`: kebab **Tarball** downloads the automation's code bundle.
- `F23.delete`: kebab **Delete** asks `Delete "<name>"? This cannot be undone.`; Cancel keeps it, Delete removes it and returns to `/automations`.
-- `F23.edit-open`: kebab **Edit** opens **Edit automation** prefilled with Name, Prompt ("Edits apply to future runs only."), Agent profile, LLM profile, Timeout (seconds) with its hint, and the schedule.
-- `F23.edit-close`: X, **Cancel**, a backdrop click and Escape close the dialog without saving; reopening shows the stored values.
-- `F23.edit-validation`: an empty name (**Name is required**), a bad timeout (**Timeout must be a valid number** / **must be positive** / **cannot exceed 1800 seconds**) and a bad cron (**Enter a valid cron expression** / **This cron expression will never run**) are refused inline.
-- `F23.edit-save`: Save with no change just closes (no request); a change sends one PATCH, shows **Saving...**, the toast **Automation updated**, and the detail page and API reflect it.
-- `F23.edit-schedule`: Frequency offers Daily, Weekdays (Mon–Fri) and Weekly; Weekly adds **Day of week**; with **Time of day** they are saved as a cron expression and read back on reopen.
-- `F23.edit-time-cleared`: clearing **Time of day** on a preset schedule and saving is refused with a message instead of being dropped.
-- `F23.edit-cron`: a custom cron schedule shows Frequency **Custom** and Time of day disabled, and an editable **Cron expression**.
-- `F23.edit-event-readonly`: for an event automation the dialog shows Trigger Event, Event Source, Event Type and Filter as read-only text and no schedule fields.
-- `F23.edit-save-error`: a failed save shows exactly one error toast with the API message and keeps the dialog open.
-- `F23.phone`: at 390×844 the detail page has no horizontal overflow, and the Edit dialog fits with its title, X and Save reachable.
+- `F23.edit-open`: kebab **Edit** opens the setup page `/automations/setup?automationId=<id>` (#17688; the **Edit automation** modal is gone) prefilled with Name, Prompt, agent profile and LLM profile pickers, the trigger (Schedule with Frequency, or Event), timezone and Timeout seconds, with **Test**, **Save** and **Close** in the toolbar and a docked composer; no conversation exists until a prompt is sent.
+- `F23.edit-close`: **Close** leaves without saving and lands on `/automations` (the dashboard, not the detail page); Escape does nothing on the page.
+- `F23.edit-validation`: an empty prompt is refused with the toast **Add a prompt before continuing.** (no request); a bad cron, a cron that never runs or a timeout above 1800 should be refused with a readable message. Known failure (reproduced 2026-10-13, #18380; regression from #17688): Save sends the PATCH and shows only the toast `Request failed with status code 422`; the API detail (`Value error, Invalid cron expression: …`) is dropped. BASE's modal refused the cron inline (`Enter a valid cron expression`).
+- `F23.edit-save`: Save sends one PATCH (also when nothing changed), shows **Saving…** then **Saved just now**, the toast **Automation updated**, and the detail page and API reflect it; an Active profile model stays `null`.
+- `F23.edit-schedule`: Frequency offers Once, Hourly, Daily, Weekdays (Mon–Fri), Weekly and Custom; Weekly adds **Day of week** and **At**; they are saved as a cron expression and read back after a reload.
+- `F23.edit-time-cleared`: clearing **At** on a preset schedule and saving should be refused with a message instead of being dropped or replaced. Known failure (reproduced 2026-10-13, #17948 item, new symptom since #17688): Save silently stores midnight (`0 0 * * 3`) and toasts **Automation updated**; Save draft in the create flow stores `0 0 * * *` the same way. Open PR #18260 changes only `edit-automation-modal.tsx`, which nothing imports on TARGET, so it does not fix this.
+- `F23.edit-cron`: a custom cron schedule shows Frequency **Custom** with an editable **Custom** cron field and a timezone select.
+- `F23.edit-event-readonly`: for an event automation the edit page shows Event selected with Event source, event key and filter controls (editable now, no longer read-only text) and no schedule fields.
+- `F23.edit-save-error`: a failed save shows exactly one error toast with the API message and keeps the edits on the page. Known failure (reproduced 2026-10-13, regression from #17688, #18380): the toast reads `Request failed with status code 404` instead of `Automation not found`.
+- `F23.phone`: at 390×844 the detail page has no horizontal overflow, and the Edit page fits with its title, Test, Save and Close reachable.
## How to get to it (user POV)
- Dashboard (`/automations`, F21): click a card's heading, a list row link, or the kebab **Automation actions** → **View**; a sparkline bar opens `/automations/<id>?run=<runId>` (F21.sparkline-deeplink).
- Direct URL `/automations/<id>` and `/automations/<id>?run=<runId>`. Get `<id>` from `control-openhands browser url` after opening a card, or from `control-openhands api GET /api/automation/v1`; get `<runId>` from `control-openhands api GET /api/automation/v1/<id>/runs`.
-- Edit automation: the detail kebab **Edit** (exercised here); the dashboard kebab **Edit** opens the same dialog (F21.edit).
+- Edit: the detail kebab **Edit** (exercised here) and the dashboard kebab **Edit** (F21.edit) both open `/automations/setup?automationId=<id>`; a cold load of that URL opens it too.
- Browser Back from a run's conversation returns to the detail page.
- The detail page has no command-menu entry and no keyboard shortcut.
@@ -89,18 +92,18 @@ Preconditions:
- **Export the log (`F23.activity-log-export`).** `control-openhands browser click 'testid=activity-log-export-json'` then `control-openhands browser downloads --last 1 --inspect`: `qa-f23-pong.activity-log.json` with `runs[]` holding `run_id`, `automation_name`, `trigger`, `start_time`, `end_time`, `duration_seconds`, `status` `COMPLETED`, `conversation_id` and `conversation_url` (`http://127.0.0.1:<port>/conversations/<id>`). `control-openhands browser click 'testid=activity-log-export-csv'` and the same `downloads` call: `qa-f23-pong.activity-log.csv` with header `run_id,automation_id,automation_name,trigger,start_time,end_time,duration_seconds,status,conversation_id,conversation_url,error,cost,phase`.
- **Export and Tarball (`F23.export`, `F23.tarball`).** `control-openhands browser click 'role=button[name="Automation actions"]'`, `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Export"]'`, `control-openhands browser downloads --last 1 --inspect`: `qa-f23-pong.automation.json` with `"version": 1`, `"kind": "automation"` and `spec` (name, trigger, `enabled`, prompt, `model` `null`, `timeout` `600`, `timezone`). Reopen the kebab and click `role=list >> has-text=Tarball >> role=button[name="Tarball"]`; `control-openhands browser downloads --last 1` lists `QA_F23_Pong.tar` (about 9 KB) and no toast appears. The file is gzip data despite the name: `tar -tzf <path>` lists `main.py`, `finish_tool_hook.py`, `prompt.txt`, `setup.sh`.
- **Turn off and the paused banner (`F23.disabled-reason`, `F23.toggle`).** While Pong is active `control-openhands browser count 'testid=automation-disabled-reason-banner'` is `0`. Open the kebab, `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Turn off"]'`, `control-openhands browser count 'testid=confirmation-modal'` (`0`), `control-openhands browser reload`, `control-openhands browser text 'testid=automation-disabled-reason-banner'`: `Why this is paused` / `Turned off manually` / `Paused Just now` (`automation-disabled-reason-text`, `automation-disabled-reason-timestamp`). The badge reads `Inactive` and Run now is disabled. Screenshot with `--feature F23.disabled-reason --name manual`.
-- **Edit fields and closing (`F23.edit-open`, `F23.edit-close`).** On Pong run `control-openhands browser click 'role=button[name="Automation actions"]'`, `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Edit"]'` and `control-openhands browser snapshot 'role=form'`: form `Edit automation` with textbox `Name` (`QA_F23 Pong`), textbox `Prompt` and `Edits apply to future runs only.`, combobox `Agent profile` (`Default`), combobox `LLM profile` (`Active profile`), spinbutton `Timeout (seconds) Optional` (`600`) with `edit-automation-timeout-hint` (`Maximum time a single run may take. Leave empty for the default of 600 seconds (10 minutes); maximum 1800 seconds (30 minutes).`), combobox `Frequency` (`Daily`), textbox `Time of day` (`09:00`), `Cancel` and `Save`. Each of these closes it (`browser count 'testid=edit-automation-save'` is `0`): `control-openhands browser click 'testid=edit-automation-cancel'`, `control-openhands browser click 'role=form[name="Edit automation"] >> xpath=.. >> role=button[name="Cancel"] >> nth=0'` (the X) and `control-openhands browser mouse-click 1400 950` (backdrop). Expected for Escape too, but today `control-openhands browser press Escape` leaves the count at `1` (see Gotchas). After changing the timeout and cancelling, reopening shows `600` again.
-- **Validation (`F23.edit-validation`).** In the dialog run `control-openhands browser fill 'testid=edit-automation-name' ''` and `control-openhands browser click 'testid=edit-automation-save'`: `control-openhands browser snapshot 'role=form' --max-lines 6` shows `textbox "Name Name is required" [invalid]` and `alert: Name is required`. Refill the name, then fill `testid=edit-automation-timeout` with `1.5`, `0` and `1801` in turn, clicking Save after each; `control-openhands browser text 'testid=edit-automation-timeout >> xpath=ancestor::label[1]/..'` contains `Timeout must be a valid number`, `Timeout must be positive` and `Timeout cannot exceed 1800 seconds` respectively, and the dialog stays open. Cancel.
-- **No-change Save (`F23.edit-save`).** Reopen Edit, `control-openhands browser network --clear`, click `testid=edit-automation-save`, then `control-openhands browser network --last 20`: the dialog is closed and no PATCH was sent; `browser toasts` is empty.
-- **Weekly schedule, model and timeout (`F23.edit-schedule`, `F23.edit-save`).** Reopen Edit and run `control-openhands browser click 'testid=edit-automation-frequency'`, `control-openhands browser snapshot 'role=listbox'` (`Daily [selected]`, `Weekdays (Mon–Fri)`, `Weekly`), `control-openhands browser click 'role=option[name="Weekly"]'`, `control-openhands browser click 'testid=edit-automation-weekday'`, `control-openhands browser click 'role=option[name="Wednesday"]'`, `control-openhands browser fill 'testid=edit-automation-time' 10:30`, `control-openhands browser click 'testid=edit-automation-model'`, `control-openhands browser click 'role=option[name="deepseek-pro"]'`, `control-openhands browser fill 'testid=edit-automation-timeout' 300` and `control-openhands browser screenshot --feature F23.edit-schedule --name weekly-form`. Then `control-openhands browser network --clear`, `control-openhands browser click 'testid=edit-automation-save' --observe 'testid=edit-automation-save' --observe-ms 1500` (`Save` → `Saving...` → absent) and `control-openhands browser wait-text 'Automation updated' --timeout 5000`. `browser network --last 20` shows one `PATCH /api/automation/v1/<id>`. After `control-openhands browser reload`, `control-openhands browser text 'role=heading[name="Configuration"] >> xpath=ancestor::div[2]'` reads `Schedule` `30 10 * * 3` and `LLM profile` `deepseek-pro`; `control-openhands api GET /api/automation/v1/<id>` has `timeout` `300` and `enabled` `false`. Reopening Edit shows `Weekly`, `Wednesday`, `10:30` (`browser value 'testid=edit-automation-weekday'` etc.).
-- **Cleared time (`F23.edit-time-cleared`).** Reopen Edit, `control-openhands browser fill 'testid=edit-automation-time' ''`, `control-openhands browser network --clear`, click Save. Expected: an inline message and the dialog stays open. Today the dialog closes as if saved, `browser network --last 20` shows no PATCH and the schedule stays `30 10 * * 3`.
-- **Custom cron (`F23.edit-cron`).** Open QA_F23 Fail and Edit. `control-openhands browser value 'testid=edit-automation-frequency'` is `Custom` and `control-openhands browser enabled 'testid=edit-automation-frequency'` and `... 'testid=edit-automation-time'` are `false`; `testid=edit-automation-cron` holds `0 0 1 1 *` (placeholder `*/10 * * * *`). Fill the cron with `not a cron`, click Save, and `control-openhands browser text 'testid=edit-automation-cron >> xpath=ancestor::label[1]'` adds `Enter a valid cron expression`; with `0 0 31 2 *` it reads `This cron expression will never run`. Fill `0 0 2 1 *` and `testid=edit-automation-timeout` with `1` (this makes the next run fail), Save, `browser wait-text 'Automation updated'`; after a reload the Configuration shows `0 0 2 1 *`.
+- **Edit fields and closing (`F23.edit-open`, `F23.edit-close`).** On Pong run `control-openhands browser click 'role=button[name="Automation actions"]'` and `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Edit"]' --expect-url '/automations/setup'`: the URL is `/automations/setup?automationId=<id>`, `browser count 'testid=edit-automation-save'` is `0` (no modal), and `browser value` reads `automation-setup-name` (`QA_F23 Pong`), `automation-setup-prompt`, the stored schedule (a custom cron shows Frequency Custom with `automation-setup-custom-schedule`) and `automation-setup-timeout` (`600`); `browser text 'testid=automation-setup-agent-profile'` is `default` and `browser text 'testid=automation-setup-model'` names the active profile (the stored `model` stays `null`). `browser testids 'testid=automation-setup-toolbar'` lists `automation-setup-test`, `automation-setup-save` and `automation-setup-close`; `control-openhands conversation list` is unchanged. `control-openhands browser press Escape` leaves the URL unchanged; `control-openhands browser click 'testid=automation-setup-close' --expect-url '/automations$'` lands on the dashboard without a PATCH (the dashboard's own GETs follow). A cold `control-openhands browser goto '/automations/setup?automationId=<id>'` opens the same form.
+- **Validation (`F23.edit-validation`).** On the edit page run `control-openhands browser fill 'testid=automation-setup-prompt' ''`, `control-openhands browser network --clear` and `control-openhands browser click 'testid=automation-setup-save'`: `control-openhands browser toasts --history` includes the toast `Add a prompt before continuing.` and `browser network --filter 'automation/v1'` lists no request. Refill the prompt. On a Custom-cron automation (QA_F23 Fail) fill `testid=automation-setup-custom-schedule` with `not a cron` (then `0 0 31 2 *`, then a valid cron with `testid=automation-setup-timeout` `1801`), click Save and read `control-openhands browser toasts --history` after `browser toasts --history --clear`. Expected: each is refused with a readable message (the API answers `Value error, Invalid cron expression: not a cron`). Known failure (reproduced 2026-10-13, #18380; regression from #17688): each sends a `PATCH` that returns `422` and the only feedback is the toast `Request failed with status code 422`; nothing is saved. Before each new click move the pointer off the toast (`browser hover 'testid=automation-setup-name'`, about 5 s; see Gotchas).
+- **No-change Save (`F23.edit-save`).** Open Edit, `control-openhands browser network --clear`, click `testid=automation-setup-save`, then `control-openhands browser network --filter 'automation/v1'`: one `PATCH` with the unchanged values and the toast `Automation updated` (the old modal sent nothing).
+- **Weekly schedule, model and timeout (`F23.edit-schedule`, `F23.edit-save`).** On the edit page run `control-openhands browser click 'testid=automation-setup-frequency-weekly'`, `control-openhands browser select 'testid=automation-setup-weekday' 3` (Wednesday; options `0:Sunday` … `6:Saturday`), `control-openhands browser fill 'testid=automation-setup-time' 10:30`, `control-openhands browser click 'testid=automation-setup-model'`, `control-openhands browser click 'testid=automation-setup-model-option-deepseek-pro'`, `control-openhands browser fill 'testid=automation-setup-timeout' 300` and `control-openhands browser screenshot --feature F23.edit-schedule --name weekly-form`. Then `control-openhands browser network --clear`, `control-openhands browser click 'testid=automation-setup-save' --observe 'testid=automation-setup-save-state' --observe-ms 2000` (`Saving…` → `Saved just now`) and `control-openhands browser toasts --history` (`Automation updated`). `browser network --bodies --filter 'automation/v1'` shows one `PATCH /api/automation/v1/<id>` with `schedule` `30 10 * * 3`, `model` `deepseek-pro` and `timeout` `300`. After `control-openhands browser reload` the weekday is `3`, At `10:30`, the model `deepseek-pro` and Timeout `300`; the detail page Configuration reads `Schedule` `30 10 * * 3` and `LLM profile` `deepseek-pro`.
+- **Cleared time (`F23.edit-time-cleared`).** On the weekly edit page `control-openhands browser fill 'testid=automation-setup-time' ''`, `control-openhands browser network --clear`, click Save. Expected: an inline message and nothing saved. Known failure (reproduced 2026-10-13, #17948 item, new symptom since #17688): `browser network --bodies --filter 'automation/v1'` shows a `PATCH` with `schedule` `0 0 * * 3`, the toast reads `Automation updated` and the automation now runs at midnight. Save draft in the create flow (`/automations/setup`) stores `0 0 * * *` the same way; open PR #18260 touches only the unused `edit-automation-modal.tsx`.
+- **Custom cron (`F23.edit-cron`).** Open QA_F23 Fail and Edit: Frequency **Custom** is selected and `control-openhands browser value 'testid=automation-setup-custom-schedule'` is `0 0 1 1 *` beside the timezone select (`UTC`). Fill `0 0 2 1 *` and `testid=automation-setup-timeout` with `1` (this makes the next run fail), Save and `browser toasts --history` (`Automation updated`); after a reload of the detail page the Configuration shows `0 0 2 1 *`. Invalid crons: see Validation.
- **Failed run, its row and Debug with OpenHands (`F23.run-status-polling`, `F23.run-no-conversation`, `F23.run-logs-modal`, `F23.debug-with-openhands`).** On QA_F23 Fail (timeout `1` from the previous bullet) click `role=button[name="Run now"]` and `control-openhands browser wait-text 'Automation dispatched'`. The run stays Running for about 3-4 minutes and ends `FAILED` (poll `control-openhands api GET /api/automation/v1/<id>/runs`; drive the event automation bullets meanwhile). Then `control-openhands browser goto /automations`, open QA_F23 Fail, `control-openhands browser wait 'testid=automation-activity-log >> testid=run-status-icon-failed'` and `control-openhands browser text 'testid=automation-activity-log'`: the newest row reads `<time>`, `Timed out: command timed out or was killed`, `Failed`. Expected beside the time: `No Conversation` (this is a prompt automation); today it reads `No conversation — this run executed a script. Use View logs for its output.` Run `control-openhands browser click 'testid=automation-activity-log >> title=View logs >> nth=0'` and `control-openhands browser snapshot 'role=dialog'`: `Run` `FAILED`, `Task` `No task outcome reported.`, `System` `Error: Timed out: command timed out or was killed` and `Status detail: ...`, the Output tab with the `[setup] Fetching SDK version ...` lines, and button `Debug with OpenHands`. Screenshot with `--feature F23.debug-with-openhands --name failed-logs`. `control-openhands browser click 'testid=debug-automation-button' --expect-url '/conversations/'` opens a new conversation; `control-openhands conversation events <conversation id from browser url> --kinds MessageEvent` starts `The scheduled automation "QA_F23 Fail" failed during a run. Please investigate the error and fix the root cause.`, and `control-openhands browser eval "document.body.innerText.includes('Timed out: command timed out or was killed')"` is `true` (the page also shows the run id). The agent then works on that prompt with the active profile.
- **Task outcome badge (`F23.run-task-outcome`).** Arrange (API, arrange only) `control-openhands api POST /api/automation/v1/preset/prompt --write --data '{"name":"QA_F23 Blocked","prompt":"Do not run any tools. Call the finish tool right away with status \"blocked\" and outcome_summary \"QA blocked on purpose\".","trigger":{"type":"cron","schedule":"0 0 1 1 *","timezone":"UTC"},"enabled":true}'` (a good thing to do while the Fail run is still running). Open QA_F23 Blocked, click `role=button[name="Run now"]`, and poll `control-openhands browser text 'testid=automation-activity-log'` until it leaves Running (about 35 s): `<time>`, `QA blocked on purpose`, a cost such as `$0.0016`, `Blocked`; `control-openhands browser testids 'testid=automation-activity-log'` lists `run-status-icon-warning` (not `-completed`) although `api GET /api/automation/v1/<id>/runs` has `status` `COMPLETED` and `run_metadata.finish_tool_response.status` `blocked`. `control-openhands browser click 'testid=automation-activity-log >> title=View logs'` and `browser snapshot 'role=dialog'`: `Run` `COMPLETED`, `Task` `Blocked` / `QA blocked on purpose` / `Task metadata` `{ "message": ... }`. Screenshot with `--feature F23.run-task-outcome --name blocked`, Escape. `partial_success` (**Partial**, `run-status-icon-warning`) and `unknown` (**Needs review**, `run-status-icon-needs-review`) follow the same path with the same prompt shape. The normal automation 1.19.0 prompt/plugin presets configure SDK 1.53.0 FinishTool with the required `TaskOutcome.status`, limited to `success`, `partial_success`, `blocked`, `failed` and `unknown`; SDK custom response schemas are a separate producer boundary. Its normal prompt path therefore does not establish the new fallback for a finish response without a string status. That positive boundary needs a genuine completed run from a legacy or custom-schema producer whose real finish arguments have that shape; a run with no finish metadata checks only the ordinary Completed fallback. Arbitrary unrecognised strings and summary retention on a failed run need the corresponding genuine producer too. Until available, record those checks as blocked and do not treat injected run metadata or mocked LLM output as live proof (#17682).
- **Event automation (`F23.prompt-collapse`, `F23.configuration-event`, `F23.plugins-repo`, `F23.export`).** Open QA_F23 Event. `control-openhands browser bbox 'testid=automation-prompt-content'` is 240 px high, `testid=automation-prompt-fade` is present and `control-openhands browser text 'testid=automation-prompt-toggle'` is `View More`; screenshot with `--feature F23.prompt-collapse --name collapsed`. Click the toggle: height 360, no fade, text `View Less`; click again to collapse. `control-openhands browser text 'role=heading[name="Configuration"] >> xpath=ancestor::div[2]'` reads `Repositories qa-example/qa-repo main`, `Trigger Event`, `Event Source github`, `Event Type pull_request.opened`, `Filter pull_request.draft == `false` && pull_request.base.ref == re…`, `Show more`, `LLM profile Active profile`. `control-openhands browser click 'role=button[name="Show more"]'` shows the full filter and `control-openhands browser attr 'role=button[name="Show less"]' aria-expanded` is `true`. `control-openhands browser text 'testid=automation-repository'` is `qa-example/qa-repo` / `main` (the fixture's `https://github.com/qa-example/qa-repo` as `owner/repo`, with its branch badge) and `control-openhands browser text 'role=heading[name="Plugins"] >> xpath=ancestor::div[2]'` is `Plugins` / `github:qa-example/qa-plugin`; screenshot with `--feature F23.plugins-repo --name event-repo-plugins`. Export keeps them: `control-openhands browser click 'role=button[name="Automation actions"]'`, `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Export"]'` and `control-openhands browser downloads --last 1 --contains '"branch": "main"'` (`qa-f23-event.automation.json`, `contains` `true`); `--contains '"repository": "https://github.com/qa-example/qa-repo"'` and `--contains 'github:qa-example/qa-plugin'` are `true` too (the `--inspect` head ends inside the long prompt).
-- **Event trigger in Edit (`F23.edit-event-readonly`).** On QA_F23 Event open Edit: `control-openhands browser count 'testid=edit-automation-frequency'` is `0` and `control-openhands browser text 'role=form[name="Edit automation"] >> text=Event Source >> xpath=ancestor::div[2]'` reads `Trigger Event / Event Source github / Event Type pull_request.opened / Filter <full filter>`. Screenshot with `--feature F23.edit-event-readonly --name event`, then Cancel.
-- **Phone (`F23.phone`).** Run `control-openhands browser viewport phone`, open QA_F23 Pong, `control-openhands browser bbox 'role=heading[name="QA_F23 Pong"] >> xpath=ancestor::div[3]'` (`insideViewport` `true`, `pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F23.phone --name detail` (the name and Run now wrap). Open Edit, then `control-openhands browser bbox 'role=form[name="Edit automation"] >> xpath=..'` and `control-openhands browser bbox 'testid=edit-automation-save'`. Expected: both `insideViewport` `true`. Today the dialog is about 940 px high with `y` about `-48`, Save sits at `y` 831 (`insideViewport` `false`), the X at a negative `y` (about -30), and `control-openhands browser scroll 'testid=edit-automation-save'` cannot move it; screenshot with `--feature F23.phone --name edit-weekly`. Cancel and `control-openhands browser viewport desktop`.
-- **Run now and save errors (`F23.run-now-error`, `F23.edit-save-error`).** Arrange a stale page: open QA_F23 Fail, then `control-openhands api DELETE /api/automation/v1/<Fail id> --write`. Run `control-openhands browser toasts --history --clear` (empties the toast history), click `role=button[name="Run now"]`, then `control-openhands browser toasts --history` and `control-openhands browser screenshot --feature F23.run-now-error --name toasts`: exactly one toast, `Automation not found`, and no `Request failed with status code 404`. Expected: the page then shows **Automation not found**: `control-openhands browser wait 'role=heading[name="QA_F23 Fail"]' --state detached --timeout 15000` succeeds (the not-found state takes about 7 s, as in States) and `control-openhands browser snapshot 'role=paragraph >> text=Automation not found >> xpath=..'` lists link `Back to Automations` (do not use `wait-text 'Automation not found'` here: the toast has the same text). Once the heading is gone, run `control-openhands browser toasts --history` again: it still holds only `Automation not found` (a late second toast, `Request failed with status code 404`, would come from the page's own refetch of the deleted automation). Known failure: the wait times out and the page keeps heading `QA_F23 Fail`, `Active` and an enabled **Run now** (`control-openhands browser enabled 'role=button[name="Run now"]'` is `true`) until a reload (#18062). The save error does not reuse that page (it is gone once #18062 is fixed): arrange a second fixture, `control-openhands api POST /api/automation/v1/preset/prompt --write --data '{"name":"QA_F23 Stale","prompt":"Reply with the single word: pong.","trigger":{"type":"cron","schedule":"0 0 1 1 *","timezone":"UTC"},"enabled":false}'` (`body.id` is `<stale-id>`), then open QA_F23 Stale (`control-openhands browser goto /automations` and the card heading, as in Preconditions), `control-openhands browser click 'role=button[name="Automation actions"]'` and `control-openhands browser click 'role=list >> has-text=Tarball >> role=button[name="Edit"]'`. With the dialog open, `control-openhands api DELETE /api/automation/v1/<stale-id> --write` and `control-openhands browser toasts --history --clear`. Fill `testid=edit-automation-name` with `QA_F23 Stale renamed` and click `testid=edit-automation-save`: the dialog stays open (`browser count 'testid=edit-automation-save'` `1`, `browser value 'testid=edit-automation-name'` still `QA_F23 Stale renamed`), and `control-openhands browser toasts --history` holds exactly one toast, `Automation not found`; screenshot with `--feature F23.edit-save-error --name toast`. Close it with `control-openhands browser click 'testid=edit-automation-cancel'`. `browser errors --app-only` lists the induced `POST /api/automation/v1/<Fail id>/dispatch` and `PATCH /api/automation/v1/<stale-id>` 404s; both fixtures are already deleted.
+- **Event trigger in Edit (`F23.edit-event-readonly`).** On QA_F23 Event open Edit: Event is selected, `browser testids 'testid=automation-setup-form' --filter event` lists `automation-setup-event-source` (GitHub), `automation-setup-event-source-toggle`, `automation-setup-event-public-url-notice`, `automation-setup-event-key`, `automation-setup-event-filter` and `automation-setup-event-filter-remove` (the fixture has a filter), and there are no Frequency controls for a schedule. The trigger is editable here (it was read-only text in the old modal). Screenshot with `--feature F23.edit-event-readonly --name event`, then Close.
+- **Phone (`F23.phone`).** Run `control-openhands browser viewport phone`, open QA_F23 Pong, `control-openhands browser bbox 'role=heading[name="QA_F23 Pong"] >> xpath=ancestor::div[3]'` (`insideViewport` `true`, `pageHorizontalOverflow` `false`) and `control-openhands browser screenshot --feature F23.phone --name detail` (the name and Run now wrap). Open Edit (kebab, `--expect-url '/automations/setup'`), then `control-openhands browser bbox 'testid=automation-setup-save'` and `... 'testid=automation-setup-close'` (both `insideViewport` `true`, Save at `y` about 65) and `control-openhands browser bbox 'testid=automation-setup-form'` (`pageHorizontalOverflow` `false`); screenshot with `--feature F23.phone --name edit-setup-page`. Close and `control-openhands browser viewport desktop`.
+- **Run now and save errors (`F23.run-now-error`, `F23.edit-save-error`).** Arrange a stale page: open QA_F23 Fail, then `control-openhands api DELETE /api/automation/v1/<Fail id> --write`. Run `control-openhands browser toasts --history --clear` (empties the toast history), click `role=button[name="Run now"]`, then `control-openhands browser toasts --history` and `control-openhands browser screenshot --feature F23.run-now-error --name toasts`: exactly one toast, `Automation not found`, and no `Request failed with status code 404`. Expected: the page then shows **Automation not found**: `control-openhands browser wait 'role=heading[name="QA_F23 Fail"]' --state detached --timeout 15000` succeeds (the not-found state takes about 7 s, as in States) and `control-openhands browser snapshot 'role=paragraph >> text=Automation not found >> xpath=..'` lists link `Back to Automations` (do not use `wait-text 'Automation not found'` here: the toast has the same text). Once the heading is gone, run `control-openhands browser toasts --history` again: it still holds only `Automation not found` (a late second toast, `Request failed with status code 404`, would come from the page's own refetch of the deleted automation). Known failure: the wait times out and the page keeps heading `QA_F23 Fail`, `Active` and an enabled **Run now** (`control-openhands browser enabled 'role=button[name="Run now"]'` is `true`) until a reload (#18062). The save error does not reuse that page (it is gone once #18062 is fixed): arrange a second fixture, `control-openhands api POST /api/automation/v1/preset/prompt --write --data '{"name":"QA_F23 Stale","prompt":"Reply with the single word: pong.","trigger":{"type":"cron","schedule":"0 0 1 1 *","timezone":"UTC"},"enabled":false}'` (`body.id` is `<stale-id>`), open QA_F23 Stale, its kebab and `role=list >> has-text=Tarball >> role=button[name="Edit"]` (`--expect-url '/automations/setup'`). With the edit page open, `control-openhands api DELETE /api/automation/v1/<stale-id> --write` and `control-openhands browser toasts --history --clear`. Fill `testid=automation-setup-name` with `QA_F23 Stale renamed` and click `testid=automation-setup-save`: the page keeps the edit (`browser value 'testid=automation-setup-name'` still `QA_F23 Stale renamed`) and `browser toasts --history` holds exactly one toast. Expected: `Automation not found` (BASE's modal showed it). Known failure (reproduced 2026-10-13, regression from #17688, #18380): the toast reads `Request failed with status code 404`. Screenshot with `--feature F23.edit-save-error --name toast`, move the pointer off the toast and Close. `browser errors --app-only` lists the induced `POST /api/automation/v1/<Fail id>/dispatch` and `PATCH /api/automation/v1/<stale-id>` 404s; both fixtures are already deleted.
- **Load more runs (`F23.activity-log-more`).** Not run: it needs more than 20 runs of one automation (about 35 s and one model call each). With them, `control-openhands browser click 'testid=automation-activity-log >> role=button[name="Load more"]'` grows the list from 20 to 40 rows.
- **Script automation (`F23.script-section`).** Arrange a script automation through F22's bundle entry (UI arrange; F22 owns the creation proof): `control-openhands browser goto /automations/templates`, `control-openhands browser click 'testid=recommended-automation-card-news-digest' --expect-url '/automations/new/news-digest'`, `control-openhands browser fill 'testid=setup-field-schedule' '0 0 1 1 *'`, `control-openhands browser click 'testid=setup-continue-button'`, `control-openhands browser wait 'testid=setup-review' --timeout 10000`, `control-openhands browser click 'testid=setup-continue-button' --expect-url '/automations/[0-9a-f-]{8,}' --timeout 60000`. The detail page of **Daily news digest** shows `role=heading[name="Script"]` and no Prompt (`browser count 'role=heading[name="Prompt"]'` is `0`); `control-openhands browser text 'testid=automation-script-entrypoint'` is `python3 main.py`, and `browser eval "Array.from(document.querySelectorAll('[data-testid=automation-script-file]')).map(e=>e.innerText.split('\n').slice(0,2).join(' | '))"` lists `main.py | Entrypoint` first, then `config.json` (both with line-numbered source). Screenshot with `--feature F23.script-section --name news-digest`. `automation-script-unavailable` (bundle unreadable) was not reached. Do not Run now: the script fetches public feeds and starts a model-backed conversation. Delete it in the Delete bullet.
- **Delete (`F23.delete`).** Open QA_F23 Event, click the kebab and `role=list >> has-text=Tarball >> role=button[name="Delete"]`. `control-openhands browser snapshot 'role=dialog[name="Delete automation"]'` shows `Delete "QA_F23 Event"? This cannot be undone.`, `Cancel` and `Delete` (the same dialog as F21.delete). `control-openhands browser click 'role=dialog[name="Delete automation"] >> role=button[name="Cancel"]'` keeps the page (`control-openhands browser count 'role=dialog[name="Delete automation"]'` is `0`). Reopen and `control-openhands browser click 'role=dialog[name="Delete automation"] >> role=button[name="Delete"]' --expect-url '/automations(\?|$)'`; `control-openhands api GET /api/automation/v1` no longer lists it. Delete QA_F23 Pong, QA_F23 Blocked and Daily news digest the same way (and QA_F23 Fail if the error bullet was skipped); `api GET /api/automation/v1` shows `"total": 0`.
@@ -108,13 +111,11 @@ Preconditions:
## Gotchas
-- The Logs dialog's panel keeps long content reachable (`F23.run-logs-modal`, #18175 / #18173). Verified 2026-10-10 on an independent fresh Linux Local stack at product revision `5a8c3832154b14d2dad651801c0ab3f74c96f02e`, SDK 1.54.0 and automation 1.19.3: a genuine DeepSeek finish produced a 4,596-character `outcome_summary` and 1,079-character metadata `message`; summary/metadata endings, Output/Error tabs and the true stdout end were reachable at 1440×1000, 390×844, 1440×500 and 390×500. The header/X remained visible, closing did not navigate, and phone had no horizontal overflow. Preserve those long-content and short-height checks when retesting. The verified scope is pinned Linux Local; macOS, Cloud and legacy/custom finish schemas need their own checks. `browser bbox 'role=dialog'` measures the full-screen wrapper, not the panel: measure the panel with `browser eval`.
+- The Logs dialog's panel keeps long content reachable (`F23.run-logs-modal`, #18175 / #18173). Re-verified 2026-10-13 (revision `2bdc0e9d`, SDK 1.54.0, automation 1.19.3) with a 30-line `outcome_summary` at 1440×1000, 390×844 and 390×500: the panel is `testid=run-logs-body` (`max-h-[80vh]`, `overflow-y: auto`) with a sticky header (Logs + X stay visible); the Output box no longer scrolls on its own, the whole panel does, and its end (`=== RESULT === ALL_OK`) is reachable at the bottom. Verified 2026-10-10 on an independent fresh Linux Local stack at product revision `5a8c3832154b14d2dad651801c0ab3f74c96f02e`, SDK 1.54.0 and automation 1.19.3: a genuine DeepSeek finish produced a 4,596-character `outcome_summary` and 1,079-character metadata `message`; summary/metadata endings, Output/Error tabs and the true stdout end were reachable at 1440×1000, 390×844, 1440×500 and 390×500. The header/X remained visible, closing did not navigate, and phone had no horizontal overflow. Preserve those long-content and short-height checks when retesting. The verified scope is pinned Linux Local; macOS, Cloud and legacy/custom finish schemas need their own checks. `browser bbox 'role=dialog'` measures the full-screen wrapper, not the panel: measure the panel with `browser eval`.
- The detail page has no `main` landmark: `browser snapshot 'role=main'` times out. Snapshot the page, or scope by section headings (`role=heading[name="Configuration"] >> xpath=ancestor::div[2]`).
- The kebab menu has no test ids; `role=list >> has-text=Tarball` scopes the detail kebab (the dashboard kebab has no Tarball, so F21 uses `has-text=Export`).
-- Both the X and the footer button of the Edit dialog are named **Cancel**; use `testid=edit-automation-cancel` for the footer and `role=form[name="Edit automation"] >> xpath=.. >> role=button[name="Cancel"] >> nth=0` for the X. The dialog has no `role=dialog`.
-- Known defect: Escape does not close the Edit dialog (the handler sits on the non-focusable backdrop `div`) (#17563). The delete confirmation, by contrast, is a `role=dialog` that Escape closes.
-- Known defect: at phone height the Edit dialog has no `max-height` or scrolling, so its title, X and Save are clipped and unreachable by scrolling (#17563).
-- Known defect: clearing **Time of day** on a preset schedule is silently ignored (#17948); Save closes the dialog with no request and no message.
+- Since #17688 kebab **Edit** (detail and dashboard) opens `/automations/setup?automationId=<id>`; the old **Edit automation** modal (`edit-automation-*` test ids) is no longer rendered anywhere, so its Escape (#17563), phone clipping (#17563) and silently-ignored cleared time (#17948) symptoms cannot be reached. The edit page's Save reports API failures with the raw `Request failed with status code <N>` (see `F23.edit-validation`, `F23.edit-save-error`), and its `Automation updated` toast covers Test/Save/Close until the pointer moves away.
+- Known defect: clearing **At** on a preset schedule and saving stores midnight with no message (#17948 item; with the old modal it was silently ignored).
- On a local backend the Logs dialog reads every run's output from the server-level `/api/bash/bash_events/search`, with or without a conversation. It caches what it fetched: reload before checking its requests with `browser network`.
- Known defect: prompt runs also have a `bash_command_id`, so every row shows the logs icon, and a prompt run that ended without a conversation is labelled as a script run (`F23.run-no-conversation`) (#17948).
- The automation service (1.19.0 here) keeps repos and plugins only under `preset_metadata`; the UI reads them from there. Repositories show `owner/repo` without the host (a GitLab URL reads like a GitHub one), a repo without a ref gets no badge, and Export keeps only the first repository (all plugins). The **Notification** field reads a top-level `notification` that the service has no field for, so it never renders on a local stack (#16644 tracks removing or mapping it).
@@ -122,7 +123,7 @@ Preconditions:
- `run-phase` never appeared in the log here (`phase_code` stays `null` on the local service), so the phase chip is not reachable on this stack.
- An LLM profile that does not exist (`model: "qa-no-such-profile"`) does not fail the run: it ran and succeeded with the active profile. Use timeout `1` to get a failed run; it takes several minutes to fail.
- `Load more` in the log (`F23.activity-log-more`) needs more than 20 runs of one automation; at about 35 s and one model call each it is left out of a normal pass (not-run).
-- The script section needs a tarball automation. The account-free way to get one is F22's **Daily news digest** bundle entry (it uploads its bundle and creates the automation); the custom-automation **Upload tarball** action needs a file you pack yourself. Its Edit dialog still shows an empty **Prompt** field next to the cron, although a script automation has no prompt.
+- The script section needs a tarball automation. The account-free way to get one is F22's **Daily news digest** bundle entry (it uploads its bundle and creates the automation); the custom-automation **Upload tarball** action takes `control-openhands fixture tarball`. Its kebab Edit shows generated starter Python instead of the saved bundle (#18341, see F21.edit); a cold load of `/automations/setup?automationId=<id>` shows the **Existing code bundle** summary.
- **Starting…** on Run now lasts only for the dispatch request (under 50 ms locally); `--observe` does not catch it.
- The run row is a plain `<a href>`, so opening a run's conversation reloads the whole app (a `document` request in `browser network`), unlike sidebar navigation.
- A 404 detail request is retried three times before **Automation not found** shows (about 7 s of skeleton) (#17948); wait with `wait-text`, not `count`.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F24-git-sync.md b/.agents/skills/verify-openhands/references/feature-map/F24-git-sync.md
index a9cb4bfc6b..11076562bc 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F24-git-sync.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F24-git-sync.md
@@ -90,6 +90,7 @@ Preconditions:
- The reachability check runs only when repository URL, branch or token changed (`git ls-remote`, 20 s timeout). Interval, path, author, encryption key and the enable switch save without it. A check that cannot run at all (old backend, network error) never blocks a save.
- The second Save after a failed check saves the same values without checking again; editing any checked field re-arms the check.
- The activity row (`git-sync-activity-row`, `data-state` `running`/`succeeded`/`failed`) is page state: it disappears on reload and does not appear for a background cycle that starts and ends between two idle polls (15 s). Assert background cycles through the commit hash, not the row.
+- Feedback colours are semantic tokens (#18346): the check-failure block, the **Last sync error** banner and a `Sync failed` row use the danger surface and feedback-error text (`rgb(231, 106, 94)` on OpenHands-Neutral, `rgb(192, 40, 45)` on white under Light+), and `Sync complete` uses success (`rgb(165, 231, 94)` Neutral, `rgb(15, 115, 77)` Light+); verified 2026-10-13 on desktop. Read them with `browser eval` of `getComputedStyle(...).color` on the text elements inside `git-sync-check-failure`, `git-sync-error-banner` and `git-sync-activity-row` after switching themes on `/settings/app` (`F16.color-theme`).
- Toasts (`Git Sync settings saved.`, `Enable Git Sync before triggering a sync.`) last a few seconds: read them with `browser wait-text` immediately after the click, never after a long `--observe` window.
- Save's label cycles `Save Changes` → `Checking repository...` (only when a checked field changed) → `Saving...` → `Save Changes` in about 100 ms against a local repo; `--observe 'testid=git-sync-save-button'` records it.
- Setting, rotating or clearing the encryption key re-exports the automation even when its definition was unchanged. Verified 2026-10-10 on pinned automation `1.19.3`, Agent Server `1.54.0`, desktop and phone, selected backend Local: each key-only save sets `dirty_count` to `1`; the next sync creates a commit with ciphertext after set, different ciphertext after rotation and plaintext after clear ([OpenHands/automation#563](https://github.com/OpenHands/automation/pull/563), fixing [#551](https://github.com/OpenHands/automation/issues/551)). Read the dirty count and exported file before any automation PATCH; a separate dirty export tests a different contract.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F25-backends-and-cloud.md b/.agents/skills/verify-openhands/references/feature-map/F25-backends-and-cloud.md
index 7ce98e0b69..eef03f5d54 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F25-backends-and-cloud.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F25-backends-and-cloud.md
@@ -9,10 +9,14 @@ When the active backend is unreachable the whole app is replaced by Manage
backends in recovery mode. Cloud backends add organization rows, a Cloud
settings link and public sharing of conversations (read-only at
`/shared/conversations/:id`); `/oauth/device/verify` is the device-approval page.
-Everything except the Cloud account itself can be driven locally with a second
-`control-openhands` stack as the extra backend.
+When the page is served with the DigitalOcean Managed Agents bridge (the
+desktop app, or a web server started with `MARS_WEB=1`), Add Backend gains a
+**Providers** tab whose DigitalOcean entry signs in with a personal access
+token and turns a Managed Agents session into a backend.
+Everything except the Cloud and DigitalOcean accounts themselves can be driven
+locally with a second `control-openhands` stack as the extra backend.
-Source: `src/components/features/backends/`, `src/contexts/active-backend-context.tsx`, `src/api/backend-registry/`, `src/hooks/query/use-backends-health.ts`, `src/routes/device-verify.tsx`, `src/routes/shared-conversation.tsx`, `src/components/features/conversation/conversation-name-context-menu.tsx`, `src/api/cloud/`, `specs/backend-management.md`.
+Source: `src/components/features/backends/`, `src/contexts/active-backend-context.tsx`, `src/api/backend-registry/`, `src/hooks/query/use-backends-health.ts`, `src/routes/device-verify.tsx`, `src/routes/shared-conversation.tsx`, `src/components/features/conversation/conversation-name-context-menu.tsx`, `src/api/cloud/`, `src/api/mars/`, `src/hooks/use-mars-*.ts`, `src/hooks/use-connect-mars-session.ts`, `src/hooks/use-launch-mars-session.ts`, `src/hooks/query/use-mars-agents.ts`, `src/components/features/sidebar/mars-session-panel.tsx`, `src/assets/branding/digitalocean-logo.svg`, `scripts/mars-web-bridge.mjs`, `scripts/mars-tunnel-bridge.mjs`, `specs/backend-management.md`.
## Sub-features
@@ -44,6 +48,10 @@ Source: `src/components/features/backends/`, `src/contexts/active-backend-contex
- `F25.cloud-settings-link`: with a Cloud backend active the gear next to the selector opens `<cloud host>/settings?org=<org>` in a new tab.
- `F25.cloud-sandbox-states`: Cloud conversations show waiting, archived and error sandbox states in chat.
- `F25.cloud-org-suspended`: when a Cloud call made for the selected organization (`X-Org-Id`) fails with 403 and `detail` `Organization is suspended` or `User membership is suspended`, the app is replaced by `<org> is suspended. Contact your administrator to restore access.` (or `Your access to <org> is suspended. Contact your administrator to restore it.`), then `Switch to another workspace` and one button per other organization (`Personal Workspace` for the user's own). A button selects that organization and the app returns; with no other organization only the message shows. A reload clears the in-memory record. Blocked here: needs an OpenHands Enterprise instance with `ENABLE_SUPER_ADMIN` where a Super Admin suspended the organization or this member's membership, signed in as a non-Super-Admin member with that organization selected (#17988).
+- `F25.providers-tab`: only when the page has the Managed Agents bridge (`window.marsBridge`), Add Backend shows a third tab **Providers** ("Connect through DigitalOcean and more.") with a **DigitalOcean** card ("Your team's OpenHands agents") and `More providers coming soon.`; without the bridge (the default web build) there are only the Cloud and Agent-server tabs and no Managed Agents UI anywhere.
+- `F25.digitalocean-sign-in`: the DigitalOcean card opens "Connect your DigitalOcean team" with a Back button, a masked **Personal access token** field, a **Create a token** link to `https://cloud.digitalocean.com/account/api/tokens` and **Connect with token**, disabled until a token is typed (the **Sign in with DigitalOcean** OAuth button exists only in the desktop app). A token of the wrong shape reads `That does not look like a DigitalOcean personal access token.`; a well-formed token DigitalOcean rejects shows its HTTP error (`401 Unauthorized`). Back returns to the Providers tab.
+- `F25.digitalocean-agents`: signed in, the panel lists the team's OpenHands agents and their sessions, **New Agent** (name and sandbox size), refresh and sign-out; connecting a session (or **Resume and connect** a paused one) adds it as the active backend, the sidebar's conversation list becomes that agent's session panel (`mars-session-panel`), and Manage Backends' Managed Agents view offers Pause, Stop, Disconnect and Open per session (blocked: needs a DigitalOcean account with Managed Agents).
+- `F25.digitalocean-backend-removal`: removing a DigitalOcean backend in Manage Backends explains that it only disconnects and offers **Disconnect only** or **Stop session** (blocked: needs a connected DigitalOcean session).
- `F25.locked-cloud`: a Canvas served with `--lock-to-cloud <url>` shows only the Cloud login (no close) on first run, and its selector footer reads **Reconnect to Cloud** with no add, edit or remove.
## How to get to it (user POV)
@@ -66,16 +74,17 @@ Preconditions:
- A second stack to add as a backend, started without a browser and never driven directly: `export OH_VERIFY_RUN_2=$(OH_VERIFY_RUN= control-openhands launch --new --build never --no-browser --print-run)`, then `control-openhands status --run "$OH_VERIFY_RUN_2"`; its `baseUrl` is `<second-url>` below and its key is `$OH_VERIFY_RUN_2/private/session-key`. It has no conversations.
- No backend named `QA_Second` or `QA_Renamed` exists (the selector lists only `Local`).
- Bullets run in order: Add creates `QA_Second`, Edit renames it to `QA_Renamed`, Remove deletes it.
+- The Managed Agents rows need the bridge, which `control-openhands launch` cannot turn on (harness gap: no `--mars-web` flag, and `MARS_WEB` is not passed to the launcher). Until it exists, on a run you launched yourself, add `"MARS_WEB": "1"` to `<run>/private/launcher-env.json` (keep a copy), `control-openhands restart`, `browser reload`, and check `control-openhands browser eval "!!window.marsBridge"` is `true` (`curl -s <baseUrl>/mars/health` answers `{"ok":true,"authRequired":true}`). Restore the file and `restart` afterwards. `F25.digitalocean-agents` and `F25.digitalocean-backend-removal` stay blocked without a DigitalOcean account.
- Blocked here (no OpenHands Cloud account): approving the device flow, `F25.cloud-org-rows`, `F25.cloud-log-back-in`, `F25.cloud-settings-link`, `F25.cloud-sandbox-states`, `F25.cloud-org-suspended` (also needs a suspended OpenHands Enterprise organization or membership), `F25.share-publicly` (toggle), and `F25.locked-cloud`, which also needs a launcher flag (see Gotchas).
- **Open the selector (`F25.selector-dropdown`).** From `/conversations` run `control-openhands browser click 'testid=backend-selector'` and `control-openhands browser snapshot 'testid=backend-selector'`. The snapshot shows `listbox` with `option "Connected Local"`, a separator, `button "Add Backend"` and `button "Manage Backends"`. Screenshot with `control-openhands browser screenshot --feature F25.selector-dropdown --name open`. Hover opens it too: `browser press Escape`, move the pointer away with `control-openhands browser hover 'testid=command-menu-trigger'` (hovering a selector the pointer is already on does nothing), `control-openhands browser hover 'testid=backend-selector'`, then the same snapshot shows `combobox "Local" [expanded]` and the two footer buttons.
-- **Add Backend modal (`F25.add-backend-modal`).** Run `control-openhands browser click 'testid=add-backend-menu-item'` and `control-openhands browser snapshot 'testid=add-backend-modal'`: heading `Choose how you want to connect`, link `Compare Cloud, self-hosted, and Enterprise deployment options` (`/url: https://docs.openhands.dev/overview/introduction`, text `Learn more`) and tab `OpenHands Cloud ...` `[selected]` next to tab `Agent-server ...`. `control-openhands browser press Escape` leaves `browser count 'testid=add-backend-modal'` at `1`; `control-openhands browser click 'testid=add-backend-close'` makes it `0`.
+- **Add Backend modal (`F25.add-backend-modal`).** Run `control-openhands browser click 'testid=add-backend-menu-item'` and `control-openhands browser snapshot 'testid=add-backend-modal'`: heading `Choose how you want to connect`, link `Compare Cloud, self-hosted, and Enterprise deployment options` (`/url: https://docs.openhands.dev/overview/introduction`, text `Learn more`) and tab `OpenHands Cloud ...` `[selected]` next to tab `Agent-server ...`. `control-openhands browser press Escape` leaves `browser count 'testid=add-backend-modal'` at `1`; `control-openhands browser click 'testid=add-backend-close'` makes it `0`. Keyboard focus in a light theme: arrange `control-openhands browser eval "localStorage.setItem('openhands-color-theme','light-plus')"` and `browser reload`, reopen the modal, run `control-openhands browser focus 'testid=add-backend-option-cloud'` and `browser press ArrowRight`, then `control-openhands browser eval "getComputedStyle(document.activeElement).outlineColor"`. Expected: the theme's focus colour (`--oh-focus`, `#007ACC` in Light+). Known failure (reproduced 2026-10-13, #18324): a fixed pale `outline-blue-300` (`oklab(0.79 -0.03 -0.10)`), about 1.8:1 on the light tab (`browser screenshot 'testid=add-backend-modal' --feature F25.add-backend-modal --name tab-focus-light-plus`). Restore with `browser eval "localStorage.removeItem('openhands-color-theme')"`.
- **Advanced host (`F25.cloud-advanced-host`).** Reopen with `browser click 'testid=backend-selector'` and `browser click 'testid=add-backend-menu-item'`, run `control-openhands browser click 'testid=add-backend-advanced-toggle'`, then `control-openhands browser attr 'testid=add-backend-advanced-toggle' aria-expanded` (`true`) and `control-openhands browser snapshot 'testid=add-backend-cloud-panel'` (textbox `Host` with placeholder `https://app.all-hands.dev`).
- **Device flow error (`F25.cloud-device-flow`).** Run `control-openhands browser fill 'testid=add-backend-cloud-host' http://127.0.0.1:9`, `control-openhands browser click 'testid=add-backend-login-button' --observe 'testid=add-backend-device-flow'` and `control-openhands browser wait 'testid=add-backend-auth-error' --timeout 15000`. The observation goes `Starting authentication...` → `Failed to start device flow: Failed to fetch` / `Try again`, and `control-openhands browser network --last 5` shows `POST /oauth/device/authorize` to `http://127.0.0.1:9`. `control-openhands browser click 'testid=add-backend-auth-retry'` starts again and fails the same way. Each attempt leaves an `about:blank` popup: `control-openhands browser tabs`, then `control-openhands browser close-tab <i>` for each extra page and `control-openhands browser tab 0`. Close the modal with `testid=add-backend-close`.
- **Device flow awaiting and Cancel (`F25.cloud-device-flow`).** Reopen Add Backend (Cloud tab, default host), run `control-openhands browser click 'testid=add-backend-login-button' --observe 'testid=add-backend-device-flow' --observe-ms 6000`, then `control-openhands browser snapshot 'testid=add-backend-device-flow'`. If `https://app.all-hands.dev` is reachable (`control-openhands browser network --external --last 5` lists it), the snapshot shows `Waiting for authorization...`, `Browser opened. Complete sign-in to continue. If browser didn't open, visit:`, a link `https://app.all-hands.dev/oauth/device/verify?user_code=<code>` and button `Cancel`; `browser tabs` lists a second page on that URL. Screenshot with `--feature F25.cloud-device-flow --name awaiting`, then `control-openhands browser click 'testid=add-backend-auth-cancel'`: the panel is back to `Connect to OpenHands` / `Advanced` and `browser tabs` lists one page. Never approve the code. If Cloud is unreachable you get the error state of the previous bullet instead.
- **Agent-server guidance (`F25.agent-server-guidance`).** Run `control-openhands browser click 'testid=add-backend-option-agent-server'` and `control-openhands browser snapshot 'testid=add-backend-agent-server-panel'`: radiogroup `Agent-server location` with `Local` checked, heading `Before you connect`, textboxes `Host Name`, `Host`, `API Key` and `button "Connect" [disabled]`. `control-openhands browser click 'testid=add-backend-local-guidance-toggle'` and `browser snapshot 'testid=add-backend-local-guidance'` show the code `agent-canvas --backend-only --port 8001` and link `Read the local backend setup guide`. `control-openhands browser click 'testid=add-backend-location-option-remote'` and `control-openhands browser click 'testid=add-backend-remote-guidance-toggle'`; `browser snapshot 'testid=add-backend-remote-guidance'` shows `Recommended setup`, `Connection details` and `Read the remote backend setup guide`.
- **Connect rules and errors (`F25.add-agent-server`).** Still on Remote: `control-openhands browser fill 'testid=add-backend-name' QA_Second`, `control-openhands browser fill 'testid=add-backend-host' 127.0.0.1:9`; `control-openhands browser enabled 'testid=add-backend-submit'` is `false` (Remote needs a key). `control-openhands browser fill 'testid=add-backend-api-key' wrong-key` makes it `true`. `control-openhands browser click 'testid=add-backend-location-option-local'` keeps the fields. `control-openhands browser click 'testid=add-backend-submit' --observe 'testid=add-backend-submit'` shows `Checking…`, then `control-openhands browser text 'testid=add-backend-error'` starts `Could not connect to http://127.0.0.1:9` / `Disconnected (check URL or network). ...`. Fill `add-backend-host` with `<second-url>` and submit again: the error reads `Could not connect to <second-url>` / `Invalid API key`. On Local the key is optional for Connect but not for a key-protected host: `control-openhands browser fill 'testid=add-backend-api-key' ''` leaves `control-openhands browser enabled 'testid=add-backend-submit'` at `true` (`browser value 'testid=add-backend-api-key'` reports `length` `0`), and `control-openhands browser click 'testid=add-backend-submit'` then `control-openhands browser wait 'testid=add-backend-error' --timeout 15000` shows the same `Could not connect to <second-url>` / `Invalid API key` (`browser screenshot --feature F25.add-agent-server --name local-no-key-error`). Close with `testid=add-backend-close`.
-- **Add the second backend (`F25.add-agent-server`).** Run `control-openhands browser goto /conversations/<id>`, `browser click 'testid=backend-selector'`, `browser click 'testid=add-backend-menu-item'`, `browser click 'testid=add-backend-option-agent-server'`, fill `add-backend-name` with `QA_Second` and `add-backend-host` with `<second-url>`, then `control-openhands browser fill 'testid=add-backend-api-key' --value-file "$OH_VERIFY_RUN_2/private/session-key"` and `control-openhands browser click 'testid=add-backend-submit' --expect-url '/conversations(\?|$)'`. The URL is `/conversations`, `browser count 'testid=add-backend-modal'` is `0`, `browser snapshot 'testid=backend-selector'` shows `combobox "QA_Second"`, and `browser count 'testid=conversation-card'` is `0`. Before anything reloads the page, `control-openhands browser toasts --history` lists only `Loading...` and the new backend's `Your LLM isn't set up yet, so conversations won't run. ...` (the second stack has no LLM profile; no error toast), and `control-openhands browser network --external --filter 'ids='` lists no request: the new backend is never asked for the first stack's conversation id. (`--external` leaves out this stack's own `GET /api/conversations?ids=<id>` from the `goto /conversations/<id>` above, which the request log keeps across page loads; `<second-url>` is another origin, so a request to it is listed.) The new backend asks its own telemetry consent ("This preference is saved for the local backend “QA_Second”"): run `control-openhands onboard --skip` (it leaves the browser on `/`). After `control-openhands browser reload` the selector still reads `QA_Second`.
+- **Add the second backend (`F25.add-agent-server`).** Run `control-openhands browser goto /conversations/<id>`, `browser click 'testid=backend-selector'`, `browser click 'testid=add-backend-menu-item'`, `browser click 'testid=add-backend-option-agent-server'`, fill `add-backend-name` with `QA_Second` and `add-backend-host` with `<second-url>`, then `control-openhands browser fill 'testid=add-backend-api-key' --value-file "$OH_VERIFY_RUN_2/private/session-key"` and `control-openhands browser click 'testid=add-backend-submit' --expect-url '/conversations(\?|$)'`. The URL is `/conversations`, `browser count 'testid=add-backend-modal'` is `0`, `browser snapshot 'testid=backend-selector'` shows `combobox "QA_Second"`, and `browser count 'testid=conversation-card'` is `0`. Before anything reloads the page, `control-openhands browser toasts --history` lists only `Loading...` and the new backend's `Your LLM isn't set up yet, so conversations won't run. ...` (the second stack has no LLM profile; no error toast), and `control-openhands browser network --external --filter 'ids='` lists no request: the new backend is never asked for the first stack's conversation id. Known failure (reproduced 2026-10-13, #18390): on the run's first activation of `QA_Second` the list sometimes holds `GET <second-url>/api/conversations?ids=<id>` (`200`); record the bullet as `fail` then (see Gotchas). (`--external` leaves out this stack's own `GET /api/conversations?ids=<id>` from the `goto /conversations/<id>` above, which the request log keeps across page loads; `<second-url>` is another origin, so a request to it is listed.) The new backend asks its own telemetry consent ("This preference is saved for the local backend “QA_Second”"): run `control-openhands onboard --skip` (it leaves the browser on `/`). After `control-openhands browser reload` the selector still reads `QA_Second`.
- **Switch with the overlay (`F25.switch-backend`).** From `/` run `browser click 'testid=backend-selector'` and `control-openhands browser click 'testid=backend-selector >> role=option[name="Connected Local"]' --observe 'testid=environment-switch-overlay' --observe-ms 2500`. The observation shows `Switching to Local`, then `<absent>` about one second later; the selector reads `Local` and `browser count 'testid=conversation-card'` is `1`. Then `control-openhands browser click 'testid=conversation-card' --expect-url '/conversations/[0-9a-f-]+'`, open the selector and `control-openhands browser click 'testid=backend-selector >> role=option[name="Connected QA_Second"]' --expect-url '/conversations(\?|$)'`: the URL is `/conversations`, the selector reads `QA_Second` and the card count is `0`.
- **Pinned URL (`F25.backend-pinned-url`).** With `QA_Second` active run `control-openhands browser goto '/conversations/<id>?backend=default-local'` and `control-openhands browser wait 'testid=chat-interface'`: the selector reads `Local` and the conversation opens. `control-openhands browser goto '/conversations?backend=qa-unknown-id'` keeps `Local` (card count `1`). The sidebar card links themselves end in `?backend=default-local` (`browser snapshot`).
- **Per-tab backend (`F25.per-tab-backend`).** With `Local` active and `QA_Second` registered, run `control-openhands browser goto /conversations` and `control-openhands browser eval "JSON.parse(sessionStorage.getItem('openhands-active-backend')).backendId"` (`default-local`); note QA_Second's id with `control-openhands browser eval "JSON.parse(localStorage.getItem('openhands-backends')).find(b=>b.name==='QA_Second').id"` (`<second-id>`, a generated UUID). Open a plain second tab, as a user opening the app again: `control-openhands browser tab new /conversations` prints `index` `1` and makes it the daemon's active tab (`control-openhands browser tabs` lists two pages at `/conversations` with `active` `1`); `control-openhands browser wait-tab '/conversations$' --new --timeout 5000` then prints `index` `0`, the tab you came from, because `--new` leaves out the tab the daemon is on and that is now the new one (run from `browser tab 0` it prints `index` `1`, the second tab). `control-openhands browser tab 1`, `control-openhands browser wait 'testid=backend-selector'`: `browser snapshot 'testid=backend-selector'` reads `combobox "Local"` and `control-openhands browser eval "sessionStorage.getItem('openhands-active-backend')"` is `null` (a new tab inherits nothing and starts from the localStorage fallback). Switch this tab: `browser click 'testid=backend-selector'`, `control-openhands browser click 'testid=backend-selector >> role=option[name="Connected QA_Second"]'`, `control-openhands browser wait 'testid=environment-switch-overlay' --state detached --timeout 10000`; the selector reads `QA_Second`, `browser count 'testid=conversation-card'` is `0` and `control-openhands browser eval "JSON.parse(localStorage.getItem('openhands-active-backend')).backendId"` is `<second-id>`. Back in `control-openhands browser tab 0` nothing moved: the selector still reads `Local`, the card count is `1`, the sessionStorage eval is still `default-local` while the localStorage eval is `<second-id>` (`browser screenshot --feature F25.per-tab-backend --name first-tab-unchanged`). A plain new tab starts from the last choice made in any tab: from tab 0 run `control-openhands browser tab new /conversations` (`index` `2`, now active), `browser wait 'testid=backend-selector'`: the selector reads `QA_Second`, the card count is `0`, its sessionStorage item is `null` and the localStorage eval is `<second-id>` (`--name plain-new-tab-last-choice`). A conversation row opens on its owner instead: `control-openhands browser tab 0`, `control-openhands browser click 'testid=conversation-card' --modifiers Control` (add `>> nth=0` when the run holds more conversations than the precondition's one: the click is strict), `control-openhands browser wait-tab '/conversations/<id>' --timeout 20000` prints `index` `3` and the URL `/conversations/<id>?backend=default-local`; `control-openhands browser tab 3`, `control-openhands browser wait 'testid=chat-interface' --timeout 30000`, `browser url` still ends in `/conversations/<id>?backend=default-local` (no bounce to `/conversations`), the selector reads `Local` and `browser toasts --history` lists only `Loading...` (no `This conversation does not exist…`); `browser screenshot --feature F25.per-tab-backend --name new-tab-on-owner`. Close the extra tabs highest first: `control-openhands browser close-tab 3`, `control-openhands browser close-tab 2`, `control-openhands browser close-tab 1`, `control-openhands browser tab 0`; `browser tabs` lists one page and the selector reads `Local`. Opening the pinned link also recorded `default-local` as the last choice (the localStorage eval in tab 3 reads `default-local`), so run the plain-new-tab check before the row check.
@@ -90,6 +99,9 @@ Preconditions:
- **Add from Manage, Edit Cancel and X (`F25.manage-add`, `F25.edit-cancel`).** The second stack is running again after the previous bullet. Run `browser goto /conversations/<id>`, `browser wait 'testid=chat-interface'`, open the selector, click `manage-backends-menu-item`, then `control-openhands browser click 'testid=manage-backends-add'` and `control-openhands browser wait 'testid=add-backend-modal' --timeout 5000` (`visible`); `browser count 'testid=manage-backends-modal'` is `1` underneath. `browser click 'testid=add-backend-close'`: the Add count is `0` and the Manage count stays `1`. Click `manage-backends-add` again, `add-backend-option-agent-server`, fill `add-backend-name` with `QA_Second`, `add-backend-host` with `<second-url>` and `add-backend-api-key` with `--value-file "$OH_VERIFY_RUN_2/private/session-key"`, then `browser click 'testid=add-backend-submit' --expect-url '/conversations(\?|$)'`: the URL is `/conversations`, `count 'testid=add-backend-modal'` is `0`, `count 'testid=manage-backends-modal'` is still `1`, `count 'testid=manage-backends-row-QA_Second'` is `1` and the selector reads `QA_Second` (screenshot `--feature F25.manage-add --name after-add`). No consent prompt this time: it is stored on the second backend. Then `control-openhands browser click 'testid=manage-backends-edit-QA_Second'`, `browser fill 'testid=edit-backend-name' QA_Draft` and `control-openhands browser click 'testid=edit-backend-cancel'`: `count 'testid=edit-backend-modal'` `0`, `count 'testid=manage-backends-modal'` `1`, row `QA_Second` `1`, row `QA_Draft` `0`. Repeat with `control-openhands browser click 'testid=edit-backend-close'`: same counts, and reopening the pencil shows `browser value 'testid=edit-backend-name'` `QA_Second`; leave with `edit-backend-cancel`. Remove it again: `browser click 'testid=manage-backends-remove-QA_Second'`, `browser click 'testid=confirmation-modal >> testid=confirm-button'`, `browser click 'testid=manage-backends-done'` and `browser reload`: the selector reads `Local`.
- **Collapsed rail (`F25.collapsed-entry`).** Run `control-openhands browser click 'testid=sidebar-collapse-toggle'` (`attr 'aside[data-collapsed]' data-collapsed` is `true`), `control-openhands browser hover 'testid=collapsed-backend-selector-link'`, `control-openhands browser click 'testid=add-backend-menu-item'` and `control-openhands browser wait 'testid=add-backend-modal' --timeout 5000` (`visible`). Close it, hover again, click `manage-backends-menu-item` and `browser wait 'testid=manage-backends-modal' --timeout 5000`. Close with Done and expand with `browser click 'testid=sidebar-collapse-toggle'`.
- **Phone (`F25.phone`).** Run `control-openhands browser viewport phone`, `browser goto /conversations`, `control-openhands browser click 'testid=sidebar-mobile-menu-toggle'`, `control-openhands browser click 'testid=sidebar-mobile-drawer >> testid=backend-selector'`, `browser click 'testid=add-backend-menu-item'`, `browser click 'testid=add-backend-option-agent-server'` and `control-openhands browser bbox 'testid=add-backend-modal'`: `insideViewport` `true`, `pageHorizontalOverflow` `false`. Screenshot `--feature F25.phone --name add-modal`. Close it (the drawer stays open), open Manage Backends from the drawer selector the same way and check `bbox 'testid=manage-backends-modal'` the same. Click `testid=manage-backends-edit-Local` and check `bbox 'testid=edit-backend-modal'`: `insideViewport` `true`; repeat at `browser viewport 320x568`. At `browser viewport 320x400`, clear `edit-backend-name`, fill `edit-backend-host` with `not a host` and focus `edit-backend-api-key` to show both validation messages. Run `browser scroll 'testid=edit-backend-form' --by 600`: Cancel and Save must come into view while the title and `edit-backend-close` stay visible. Check the modal and all three controls with `bbox`, then close with Cancel. Return with `browser viewport desktop`; reopen Edit and confirm its width is still 520px.
+- **Providers tab (`F25.providers-tab`).** Without the bridge (the default run), `browser snapshot 'testid=add-backend-modal'` lists only the `OpenHands Cloud` and `Agent-server` tabs and `browser eval "!!window.marsBridge"` is `false`. With the bridge on (Preconditions), reopen Add Backend: the tablist adds `tab "Providers Connect through DigitalOcean and more."` (`testid=add-backend-option-providers`); `control-openhands browser click 'testid=add-backend-option-providers'` and `browser snapshot 'testid=add-backend-providers-panel'` show `button "DigitalOcean Your team's OpenHands agents"` and `More providers coming soon.` (`browser screenshot --feature F25.add-backend-modal --name with-providers-tab`). At phone width the modal stays inside the viewport with the three tab titles cut to `Ope…`, `Age…`, `Pro…` (`--feature F25.providers-tab --name phone-tabs`).
+- **DigitalOcean sign-in (`F25.digitalocean-sign-in`).** With the bridge on, run `control-openhands browser click 'testid=add-backend-provider-digitalocean'` and `browser wait 'testid=managed-agents-sign-in'`: heading `Connect your DigitalOcean team`, `textbox "Personal access token"` (`browser attr 'testid=managed-agents-token' type` is `password`), link `Create a token` (`/url: https://cloud.digitalocean.com/account/api/tokens`) and `button "Connect with token" [disabled]`; no OAuth button in a browser (`browser count 'testid=managed-agents-oauth'` is `0`). Fill `testid=managed-agents-token` with `dop_v1_qa_invalid_token_0000` and click `testid=managed-agents-token-submit`: `browser text 'testid=managed-agents-auth-error'` reads `That does not look like a DigitalOcean personal access token.` (`POST /mars/rpc/savePat` `500`). Fill a well-formed dummy, `dop_v1_` plus 64 zeros, and submit again: after a few seconds the error reads `401 Unauthorized` (`POST /mars/rpc/savePat` `401`, DigitalOcean's answer; `browser screenshot --feature F25.digitalocean-sign-in --name rejected-token`). Never type a real token here. `control-openhands browser click 'testid=add-backend-providers-back'` returns to the Providers panel (`browser count 'testid=managed-agents-sign-in'` is `0`; the providers panel itself stays mounted behind the sign-in screen, so its count is `1` either way); close with `testid=add-backend-close`. At phone width the sign-in screen fits (`bbox 'testid=add-backend-modal'` `insideViewport` `true`).
+- **Managed Agents with an account (`F25.digitalocean-agents`, `F25.digitalocean-backend-removal`).** Blocked: needs a DigitalOcean account with Managed Agents. With one, after a real token the panel lists agents (`digitalocean-agent-<id>`), **New Agent** opens `digitalocean-new-agent-form` (name, size), a session's Connect adds a backend and the sidebar shows `mars-session-panel`; removing that backend opens `mars-backend-removal-modal` with `disconnect-only-button` and `stop-session-button`.
- **Device verify page (`F25.device-verify-page`).** Run `control-openhands browser goto /oauth/device/verify` and `browser snapshot`: heading `Device Authorization`, `Enter the code displayed on your device:`, textbox `Device Code:` and button `Continue`, inside the normal app shell. `control-openhands browser fill 'role=textbox[name="Device Code:"]' QA-0000` and `browser click 'role=button[name="Continue"]'` go straight to the result: heading `Error`, `Failed to authorize device. Please try again.`, button `Try Again`; `browser network --filter verify-authenticated` shows `POST /oauth/device/verify-authenticated` `404`. Then `control-openhands browser goto '/oauth/device/verify?user_code=QA-0000'`: heading `Device Authorization Request`, `DEVICE CODE`, `QA-0000`, `Security Notice`, buttons `Cancel` and `Authorize Device` (screenshot `--feature F25.device-verify-page --name with-code`). `browser click 'role=button[name="Cancel"]'` does nothing in a tab the page did not open (URL unchanged). `browser click 'role=button[name="Authorize Device"]'` and `browser wait 'role=heading[name="Error"]'` show the same Error card; **Try Again** reloads to the request.
- **Shared view (`F25.shared-conversation-view`).** Run `control-openhands browser goto /shared/conversations/<id>` and `control-openhands browser wait-text 'Conversation not found' --timeout 15000`. The page has no sidebar; `browser network --filter shared` shows `GET /api/shared-conversations` and `/api/shared-events/search` `404`. Screenshot `--feature F25.shared-conversation-view --name local-not-found`.
- **No Public Share locally (`F25.share-publicly`).** Run `browser goto /conversations/<id>`, `control-openhands browser click 'testid=conversation-name >> testid=ellipsis-button'` and `control-openhands browser count 'testid=share-publicly-button'`: `0` on a local backend (`browser testids --filter button` lists `rename-button`, `show-skills-button`, `show-agent-tools-button`, `export-transcript-button`, `download-trajectory-button`, `display-cost-button` and `delete-button`; `show-hooks-button` and `stop-button` appear only while the conversation is active (idle, running, waiting for confirmation or finished), so a paused or errored conversation has neither). The toggle, `copy-share-link-button` and `open-share-link-button` need a Cloud backend: blocked.
@@ -112,7 +124,7 @@ Preconditions:
- The device-flow popup survives errors: every failed attempt leaves an `about:blank` tab (#17953). Cancel closes it; after an error close it with `browser close-tab`.
- With the default host the device flow talks to the real `app.all-hands.dev` (`POST /oauth/device/authorize`, then token polling). Starting and cancelling is harmless; never approve a code.
- While the second stack's agent server is stopped or restarting, its ingress answers without CORS headers, so the browser logs `Access to fetch at '<second-url>/api/settings' ... blocked by CORS policy` (also `/server_info`, `/api/conversations/search`, `/api/llm/models/verified`). That is the dead upstream, not a CORS bug; a healthy second stack sends `access-control-allow-origin` for this origin.
-- Expected: Escape never clears the backend selector. Known failure (reproduced 2026-10-09 and 2026-10-12, #18233): Escape on the focused backend selector while its menu is closed (a second Escape after the one that closes the menu, and sometimes the Escape that closes Manage Backends opened from it) clears the selection: the closed selector shows the active backend's name as an italic placeholder (`browser value 'testid=backend-selector >> role=combobox'` is `""`) and its status dot is gone, so `browser wait 'testid=backend-selector >> role=status[name="Disconnected"]'` times out although the backend is down; a reload restores it. Reload before a closed-selector status check, as the Edit bullet does. Repro: `browser click 'testid=backend-selector'`, `browser press Escape` twice (#18233). On 2026-10-12 `bug proof` verified fix PR #18238 at 77de0ad24 against main f07aebdf5 (two `xfail`, two `xpass`, desktop). `control-openhands bug run F25.selector-dropdown` replays it (desktop, after a reload with the mouse off the selector: a reload under a mouse left on it opens its menu and empties its field, which would look like the bug) and reports `xfail` while the bug lasts:
+- Expected: Escape never clears the backend selector. Known failure (reproduced 2026-10-09, 2026-10-12 and 2026-10-13, #18233): Escape on the focused backend selector while its menu is closed (a second Escape after the one that closes the menu, and sometimes the Escape that closes Manage Backends opened from it) clears the selection: the closed selector shows the active backend's name as an italic placeholder (`browser value 'testid=backend-selector >> role=combobox'` is `""`) and its status dot is gone, so `browser wait 'testid=backend-selector >> role=status[name="Disconnected"]'` times out although the backend is down; a reload restores it. Reload before a closed-selector status check, as the Edit bullet does. Repro: `browser click 'testid=backend-selector'`, `browser press Escape` twice (#18233). On 2026-10-12 `bug proof` verified fix PR #18238 at 77de0ad24 against main f07aebdf5 (two `xfail`, two `xpass`, desktop). `control-openhands bug run F25.selector-dropdown` replays it (desktop, after a reload with the mouse off the selector: a reload under a mouse left on it opens its menu and empties its field, which would look like the bug) and reports `xfail` while the bug lasts:
```sh known-bug F25.selector-dropdown escape-closed
control-openhands browser viewport desktop
@@ -131,7 +143,9 @@ Preconditions:
- `/oauth/device/verify` is a Cloud page that also ships in Canvas: on a local stack its POST target does not exist, so Authorize always ends in `Error`. The "Authentication Required" state is unreachable (`useIsAuthed` always resolves `true`).
- `/shared/conversations/<id>` on a local backend also raises a raw toast `HTTP request failed (404 Not Found): {"detail":"Not Found"}` next to `Conversation not found` (#17953).
- Known failure (repro candidate, not an exemption): `F25.edit-escape` closes the Manage modal underneath and drops the Edit draft (Cancel and X close only Edit, `F25.edit-cancel`) (#17953).
-- The add bullet's `network --external --filter 'ids='` check guards an earlier race: on a backend's first activation from `/conversations/<id>`, about 1 attempt in 5 asked the new backend for the old conversation id. It did not happen in 15 first activations at 4eff80237: each time `QA_Second` was removed, its consent unset with `control-openhands api PATCH /api/settings --run "$OH_VERIFY_RUN_2" --write --data '{"misc_settings_diff":{"app_preferences":{"user_consents_to_analytics":null}}}'` (arrange only) and the backend added again from `/conversations/<id>`. A backend that lacks an id answers `[null]`, which now reads as "not found" (only the `This conversation does not exist…` toast), not as incompatible data. No merged change was shown to fix the race itself (#18009 only changed how a `[null]` answer reads; #18024 only moved the redirect into a shared hook, still called after `addBackend`), so a hit (an `ids=` request to `<second-url>`) is a bug to file. At 95115e84f6dd it hit on 1 of 2 first activations from `/conversations/<id>` (one `GET <second-url>/api/conversations?ids=<id>` answered `200`, with no `This conversation does not exist…` toast after it). The hit followed a failed Connect in the same modal (an empty key, `Invalid API key`) before the successful one; the clean retry, which connected once, had none, so a repro should try both sequences. On 2026-10-08 at d2c89252d it did not reproduce in 17 first activations (8 clean, 9 failed-then-clean, some under CPU load and some human-paced): every `ids=` capture was empty, and no merged change touched the activation logic since the hit, so it stays a watch item rather than a filed defect. Record the Add bullet as `fail` when the request appears, even though the redirect and the selector look right.
+- The add bullet's `network --external --filter 'ids='` check guards an earlier race: on a backend's first activation from `/conversations/<id>`, about 1 attempt in 5 asked the new backend for the old conversation id. It did not happen in 15 first activations at 4eff80237: each time `QA_Second` was removed, its consent unset with `control-openhands api PATCH /api/settings --run "$OH_VERIFY_RUN_2" --write --data '{"misc_settings_diff":{"app_preferences":{"user_consents_to_analytics":null}}}'` (arrange only) and the backend added again from `/conversations/<id>`. A backend that lacks an id answers `[null]`, which now reads as "not found" (only the `This conversation does not exist…` toast), not as incompatible data. No merged change was shown to fix the race itself (#18009 only changed how a `[null]` answer reads; #18024 only moved the redirect into a shared hook, still called after `addBackend`), so a hit (an `ids=` request to `<second-url>`) is a bug to file. At 95115e84f6dd it hit on 1 of 2 first activations from `/conversations/<id>` (one `GET <second-url>/api/conversations?ids=<id>` answered `200`, with no `This conversation does not exist…` toast after it). The hit followed a failed Connect in the same modal (an empty key, `Invalid API key`) before the successful one; the clean retry, which connected once, had none, so a repro should try both sequences. On 2026-10-08 at d2c89252d it did not reproduce in 17 first activations (8 clean, 9 failed-then-clean, some under CPU load and some human-paced): every `ids=` capture was empty, and no merged change touched the activation logic since the hit, so it stays a watch item rather than a filed defect. Record the Add bullet as `fail` when the request appears, even though the redirect and the selector look right. Known failure (reproduced 2026-10-13, #18390): two independent first activations hit it that day, each the run's first activation of `QA_Second` after a clean Connect. On 2026-10-13 at 2bdc0e9d6 it hit on 1 of 6 first activations from `/conversations/<id>`: the first one of the run (`GET <second-url>/api/conversations?ids=<id>` `200`, no toast), a clean Connect in a modal opened after earlier failed Connects in other Add Backend openings; the next 5 (2 failed-then-clean, 3 clean, plus one Manage → Add) had none.
+- Known failure (reproduced 2026-10-13, #18389): Add Backend and Manage Backends neither take nor contain keyboard focus. On open, focus stays on the backend selector input behind the modal; the first Tab goes to the page behind (the Settings link, the Code/Automate toggle, the composer) and never enters the modal, and typing lands in the Home composer behind the open modal. Only after focus has been put inside the modal (for example `browser focus 'testid=add-backend-option-cloud'`) does tabbing past its last control leave for the body, the logo link and the sidebar toggle. `src/components/shared/modals/modal-backdrop.tsx` sets no initial focus, trap or restore; #18222 changes only `confirmation-modal.tsx` and does not cover these modals (same class as #18196).
- Toasts are not page or HTTP errors, so `browser errors --app-only` misses them: read `browser toasts --history` after every add or switch, before anything reloads the page (the history starts with each page load).
- `F25.locked-cloud` needs `scripts/static-server.mjs --lock-to-cloud <url>`, which neither `bin/agent-canvas.mjs` nor `control-openhands launch` can pass today; even with it, reconnecting needs a Cloud account.
-- The Cloud tab title truncates to `OpenHan…` at 390 px when the Agent-server tab is selected; the layout still fits.
+- The Cloud tab title truncates to `OpenHan…` at 390 px when the Agent-server tab is selected; the layout still fits. With the Providers tab present all three titles are cut to three letters.
+- A token DigitalOcean rejects surfaces as the bare `401 Unauthorized`, with no hint that the token is wrong or lacks scopes.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F26-runtime-variants.md b/.agents/skills/verify-openhands/references/feature-map/F26-runtime-variants.md
index 7fa676c4d3..ced2b93559 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F26-runtime-variants.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F26-runtime-variants.md
@@ -34,12 +34,13 @@ Source: `bin/agent-canvas.mjs`, `scripts/dev-with-automation.mjs`, `scripts/dev-
- `F26.host-bind-lan`: `--host 0.0.0.0` warns, listens on the machine's LAN address, and serves an index.html that carries `__AGENT_CANVAS_AUTH_REQUIRED__` and neither `__AGENT_CANVAS_SESSION_API_KEY__` nor the key itself (the loopback launcher's page carries the key marker); the UI behaves like `--public` (Add a backend with Next disabled; Skip leads to the API-key screen).
- `F26.host-bind-lan-optin`: the opt-in the launcher's warning recommends (`--allow-lan-session-key`) should restore key injection on a LAN bind. Known failure (reproduced 2026-10-08): the npm launcher ignores the flag and the page still carries only `__AGENT_CANVAS_AUTH_REQUIRED__`; #17949.
- `F26.host-bind-env`: `OH_BIND_HOST=0.0.0.0` (the environment form of `--host`) prints the same two "not loopback" warnings and does not inject the session key, even with `LOCAL_BACKEND_API_KEY` set.
+- `F26.automation-startup-failure`: when the requested automation backend exits before it is ready, the launcher should print no success banner, stop the services it started and exit nonzero with the automation's exit reason. Known failure (reproduced 2026-10-13, #18362): it prints the **Main UI** banner and keeps the stack up with `/api/automation/health` answering `502`.
- `F26.runtime-services`: `/server_info.runtime_services` lists the agent-server, ingress, frontend and automation URLs as the agent sees them, and a new conversation's system prompt carries a matching `<RUNTIME_SERVICES>` block.
- `F26.runtime-services-agent-use`: with that block alone, the agent can reach the automation backend from its terminal: asked to, it reads the OpenAPI at the URL the block names, creates an enabled cron automation, and dispatches a run that completes; the automation and its run show up in the Automations UI.
- `F26.lib-build`: `npm run build:lib` produces `dist/` where every `package.json` `exports` target exists and the main entry exports `AgentServerUIProviders`, `AgentServerUIRoot`, `CloudOrganizationBoundary` and the telemetry helpers.
- `F26.lib-style-scope`: all bundled CSS is scoped under `[data-agent-server-ui]`, and theme tokens such as `--oh-color-base` live on that scope root (observable in the standalone app).
- `F26.lib-host-app`: mounted in a separate host app, Canvas styles stay inside the scope and `styleOverrides` restyle it. Blocked: no host-app example exists.
-- `F26.docker-image`: `docker run ghcr.io/openhands/agent-canvas` serves Canvas at `/canvas`; without `AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true` the UI asks for the key. Blocked without a Docker daemon. Known failure (reproduced 2026-10-09 with an image built from this checkout): on a host whose kernel has no IPv6 (no `/proc/net/if_inet6`), `docker/entrypoint.sh` starts the static server with `--host ::`, which exits with `listen EAFNOSUPPORT: address family not supported :::8000`, and the container stops within about half a minute of start, with exit code `0` (#18178).
+- `F26.docker-image`: `docker run ghcr.io/openhands/agent-canvas` serves Canvas at `/canvas`; without `AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true` the UI asks for the key. Blocked without a Docker daemon. On a host whose kernel has no IPv6 (no `/proc/net/if_inet6`) the entrypoint logs `IPv6 is not available; binding the frontend to 0.0.0.0.` and the container keeps running (#18180).
- `F26.docker-conversation-runtime`: `OH_CONVERSATION_RUNTIME=docker` runs each new conversation in its own container. Blocked without a Docker daemon.
- `F26.helm-chart`: `helm install agent-canvas ./helm/agent-canvas` runs the Docker image as a Kubernetes StatefulSet with a PVC and an Ingress. Blocked without `helm` and a cluster.
- `F26.desktop-boot-splash`: the Electron app first shows a dark splash (logo, **OpenHands Agent Canvas**, spinner, `Starting backend services…`, then live service-log lines, a first-launch note and **Show details**).
@@ -89,12 +90,13 @@ Preconditions:
- **Pinned session key (`F26.session-key-pinned`).** Same shell, after `kill -TERM $(cat $Q/pid); sleep 6`: `start env LOCAL_BACKEND_API_KEY=qa-f26-pin-key nohup node bin/agent-canvas.mjs --port 18960`. `curl -s http://127.0.0.1:18960/ | grep -o '__AGENT_CANVAS_SESSION_API_KEY__[^;<]*'` prints `__AGENT_CANVAS_SESSION_API_KEY__="qa-f26-pin-key"`; `/api/settings` is `200` with `-H 'X-Session-API-Key: qa-f26-pin-key'` and `401` with the saved generated key. In the browser, `control-openhands browser goto http://127.0.0.1:18960/ --allow-external` and `control-openhands browser eval "({key: window.__AGENT_CANVAS_SESSION_API_KEY__ === 'qa-f26-pin-key', authRequired: window.__AGENT_CANVAS_AUTH_REQUIRED__ === true})"` → `{key: true, authRequired: false}`.
- **Bind host from the environment (`F26.host-bind-env`).** Same shell, after `kill -TERM $(cat $Q/pid); sleep 6`: `start env LOCAL_BACKEND_API_KEY=qa-f26-pin-key OH_BIND_HOST=0.0.0.0 nohup node bin/agent-canvas.mjs --port 18960`. `grep -a 'not loopback' $Q/launcher.log` shows the same `[auth]` and `[static]` warnings as `--host 0.0.0.0`, and `curl -s http://127.0.0.1:18960/ | grep -o '__AGENT_CANVAS_\(SESSION_API_KEY\|AUTH_REQUIRED\)__' | sort -u` prints only `__AGENT_CANVAS_AUTH_REQUIRED__`. Stop it with `kill -TERM $(cat $Q/pid)`; after about 6 s ports 18960–18963 are free.
- **Frontend-only, returning user (`F26.frontend-only-returning`).** Same shell, after `kill -TERM $(cat $Q/pid); sleep 6`. Arrange a browser that onboarded on this origin against the full launcher: `start env LOCAL_BACKEND_API_KEY=qa-f26-pin-key nohup node bin/agent-canvas.mjs --port 18960` (`code=200`), `control-openhands browser reset` (a fresh profile, which also forgets your run's onboarding: restore it at the end), `control-openhands browser goto http://127.0.0.1:18960/ --allow-external`, `control-openhands browser wait 'testid=telemetry-consent-form' --timeout 15000` (this backend state has never answered consent; a second pass on the same `$Q` skips the form), `control-openhands browser uncheck 'testid=telemetry-consent-form >> role=checkbox'`, `control-openhands browser click 'testid=confirm-telemetry-preferences'`, `control-openhands browser wait 'testid=onboarding-step-choose-agent' --timeout 15000`, `control-openhands browser click 'testid=onboarding-skip'` and `control-openhands browser wait 'testid=root-layout' --timeout 20000`. `control-openhands browser eval "JSON.parse(localStorage.getItem('openhands-backends')).map(b=>({id:b.id,name:b.name,host:b.host}))"` is `[{id: "default-local", name: "Local", host: "http://127.0.0.1:18960"}]`. Now serve the same port without backends: `kill -TERM $(cat $Q/pid); sleep 6; start nohup node bin/agent-canvas.mjs --frontend-only --port 18960` (`code=200`, and `curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:18960/server_info` is `503`). `control-openhands browser goto http://127.0.0.1:18960/ --allow-external` and `control-openhands browser wait 'testid=agent-server-onboarding-screen' --timeout 20000` succeed: the gate of `F25.recovery-gate`, not onboarding. `control-openhands browser count` is `1` for `testid=manage-backends-modal` and `0` for `testid=onboarding-step-check-backend`, `testid=first-run-onboarding-screen`, `testid=api-key-entry-screen`, `testid=root-layout`, `testid=close-manage-backends-modal` and `testid=manage-backends-done`; `control-openhands browser press Escape` leaves the modal (`count` `1`). `control-openhands browser text 'testid=manage-backends-row-Local'` reads `Local`, `http://127.0.0.1:18960`, `Disconnected`, `HTTP request failed (503 Service Unavailable): "Service Unavailable (no backend configured for this route)"` and `LOCAL`, and `control-openhands browser testids` lists `manage-backends-add` (**Add Backend**) as the way on. `control-openhands browser screenshot --feature F26.frontend-only-returning --name recovery-gate`. The 503 probes are expected errors in the sweep: `control-openhands browser errors` (without `--app-only`, which keeps only your run's origin) lists `external:http-error` rows with `503` for `http://127.0.0.1:18960/server_info`, `/api/settings` and `/api/llm/models/verified`, and `pageErrors` is `0`. Stop it with `kill -TERM $(cat $Q/pid)`; after about 6 s ports 18960–18963 are free. Restore your run: `control-openhands browser goto /` and `control-openhands onboard --skip`.
+- **Automation exits during startup (`F26.automation-startup-failure`).** With 18960–18963 free, start a loopback launcher whose automation cannot install: `Q=$OH_VERIFY_RUN/private/f26-autofail; mkdir -p $Q; HOME=$Q/home OH_CANVAS_SAFE_STATE_DIR=$Q/state OH_CANVAS_SAFE_BACKEND_PORT=18961 OH_CANVAS_SAFE_AUTOMATION_PORT=18962 OH_CANVAS_SAFE_VITE_PORT=18963 OH_AUTOMATION_VERSION=0.0.1 LOCAL_BACKEND_API_KEY=qa-f26-autofail-key OH_SECRET_KEY=qa-f26-secret DO_NOT_TRACK=1 nohup node bin/agent-canvas.mjs --port 18960 > $Q/launcher.log 2>&1 & echo $! > $Q/pid`, then poll the log until `Main UI` appears or the pid exits. Expected (#18362): no `Main UI` banner, a message naming the automation startup failure, a nonzero exit and closed ports. Known failure (reproduced 2026-10-13 twice, with `0.0.1` and `0.0.0-qa-missing`): the log shows `[automation] ... No solution found ...` and `[automation] Exited with code 1` (code 2 for the unparsable version), then `Main UI: http://localhost:18960/` two seconds later; `kill -0 $(cat $Q/pid)` succeeds, `curl http://127.0.0.1:18960/` is `200` and `/api/automation/health` (with the key) is `502`. Stop it with `kill -TERM $(cat $Q/pid)`; the ports free within seconds. The #18299 migration failure in the issue is the same path through a different exit cause.
- **Runtime services (`F26.runtime-services`).** Run `control-openhands api GET /server_info --pick runtime_services.mode` (`agent-canvas`) and `control-openhands api GET /server_info --pick runtime_services.services.automation.url_from_agent` (`http://localhost:<automation port>`; `control-openhands status` prints the ports). Then `control-openhands conversation start --prompt "Reply with the single word: ok" --wait --timeout 180` (prints `<id>`) and `control-openhands conversation events <id> --grep RUNTIME_SERVICES --from-start`: the `SystemPromptEvent` matches, with an excerpt `<RUNTIME_SERVICES>\nYou are running inside an agent-canvas dev stack started ...`. `control-openhands conversation events <id> --grep "localhost:<automation port>" --from-start` shows `* Automation backend: http://localhost:<port>` plus its `Docs:` and `OpenAPI:` URLs.
- **The agent uses the runtime services (`F26.runtime-services-agent-use`).** Write `qa-f26-agent.txt` (outside the workspace) containing: ``Using the Automation backend described in your RUNTIME_SERVICES (read its OpenAPI to find the routes), create one automation named QA_rt_auto from a prompt: the prompt is "Reply with the single word: pong. Do not run any tools.", the schedule is the cron 0 9 * * *, and it is enabled. Then dispatch one run of it now. Do not change anything else. Reply with the automation id and the run id only.`` Run `control-openhands conversation start --prompt "$(cat qa-f26-agent.txt)" --wait --timeout 400` (note `<agent-id>`); the reply names `<automation-id>` and a run id. `control-openhands conversation events <agent-id> --kinds ActionEvent --from-start` shows the agent's own `curl` calls: `http://localhost:<automation port>/api/automation/openapi.json`, `POST …/api/automation/v1/preset/prompt` and `POST …/api/automation/v1/<automation-id>/dispatch`, each with the `X-Session-API-Key: $OPENHANDS_AUTOMATION_API_KEY` header the block names. Second view in the UI: `control-openhands browser goto /automations` and `control-openhands browser text '[data-testid^=automation-card-] >> has-text=QA_rt_auto'` (`QA_rt_auto`, the prompt, `cron`, `Runs 1`). Open it with `control-openhands browser click '[data-testid^=automation-card-] >> has-text=QA_rt_auto >> text=QA_rt_auto' --expect-url '/automations/[0-9a-f-]+'`. Within about a minute, `control-openhands browser text 'testid=automation-activity-log'` shows the run's summary (`Replied with the single word "pong" …`), a cost and `Successful` (`control-openhands browser screenshot --feature F26.runtime-services-agent-use --name agent-created-automation-run`). `control-openhands api GET /api/automation/v1/<automation-id>` has `name` `QA_rt_auto`, `trigger.schedule` `0 9 * * *` and `enabled` `true`. Delete it afterwards (`control-openhands api DELETE /api/automation/v1/<automation-id> --write`, arrange). It runs daily at 09:00 UTC otherwise.
- **Library build (`F26.lib-build`).** Never build inside the shared checkout (it regenerates i18n and typegen files the other runs hash); build in a copy: `L=$OH_VERIFY_RUN/private/f26-lib; mkdir -p $L; tar --exclude=./node_modules --exclude=./build --exclude=./.git --exclude=./dist -cf - . | tar -xf - -C $L; ln -s "$PWD/node_modules" $L/node_modules; (cd $L && npm run build:lib); echo "exit=$?"`. It ends with `✓ built in` and `exit=0` (about 30 s). Then `(cd $L && node -e 'const p=require("./package.json"),fs=require("fs");let ok=0,miss=[];for(const[k,v]of Object.entries(p.exports))for(const f of(typeof v==="string"?[v]:Object.values(v)))fs.existsSync(f)?ok++:miss.push(k+" -> "+f);console.log(JSON.stringify({entries:Object.keys(p.exports),ok,missing:miss}))')` prints 9 entries (`.`, `./browser`, `./conversation`, `./files`, `./settings`, `./sidebar`, `./terminal`, `./i18n`, `./package.json`), `ok` 25 and `missing` `[]`. `grep -ohE 'AgentServerUIProviders|AgentServerUIRoot|CloudOrganizationBoundary|configureTelemetry|setTelemetryConsent' $L/dist/lib/index.d.ts | sort -u` lists all five. Remove the copy with `rm -rf $L`.
- **Style scope (`F26.lib-style-scope`).** On your run's home page (`control-openhands browser goto /`) run `control-openhands browser eval "(() => { let total=0, unscoped=[]; for (const sh of document.styleSheets) { let rules; try { rules = sh.cssRules } catch { continue } const walk = (rs) => { for (const r of rs) { if (r.selectorText) { total++; if (!r.selectorText.includes('data-agent-server-ui')) unscoped.push(r.selectorText) } else if (r.cssRules) walk(r.cssRules) } }; walk(rules) } return { scopeRoots: document.querySelectorAll('[data-agent-server-ui]').length, total, unscopedCount: unscoped.length, sample: unscoped.slice(0, 12) } })()"`. `total` is in the thousands and `unscopedCount` is `2`: only `.go<hash>` and `.go<hash> > *`, react-hot-toast's runtime classes. `control-openhands browser eval "getComputedStyle(document.querySelector('[data-agent-server-ui]')).getPropertyValue('--oh-color-base').trim()"` is `#181818`. This proves the bundle is scoped, not that a host page is unaffected (`F26.lib-host-app`).
-- **Blocked (`F26.lib-host-app`, `F26.docker-image`, `F26.docker-conversation-runtime`, `F26.helm-chart`).** If `docker info` cannot reach the daemon but `dockerd` is installed, start it (`setsid dockerd`); without one, record both Docker rows `blocked` naming the missing daemon. With a daemon, run the image with `-p 127.0.0.1:8000:8000`, open `http://localhost:8000/canvas` and expect the **Add a backend** step (`testid=onboarding-step-check-backend`, Next disabled until a key is typed); `onboarding-skip` leads to `testid=api-key-entry-screen`. With `-e AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true` the key is injected and first run opens on Choose your agent, under the telemetry consent dialog. `npm run build:docker` behind a TLS-intercepting proxy needs the proxy CA inside the build stages (without it `uv pip install` / `pip install` in the final stage fail with `CERTIFICATE_VERIFY_FAILED: self-signed certificate in certificate chain`), and Docker Hub may answer 429. Build a scratch copy of the Dockerfile that only adds the CA, never an edited `docker/Dockerfile`: after `FROM node:24-slim AS frontend-build` add `COPY --from=ccrca ca-bundle.crt /tmp/qa-ca.crt` and `ENV NODE_EXTRA_CA_CERTS=/tmp/qa-ca.crt npm_config_cafile=/tmp/qa-ca.crt`, after the first `USER root` add the same `COPY` and `ENV SSL_CERT_FILE=/tmp/qa-ca.crt PIP_CERT=/tmp/qa-ca.crt REQUESTS_CA_BUNDLE=/tmp/qa-ca.crt UV_NATIVE_TLS=1`, then `docker build -f <copy> --build-context ccrca=<dir holding ca-bundle.crt> --network host --build-arg AGENT_SERVER_IMAGE=<images.agentServer>:<versions.agentServer>-python --build-arg AGENT_SERVER_VERSION=<versions.agentServer> --build-arg AUTOMATION_VERSION=<versions.automation> --build-arg VITE_BASE_PATH=/canvas -t qa-agent-canvas:target .` (the pins `scripts/docker-build.mjs` reads from `config/defaults.json`; about 5 min on a warm cache). Publish it on a free port (`-p 127.0.0.1:<free>:8000`; 8000 and the 188xx blocks may belong to other runs). On a kernel without IPv6 the unmodified image hits #18178: record that run `fail` with `docker logs` (`EAFNOSUPPORT ... :::8000`) and `docker inspect -f '{{.State.Status}} {{.State.ExitCode}}'` (`exited 0`). To drive the rest of the row anyway (arrange only, say so in the note), start it with the static server bound to IPv4: `docker run -d --name <qa-name> -p 127.0.0.1:<free>:8000 --entrypoint tini qa-agent-canvas:target -- bash -c "sed 's/--host ::/--host 0.0.0.0/' /opt/agent-canvas/entrypoint.sh > /tmp/ep.sh && exec bash /tmp/ep.sh"`; `/canvas/` answers `200` within about 20 s. The container's generated key is `docker exec <qa-name> cat /home/openhands/.openhands/agent-canvas/api-key.txt` (write it to `$OH_VERIFY_RUN/private/`, fill with `--value-file`). Settings → Application (`/canvas/settings/app`) shows the image's `Version` (`agent-canvas-update-card`), which matches `jq -r .version package.json`. Remove the containers and the image afterwards (`docker rm -f`, `docker rmi`). Record `F26.lib-host-app` `blocked` naming the missing host-app example. `command -v helm kubectl` prints nothing here: record `F26.helm-chart` `blocked` naming the missing `helm` binary and cluster; with them, `helm lint helm/agent-canvas` and `helm template qa helm/agent-canvas` render the StatefulSet, Service and Ingress, and `helm install` follows `helm/agent-canvas/README.md`.
+- **Blocked (`F26.lib-host-app`, `F26.docker-image`, `F26.docker-conversation-runtime`, `F26.helm-chart`).** If `docker info` cannot reach the daemon but `dockerd` is installed, start it (`setsid dockerd`); without one, record both Docker rows `blocked` naming the missing daemon. With a daemon, run the image with `-p 127.0.0.1:8000:8000`, open `http://localhost:8000/canvas` and expect the **Add a backend** step (`testid=onboarding-step-check-backend`, Next disabled until a key is typed); `onboarding-skip` leads to `testid=api-key-entry-screen`. With `-e AGENT_CANVAS_ALLOW_LAN_SESSION_KEY=true` the key is injected and first run opens on Choose your agent, under the telemetry consent dialog. `npm run build:docker` behind a TLS-intercepting proxy needs the proxy CA inside the build stages (without it `uv pip install` / `pip install` in the final stage fail with `CERTIFICATE_VERIFY_FAILED: self-signed certificate in certificate chain`), and Docker Hub may answer 429. Build a scratch copy of the Dockerfile that only adds the CA, never an edited `docker/Dockerfile`: after `FROM node:24-slim AS frontend-build` add `COPY --from=ccrca ca-bundle.crt /tmp/qa-ca.crt` and `ENV NODE_EXTRA_CA_CERTS=/tmp/qa-ca.crt npm_config_cafile=/tmp/qa-ca.crt`, after the first `USER root` add the same `COPY` and `ENV SSL_CERT_FILE=/tmp/qa-ca.crt PIP_CERT=/tmp/qa-ca.crt REQUESTS_CA_BUNDLE=/tmp/qa-ca.crt UV_NATIVE_TLS=1`, then `docker build -f <copy> --build-context ccrca=<dir holding ca-bundle.crt> --network host --build-arg AGENT_SERVER_IMAGE=<images.agentServer>:<versions.agentServer>-python --build-arg AGENT_SERVER_VERSION=<versions.agentServer> --build-arg AUTOMATION_VERSION=<versions.automation> --build-arg VITE_BASE_PATH=/canvas -t qa-agent-canvas:target .` (the pins `scripts/docker-build.mjs` reads from `config/defaults.json`; about 5 min on a warm cache). Publish it on a free port (`-p 127.0.0.1:<free>:8000`; 8000 and the 188xx blocks may belong to other runs). Docker Hub may answer `429 Too Many Requests` for `node:24-slim`; in the scratch copy only, replace both `FROM node:24-slim` lines with `FROM mirror.gcr.io/library/node:24-slim` (arrange; say so in the note). Run the unmodified image with `docker run -d --name <qa-name> -p 127.0.0.1:<free>:8000 qa-agent-canvas:target`. On a kernel without IPv6, `docker logs <qa-name>` shows `IPv6 is not available; binding the frontend to 0.0.0.0.` and `Static-server + proxy listening on http://0.0.0.0:8000/canvas/`, `/canvas/` answers `200` within about 25 s and `docker inspect -f '{{.State.Status}}' <qa-name>` is still `running` minutes later (#18178 fixed by #18180, verified 2026-10-13); `docker exec <qa-name> ls /opt/agent-canvas` lists the `mars-*.mjs` bridge modules (#18343). The container's generated key is `docker exec <qa-name> cat /home/openhands/.openhands/agent-canvas/api-key.txt` (write it to `$OH_VERIFY_RUN/private/`, fill with `--value-file`). Settings → Application (`/canvas/settings/app`) shows the image's `Version` (`agent-canvas-update-card`), which matches `jq -r .version package.json`. Remove the containers and the image afterwards (`docker rm -f`, `docker rmi`). Record `F26.lib-host-app` `blocked` naming the missing host-app example. `command -v helm kubectl` prints nothing here: record `F26.helm-chart` `blocked` naming the missing `helm` binary and cluster; with them, `helm lint helm/agent-canvas` and `helm template qa helm/agent-canvas` render the StatefulSet, Service and Ingress, and `helm install` follows `helm/agent-canvas/README.md`.
- **Desktop splash and window (`F26.desktop-boot-splash`, `F26.desktop-main-window`).** Start a private display and the app in one process group: `Q=$OH_VERIFY_RUN/private/f26-desktop; mkdir -p $Q/shots; setsid nohup sh -c "echo \$\$ > $Q/pgid; Xvfb :78 -screen 0 1440x1000x24 -nolisten tcp & sleep 1; DISPLAY=:78 HOME=$Q/home OH_CANVAS_SAFE_STATE_DIR=$Q/state LOCAL_BACKEND_API_KEY=qa-f26-desktop-key OH_SECRET_KEY=qa-f26-secret DO_NOT_TRACK=1 exec node_modules/.bin/electron --no-sandbox electron" > $Q/desktop.log 2>&1 &`, then capture frames: `for i in $(seq 1 40); do sleep 1; DISPLAY=:78 import -window root $Q/shots/s$(printf %02d $i).png; done`. Read the frames: the first seconds show the splash (logo, `OpenHands Agent Canvas`, `AI coding agent interface`, spinner, `Starting backend services…`, then lines such as `agent-server: {"asctime": ...`, the note `First launch downloads Python + the OpenHands agent server.` and a **Show details** button); a later frame shows the main window with a `File Edit View Window` menu and the first-run **Choose your agent** step under the consent dialog naming `the local backend "Local" at http://localhost:8000` (about 30 s on a warm cache, minutes on the first download). Copy the frames you cite into `$OH_VERIFY_RUN/evidence/F26.desktop-boot-splash/` and `.../F26.desktop-main-window/`. Stop in two steps: `kill -TERM $(cat $Q/pgid)` signals only the Electron launcher (it quits and stops its backend services); after about 10 s ports 8000, 18000, 18001 and 3001 are free again. Then `kill -TERM -- -$(cat $Q/pgid)` ends Xvfb; `ps -o pid,cmd -g $(cat $Q/pgid)` lists nothing.
- **External links (`F26.desktop-external-links`).** Not driven: record `not-run` (harness gap: no verb clicks inside the Electron window or observes the OS browser handoff).
@@ -110,6 +112,7 @@ Preconditions:
- The launcher serves the bundled VS Code editor. #17660 made that opt-in (`OH_CANVAS_ENABLE_VSCODE=true`) and #18048 reverted it, so only a checkout between the two needs the variable (`launch --vscode` sets it). A launcher that serves it reserves `/vscode/`: a frontend-only stack answers `503` there and logs `[static] /vscode -> 503 (rejected)`; a stack with an agent-server lists `/vscode → http://127.0.0.1:<agent-server port + 1000>` in its ingress banner and hands the agent-server that editor port (19961 for the hand-started launchers here, 19000 for the desktop app), which the launcher's own port check does not cover. On a checkout between the two without the variable, `/vscode/` is an ordinary SPA URL (`200`). Here the agent-server has no editor binary (`VSCode server binary not found, VSCode will be disabled` in the launcher log, `/api/vscode/status` `{"running":false,"enabled":true}`), so the editor port stays free even then.
- The port-in-use error is printed twice, the second time with a Node stack trace, and suggests `PORT=<other>` rather than `--port` (#17949). The `--public` key error's example says `npm run dev -- --public` instead of the npx command.
- A backend-only instance's `/server_info.runtime_services` still describes the ingress as routing `/* to the frontend`, which it does not run (#17949).
+- In this sandbox `node_modules/electron/dist` is absent and `node node_modules/electron/install.js` fails with `ERR_ASSERTION` (2026-10-13), so the `F26.desktop-*` rows stay blocked here.
- The Electron app hardcodes ports 8000/18000/18001 (and the static server takes 3001), ignores `PORT`, and refuses to start as root without `--no-sandbox` (`Running as root without --no-sandbox is not supported`). `npm run desktop` first runs `build:app`, which rebuilds `build/` under every other run: start `node_modules/.bin/electron --no-sandbox electron` directly against the existing build.
- Never stop the desktop app with one group-wide signal: when Xvfb dies with Electron, the app exits without stopping its backend, which is left orphaned (own process groups, parent 1) on 8000/18000/18001/3001 and blocks the next start. If that happens, find the orphans by their ports' command lines (`ps -eo pid,pgid,cmd`, look for `--port 18000`, `--port 18001`, `--port 3001`, `ingress.mjs --port 8000`) and stop each group by id.
- The generated session key lives in `$HOME/.openhands/agent-canvas/api-key.txt`, not under `OH_CANVAS_SAFE_STATE_DIR`: a hand-started launcher without a private `HOME` reads and writes the operator's real key file.
diff --git a/.agents/skills/verify-openhands/references/feature-map/F27-workspace-tools.md b/.agents/skills/verify-openhands/references/feature-map/F27-workspace-tools.md
index 25687bb5de..cf64050762 100644
--- a/.agents/skills/verify-openhands/references/feature-map/F27-workspace-tools.md
+++ b/.agents/skills/verify-openhands/references/feature-map/F27-workspace-tools.md
@@ -105,5 +105,6 @@ Preconditions:
- At phone width (and in a narrow drawer) the tab row shows only the tabs that fit; the rest are reachable only through the tabs menu (`conversation-tabs-menu-open-<tab>`), and which tabs fit depends on the active tab's label width.
- Plain `agent-canvas` instances on one machine share the tmux socket `/tmp/tmux-<uid>/openhands` (OpenHands/OpenHands#17946), so another instance stopping can reset this one's terminal. `control-openhands launch` gives each run its own `TMUX_TMPDIR`, so in verification runs a reset means this run's agent server restarted.
- Agent Tools & Metadata remembers the last tab (it reopens on Available Tools).
+- The overview drawer's Automations and MCP sections have no opener: the Overview menu opens only Pull Requests (`conversation-overview-menu-open-git-pull_requests`). Their in-range changes (Add automation now launches `/automations/setup` instead of a modal, #17688; the MCP enable toggle shows its own error toast, #18182) cannot be driven from the UI (checked 2026-10-13).
- Known open issues: terminal history after reload (#17566) still fails (reproduced 2026-10-06); info modals at phone width (#17562) pass.
- Agent tab requests (`open_tab`, `navigate_to_file`, chat file links) are saved per conversation like a user tab click (#18045): after the agent opens Terminal or a file and the page reloads, the drawer starts closed and the panel toggle reopens it on that tab; clicking that tab then closes the drawer. At phone width they navigate to `/conversations/<id>/panel`.
diff --git a/.agents/skills/verify-openhands/references/feature-map/README.md b/.agents/skills/verify-openhands/references/feature-map/README.md
index 36faf3be44..60c0107822 100644
--- a/.agents/skills/verify-openhands/references/feature-map/README.md
+++ b/.agents/skills/verify-openhands/references/feature-map/README.md
@@ -5,7 +5,7 @@ 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@553d4519113192a80fb18376fdb6c1e39fa06387 (2026-10-09). The next maintenance pass starts from this commit; a pass proposes the next baseline in its PR, and merging that PR accepts it.
+Maintenance baseline: main@2bdc0e9d6c5940bc3d4667fb2127fbb753b2f7c8 (2026-10-13). 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
@@ -231,33 +231,33 @@ How to write and prove new entries: [../mapping.md](../mapping.md).
|---|---|---|---|---|---|
| F01 | [First run, onboarding and sign-in](F01-first-run-and-sign-in.md) | 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](F02-app-shell.md) | rail and phone drawer, collapse, home pinning, getting-started checklist, command menu, toasts | every page; `Control+k` / `Meta+k` | baseline; LLM for checklist progress | 27 |
-| F03 | [Home and starting work](F03-home.md) | home composer, workspace picker, plugin picker, recommended automations rail, no-LLM banner | `/`, **New Chat**, command menu | runs before and after `llm preset`; fixture repo | 40 |
-| F04 | [Conversation list and folders](F04-conversation-list.md) | sidebar list, View presets, workspace folders, tags, rename/pin/archive/delete, load more | sidebar on every page | several conversations; fixture repos | 40 |
+| F03 | [Home and starting work](F03-home.md) | home composer, workspace picker, plugin picker, recommended automations rail, no-LLM banner | `/`, **New Chat**, command menu | runs before and after `llm preset`; fixture repo | 42 |
+| F04 | [Conversation list and folders](F04-conversation-list.md) | 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](F05-composer.md) | send, drafts, attachments, model pill, slash commands, `/goal`, plan mode, dictation | home and conversation composer | LLM | 25 |
| F06 | [Agent activity](F06-agent-activity.md) | messages, tool events, thinking, empty state, confirmation mode, stop/resume, errors, branching | `/conversations/<id>` | LLM | 35 |
| F07 | [Conversation page, header and menu](F07-conversation-page.md) | 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](F08-workspace-files-and-changes.md) | Files tab, Commits and uncommitted changes, diff viewer, file links in chat | panel toggle, file links | LLM; fixture repo | 33 |
+| F08 | [Workspace drawer: files and changes](F08-workspace-files-and-changes.md) | 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](F09-settings-shell.md) | settings navigation, phone hub, deep links, update card, backend note | gear, command menu, URLs | baseline; deep links before `llm preset` | 26 |
| F10 | [LLM profiles](F10-llm-profiles.md) | list, add, edit, rename, duplicate, delete, default, advanced fields, validation | `/settings/llm` | fresh run; DeepSeek key | 34 |
| F11 | [Provider connections](F11-provider-connections.md) | add, edit, rotate key, delete connections; profiles from a connection | `/settings/llm` | fresh run; DeepSeek key | 21 |
| F12 | [Model router](F12-model-router.md) | meta-profiles, templates, run on first message, routing effect | `/settings/meta-llm` | LLM profiles | 25 |
-| F13 | [Agent profiles](F13-agent-profiles.md) | OpenHands and ACP profiles, editor, name rules, active profile, MCP and secret scoping | `/settings/agents` | fresh run; LLM | 20 |
+| F13 | [Agent profiles](F13-agent-profiles.md) | OpenHands and ACP profiles, editor, name rules, active profile, MCP and secret scoping | `/settings/agents` | fresh run; LLM | 22 |
| F14 | [Secrets](F14-secrets.md) | list, add, edit, rename, delete, agent access | `/settings/secrets` | LLM for agent access | 11 |
| F15 | [Condenser, agent context and verification](F15-agent-behavior-settings.md) | condenser fields, agent context, confirmation mode and critic, their effect on runs | `/settings/condenser`, `/agent-context`, `/verification` | LLM for the effects | 23 |
-| F16 | [Application settings](F16-application-settings.md) | language, theme, analytics, sound, checklist, title model, voice input, git identity | `/settings/app` | LLM for title and git checks | 19 |
+| F16 | [Application settings](F16-application-settings.md) | language, theme, analytics, sound, checklist, title model, voice input, git identity | `/settings/app` | LLM for title and git checks | 20 |
| F17 | [Customize hub and MCP servers](F17-mcp-servers.md) | catalog, install, test, edit, delete, custom servers, agent use | **Customize**, `/mcp` | `uvx`/`npx`; LLM | 31 |
| F18 | [Skills catalog](F18-skills.md) | facets, search, enable/disable, add skill, Use skill, personal and project skills | `/skills` | `fixture skill`; LLM | 22 |
| F19 | [Plugins and plugin launch](F19-plugins.md) | catalog, install, update, uninstall, enable, launch deep links | `/plugins`, `/launch` | LLM | 25 |
| F20 | [Canvas apps](F20-canvas-apps.md) | install from path or git, enable, update, uninstall, extension pages | `/apps` | none | 24 |
-| F21 | [Automations dashboard and actions](F21-automations-dashboard.md) | cards and list, filters, sort, Run now, enable, export, import, delete, pin | `/automations` | LLM; automation service | 34 |
+| F21 | [Automations dashboard and actions](F21-automations-dashboard.md) | cards and list, filters, sort, Run now, enable, export, import, delete, pin | `/automations` | LLM; automation service | 35 |
| F22 | [Creating automations](F22-automation-creation.md) | templates, setup dialog, custom automations, import | `/automations/templates`, `/automations/new/<id>` | LLM | 29 |
| F23 | [Automation detail, runs and editing](F23-automation-detail.md) | detail page, runs, logs, edit dialog, triggers, debug | `/automations/<id>` | LLM; runs | 39 |
| F24 | [Automation Git Sync](F24-git-sync.md) | configure, sync cycles, encryption, status | `/automations/git-sync` | `fixture git-repo` | 26 |
-| F25 | [Backends, Cloud and sharing](F25-backends-and-cloud.md) | add, edit, remove and switch backends, per-backend consent, Cloud login, shared pages | backend selector | a second stack; Cloud account (blocked) | 29 |
-| F26 | [Launcher modes, Docker, desktop and library](F26-runtime-variants.md) | launcher flags, partial stacks, LAN bind, Docker, Electron, embeddable library | a terminal | Docker/Electron where available | 32 |
+| F25 | [Backends, Cloud and sharing](F25-backends-and-cloud.md) | 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](F26-runtime-variants.md) | launcher flags, partial stacks, LAN bind, Docker, Electron, embeddable library | a terminal | Docker/Electron where available | 33 |
| F27 | [Workspace tools](F27-workspace-tools.md) | terminal, browser, planner, task list, usage, `canvas_ui_control` | drawer tabs | LLM | 30 |
-27 families, 747 sub-features. `control-openhands map ids` lists every ID with its file.
+27 families, 760 sub-features. `control-openhands map ids` lists every ID with its file.
### Neighbouring families
diff --git a/.pr/screenshots/01-language-selector.png b/.pr/screenshots/01-language-selector.png
deleted file mode 100644
index 03e8315a6a..0000000000
Binary files a/.pr/screenshots/01-language-selector.png and /dev/null differ
diff --git a/.pr/screenshots/02-ui-in-indonesian.png b/.pr/screenshots/02-ui-in-indonesian.png
deleted file mode 100644
index d8940a994b..0000000000
Binary files a/.pr/screenshots/02-ui-in-indonesian.png and /dev/null differ