Skip to content

🙌 OpenHands: AI-Driven Development

74.0 KB
Raw Blame

F25 — Backends, Cloud and sharing

One Canvas can drive several agent servers. The backend selector at the bottom of the sidebar lists every registered backend with a live status dot and switches between them; its footer opens Add Backend (OpenHands Cloud login through an OAuth device flow, or a local/remote agent server by host and API key) and Manage Backends (select, edit, remove, and Cloud "Log back in"). 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. When the page is served with the DigitalOcean Managed Agents bridge (the desktop app's preload, or the web server's own experimental bridge, which the launcher's ingress mounts behind the session key only when 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/, 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.

Sub-features

  • F25.selector-dropdown: clicking (or hovering) the selector opens a listbox of backends, each option named <status> <name> with a status dot, and a footer with Add Backend and Manage Backends.
  • F25.add-backend-modal: Add Backend opens "Choose how you want to connect" with a description, a Learn more link to the deployment docs and the tabs OpenHands Cloud (selected) and Agent-server (plus Providers with the bridge, see the Providers row). It takes keyboard focus on open (the close button), Tab and Shift+Tab wrap inside it, and closing returns focus to the backend selector it was opened from. Escape does not close it; the X does. At phone width, opened from the drawer's backend selector, Escape leaves the modal and the drawer open, and the X closes only the modal (the drawer stays open).
  • F25.cloud-advanced-host: on the Cloud tab, Advanced reveals a Host field (placeholder https://app.all-hands.dev) for a self-hosted Cloud.
  • F25.cloud-device-flow: Connect to OpenHands opens a popup and shows Starting authentication..., then Waiting for authorization... with the verification link and Cancel; Cancel returns to the idle button and closes the popup. An unreachable host shows Failed to start device flow: ... with Try again and closes the popup (Try again opens a fresh one); the error text, the Waiting for authorization... status, the Browser opened... line and the verification link stay readable (at least 4.5:1) in every theme, Light+ and Solarized Light included. Known failure (reproduced 2026-10-17, #18546): in Solarized Light the Browser opened. Complete sign-in to continue... line (text-tertiary #586E75 on the modal's #EEE8D5) measures 4.39:1. Approving the code (adds a backend named OpenHands Cloud) needs a Cloud account.
  • F25.agent-server-guidance: the Agent-server tab has a Local / Remote toggle. Local shows a collapsible Before you connect with agent-canvas --backend-only --port 8001 and a local-setup docs link; Remote shows Recommended setup, Connection details and a remote-setup docs link.
  • F25.add-agent-server: Connect stays disabled until Host Name and a valid Host are filled; the API Key field is optional for Connect on Local and required on Remote, but a key-protected host still rejects an empty key. A dead host, an empty key or a wrong key shows Could not connect to <host> with the reason inline (Disconnected (check URL or network) for a dead host, Invalid API key for an empty or wrong key); a reachable host with the right key, entered on the default Local location, adds the backend, makes it active (BM-001) and redirects a /conversations/<id> page to /conversations without an error toast, also on the backend's first activation, without asking the new backend for the old conversation id.
  • F25.switch-backend: choosing another option shows a full-screen Switching to <name> overlay for about a second, then the sidebar and pages show that backend's data; on /conversations/<id> the app moves to /conversations (BM-002).
  • F25.backend-pinned-url: in-app links carry ?backend=<id>; opening such a URL pins the tab to that backend; an unknown id is ignored.
  • F25.per-tab-backend: the active backend is per browser tab: switching it in one tab leaves the other open tabs where they were, a new tab opened from a plain link starts from the last choice made in any tab, and a sidebar conversation row opened in a new tab (Control-click) lands on the backend that owns the conversation because its link carries ?backend=<owner>.
  • F25.manage-backends: Manage backends lists every backend with status dot, name, version (v1.50.1), host, status text and a LOCAL/CLOUD pill, plus Edit and Remove; it takes keyboard focus on open and keeps Tab inside; Escape, a backdrop click, X and Done close it and return focus to the selector. At phone width, opened from the drawer, Escape closes only Manage and the drawer stays open.
  • F25.manage-add: Add Backend in Manage backends opens the same Add form stacked over Manage; its X returns to Manage, Escape leaves both open (at phone width, with Manage opened from the drawer's backend selector, the drawer stays open too), and a successful add keeps Manage open with the new row while the new backend becomes active.
  • F25.manage-select: clicking a healthy row makes that backend active and closes the modal; on a detail page it leaves it for that section's list, like the selector does (BM-002).
  • F25.edit-backend: the pencil opens "Edit backend" pre-filled (key masked) with a Connected · Local v<version> badge; empty name and invalid host show Name is required and Enter a valid URL (e.g. http://localhost:8080) and disable Save; Save re-tests the connection, keeps the modal open with Could not connect to <host> on failure, and persists on success.
  • F25.edit-cancel: Cancel, the X and a backdrop click in Edit backend close only the Edit modal and discard the draft; Manage backends stays open with the stored values.
  • F25.edit-escape: Escape in the Edit modal does nothing: Edit keeps its draft and Manage backends stays open underneath; at phone width, with Manage opened from the drawer's backend selector, the drawer stays open too.
  • F25.health-status: a backend that stops answering turns its dot to the theme's status-error colour (bg-status-error, Disconnected) within one health probe (every 30 s for local and remote agent servers; Cloud backends every 5 min and not on window focus or reconnect, #18128); its Manage row reads Disconnected (check URL or network) with a red detail line and cannot be selected.
  • F25.recovery-gate: reloading while the active backend is down shows only agent-server-onboarding-screen with Manage backends in recovery mode (no X, no Done, Escape ignored, primary Add Backend); choosing a healthy row restores the app.
  • F25.remove-backend: the trash icon asks Remove backend "<name>"? If it is active, the app will switch back to Local.; Cancel keeps it, Confirm removes it and an active removed backend falls back to Local (BM-003).
  • F25.collapsed-entry: with the rail collapsed, the backend icon's popover offers the same Add Backend and Manage Backends items, and both modals open.
  • F25.phone: at 390 px the drawer's selector opens Add and Manage inside the viewport without horizontal overflow, and Escape in a backend modal (Add, Manage, Edit, the Remove confirmation) never closes the drawer underneath. Edit backend fits at 320 and 390 px; on short viewports its form scrolls while the title and close control stay visible, and Cancel/Save remain reachable.
  • F25.device-verify-page: /oauth/device/verify shows a "Device Authorization" code form; with ?user_code= it shows "Device Authorization Request", the code, a Security Notice and Cancel / Authorize Device. On a local stack Authorize and Continue end in the Error card with Try Again.
  • F25.shared-conversation-view: /shared/conversations/<id> is a standalone read-only page (no app shell); on a local backend it reads Conversation not found.
  • F25.share-publicly: on a Cloud backend the conversation menu has a Public Share toggle with copy-link and open-link buttons; on a local backend the item is absent.
  • F25.cloud-org-rows: each Cloud backend appears once per organization (Personal Workspace for the user's own): as <name> – <org> while several backends are registered, and as the org name alone when that Cloud backend is the only one. The menu grows to its longest label, never narrower than the selector and at most min(26rem, 100vw - 2rem). Each row and the selector carry the full label as a title; the closed selector shows the active org's label, ending in an ellipsis when it is cut off and not focused. Choosing a row scopes lists to that org.
  • F25.cloud-log-back-in: a logged-out Cloud row shows Logged out and a Log back in button that reruns the device flow.
  • 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.. A launcher-served web page has it only when the launcher was started with MARS_WEB=1 (the ingress then answers /mars/health); without it (no MARS_WEB, any value other than 1, or a non-loopback bind with no session key at all) there are only the Cloud and Agent-server tabs and no Managed Agents UI anywhere. A non-loopback bind that has a key (F26 --host 0.0.0.0 with LOCAL_BACKEND_API_KEY) and MARS_WEB=1 mounts the bridge behind that key and offers the tab too, although the page itself carries no key (see the sign-in bullet's Known failure).
  • 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)

  • Sidebar, bottom: the backend selector (backend-selector; click or hover) → options, Add Backend (add-backend-menu-item), Manage Backends (manage-backends-menu-item).
  • Collapsed rail: hover the backend icon (collapsed-backend-selector-link) → the same footer items.
  • Phone: hamburger (sidebar-mobile-menu-toggle) → drawer → backend selector.
  • Manage backends → Add Backend (manage-backends-add) opens the same Add form.
  • Direct URLs: any in-app URL with ?backend=<id>; /oauth/device/verify[?user_code=CODE]; /shared/conversations/<id>.
  • Conversation header name → "..." (conversation-name >> ellipsis-button) for Public Share (Cloud only).
  • Reloading with an unreachable active backend opens the recovery gate.
  • Onboarding's backend step and the public-mode API-key screen also add backends; they belong to F01. The ChatGPT subscription card is F10 (F10.subscription) and the provider balance card is F27 (F27.usage-provider-balance).

Driving it with control-openhands

Preconditions:

  • Baseline state (launched, doctored, onboard --skip done) and control-openhands llm preset deepseek on this run.

  • One conversation on this run: control-openhands conversation start --prompt "Reply with exactly: QA_F25_PONG" --wait --timeout 180; note its <id>. The conversation only has to exist: F25 never reads the reply, so a run that ends in error (for example a key without balance, saved with llm preset deepseek --no-validate) is enough.

  • 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 is opt-in and which control-openhands launch cannot turn on (it forwards no MARS_WEB): on the default run control-openhands browser eval "!!window.marsBridge" is false and curl -s <baseUrl>/mars/health returns the HTML index. Start a bridge stack by hand on free ports: Q=$OH_VERIFY_RUN/private/f25-mars; 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 LOCAL_BACKEND_API_KEY=qa-f25-mars-key OH_SECRET_KEY=qa-f25-secret DO_NOT_TRACK=1 MARS_WEB=1 nohup node bin/agent-canvas.mjs --port 18960 > $Q/launcher.log 2>&1 & echo $! > $Q/pid, wait until curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:18960/health is 200, then curl -s http://127.0.0.1:18960/mars/health answers {"ok":true,"authRequired":true}. Drive it with control-openhands browser goto http://127.0.0.1:18960/ --allow-external: answer its telemetry consent (browser uncheck 'testid=telemetry-consent-form >> role=checkbox', browser click 'testid=confirm-telemetry-preferences'), browser click 'testid=onboarding-skip' and browser wait 'testid=root-layout'; browser eval "!!window.marsBridge" is true there. Stop it with kill -TERM $(cat $Q/pid) when the Managed Agents bullets are done. F25.digitalocean-agents and F25.digitalocean-backend-removal stay blocked without a DigitalOcean account.

  • Cloud account: where this machine's proxy injects OpenHands Cloud credentials (curl -s -o /dev/null -w '%{http_code}' https://app.all-hands.dev/api/organizations is 200 without a token), the Cloud backend bullet below can approve the device flow in its popup; otherwise it is blocked. Approving creates an API key named Device Link Access Key (<code>) on the account: delete that key on the Cloud API keys page when done, and leave the account's other keys alone. Additional fixtures are required for: F25.cloud-log-back-in (needs a logged-out Cloud row), org switching in F25.cloud-org-rows (needs a second organization), the archived and error states of 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 .... Keyboard focus: control-openhands browser eval "(()=>{const a=document.activeElement;const d=document.querySelector('[data-testid=add-backend-modal]');return {tid:a.getAttribute('data-testid'),inDialog:!!(d&&d.contains(a))}})()" is {tid: "add-backend-close", inDialog: true} right after opening; after eight control-openhands browser press Tab and three browser press Shift+Tab (reading the same eval after each) inDialog stays true (Tab past Advanced wraps to the close button), and browser press q then control-openhands browser eval "document.querySelector('[data-testid=chat-input]').textContent" is "" (nothing reaches the Home composer behind). browser screenshot --feature F25.add-backend-modal --name focus-trap-open. 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, and control-openhands browser eval "!!document.activeElement.closest('[data-testid=backend-selector]')" is true (focus is back on the selector). 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+). Connection tabs, the guidance toggle and the DigitalOcean provider choice use the theme focus role and preserve host --oh-focus overrides; default focus contrast is at least 3:1 against base, modal, raised and hovered neutral surfaces in all five themes. Solarized Light uses #227FBE. Check the settled outline after its transition, preserving the 2 px width and existing offsets. 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. The failed attempt closes its popup: control-openhands browser tabs lists one page after each failure and after the retry (browser screenshot --feature F25.cloud-device-flow --name error-no-popup). Close the modal with testid=add-backend-close. Known failure (reproduced 2026-10-17, #18527): normal 14 px error text must reach 4.5:1. Light+/Solarized samples improve to approximately 4.90:1/4.65:1, but actual screenshot background pixels within the text line still give 3.768:1 desktop and 3.882:1 phone in Neutral/Neo, and 4.007:1/4.126:1 in DeepSea. Include the radial white pseudo-background when measuring; a flat ancestor-color calculation overstates contrast. The error branch remains a known failure. The separate credential-free verification warning/button/icon matrix was driven in all five themes at desktop and phone; text/icon thresholds passed. Anonymous awaiting/manual-link/cancel was also driven in all ten states without approving a grant; Solarized awaiting instructions still measure approximately 4.435–4.467:1 on actual screenshot background pixels, below 4.5:1. Authentic authorized-success remains blocked without an approved account grant.

  • 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. The status line, the Browser opened... line and the link stay at least 4.5:1 in Light+ and Solarized Light (link 14.85:1 and 12.25:1, Browser opened... 7.62:1 in Light+ on 2026-10-17). Known failure (reproduced 2026-10-17, #18546): the Browser opened... line measures 4.39:1 in Solarized Light. 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. Do not approve the code here (the Cloud backend bullet does, when it can). 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. Known failure (reproduced 2026-10-13, 2026-10-17 and 2026-10-19, #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.

  • Manage list and closing (F25.manage-backends). Run browser click 'testid=backend-selector', control-openhands browser click 'testid=manage-backends-menu-item' and control-openhands browser snapshot 'testid=manage-backends-modal': heading Manage backends, two rows Connected Local v1.50.1 <this run's URL> Connected Local and Connected QA_Second v1.50.1 <second-url> Connected Local, each with Edit and Remove, then Add Backend and Done. browser text 'testid=manage-backends-status-QA_Second' is Connected and browser text 'testid=manage-backends-version-QA_Second' is v1.50.1 (whatever doctor reports). Screenshot with --feature F25.manage-backends --name list. Focus is inside: the Add Backend bullet's focus eval with manage-backends-modal in place of add-backend-modal reads close-manage-backends-modal on open and stays inDialog true over nine Tabs and two Shift+Tabs (with two backends listed, Tab 8 reaches Done and Tab 9 wraps to the close button); after Escape, focus is back on the selector. Close it four ways, reopening between: browser press Escape, control-openhands browser mouse-click 20 500 (backdrop), browser click 'testid=close-manage-backends-modal', browser click 'testid=manage-backends-done'; each time browser count 'testid=manage-backends-modal' is 0.

  • Select from Manage (F25.manage-select). With Local active, control-openhands browser click 'testid=conversation-card' --expect-url '/conversations/[0-9a-f-]+', open Manage Backends, then control-openhands browser click 'testid=manage-backends-row-QA_Second >> role=button >> nth=0' --expect-url '/conversations(\?|$)'. Like the selector, the app leaves the detail page for /conversations (BM-002): browser count 'testid=manage-backends-modal' is 0, the selector reads QA_Second, browser count 'testid=chat-interface' and browser count 'testid=conversation-card' are 0, and browser screenshot --feature F25.manage-select --name after-select shows QA_Second's Home with its empty conversation list.

  • Edit validation and errors (F25.edit-backend). Open Manage Backends, control-openhands browser click 'testid=manage-backends-edit-QA_Second', then browser value 'testid=edit-backend-host' (<second-url>), browser attr 'testid=edit-backend-api-key' type (password) and browser text 'testid=edit-backend-status' (Connected, ·, Local, v1.50.1 on separate lines). Fill edit-backend-name with an empty string and edit-backend-host with not a host, then browser focus 'testid=edit-backend-api-key' and browser snapshot 'testid=edit-backend-form': alerts Name is required and Enter a valid URL (e.g. http://localhost:8080); browser enabled 'testid=edit-backend-submit' is false.

  • Escape in Edit (F25.edit-escape). In the same Edit modal run control-openhands browser fill 'testid=edit-backend-name' QA_Draft and control-openhands browser press Escape: browser count 'testid=edit-backend-modal' and browser count 'testid=manage-backends-modal' both stay 1 and browser value 'testid=edit-backend-name' is still QA_Draft (browser screenshot --feature F25.edit-escape --name after-escape). Leave with browser click 'testid=edit-backend-cancel'; nothing was saved (the Manage row is still QA_Second). At phone width (the Phone bullet's drawer → Manage Backends → manage-backends-edit-Local), the same fill and Escape leave edit-backend-modal, manage-backends-modal and sidebar-mobile-drawer at count 1 with the draft kept (--name phone-after-escape).

  • Edit and save (F25.edit-backend). Manage Backends is still open: click the pencil testid=manage-backends-edit-QA_Second again. Fill edit-backend-host with http://127.0.0.1:9, browser click 'testid=edit-backend-submit', browser wait 'testid=edit-backend-error' --timeout 10000: the text starts Could not connect to http://127.0.0.1:9 and the modal stays. Fill the host back with <second-url> and edit-backend-name with QA_Renamed, click edit-backend-submit, then control-openhands browser wait 'testid=edit-backend-modal' --state detached --timeout 10000; browser count 'testid=manage-backends-row-QA_Renamed' is 1. Click manage-backends-done, browser reload: the selector reads QA_Renamed.

  • Health status (F25.health-status). With QA_Renamed the active backend (as the Edit bullet's reload leaves it; the closed selector shows only the active backend's dot), run control-openhands service stop agent-server --run "$OH_VERIFY_RUN_2", then on the open page control-openhands browser wait 'testid=backend-selector >> role=status[name="Disconnected"]' --timeout 40000. The dot's class contains bg-status-error (computed rgb(255, 104, 78) in the default dark theme, equal to that token's). browser click 'testid=backend-selector' and browser snapshot 'testid=backend-selector' show option "Disconnected QA_Renamed" next to option "Connected Local". In Manage Backends browser text 'testid=manage-backends-status-QA_Renamed' is Disconnected (check URL or network), testid=manage-backends-status-detail-QA_Renamed repeats it with Check that the backend URL is correct ..., and browser enabled 'testid=manage-backends-row-QA_Renamed >> role=button >> nth=0' is false. An error toast with the same text also appears after the next probe (up to about 40 s; read browser toasts --history). Screenshot with --feature F25.health-status --name manage-down.

  • Recovery gate (F25.recovery-gate). Close the modal, control-openhands browser reload, then control-openhands browser wait 'testid=manage-backends-modal' --timeout 20000. browser testids lists agent-server-onboarding-screen and the Manage rows but no sidebar; browser count 'testid=close-manage-backends-modal' and browser count 'testid=manage-backends-done' are 0, and browser press Escape leaves the modal (count 1). control-openhands browser click 'testid=manage-backends-row-Local >> role=button >> nth=0' and browser wait 'testid=agent-server-onboarding-screen' --state detached --timeout 15000 restore the app: selector Local, card count 1. Screenshot the gate with --feature F25.recovery-gate --name gate before choosing.

  • Remove the active backend (F25.remove-backend). Run control-openhands restart --run "$OH_VERIFY_RUN_2", browser click 'testid=backend-selector', browser wait 'testid=backend-selector >> role=option[name="Connected QA_Renamed"]' --timeout 25000 and click that option (selector reads QA_Renamed). Open Manage Backends, control-openhands browser click 'testid=manage-backends-remove-QA_Renamed'; browser text 'testid=confirmation-modal' reads Remove backend "QA_Renamed"? If it is active, the app will switch back to Local. control-openhands browser click 'testid=confirmation-modal >> role=button[name="Cancel"]' keeps the row (count 'testid=manage-backends-row-QA_Renamed' 1). Click the trash again, then control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button': the row count is 0. Click Done and browser reload: the selector reads Local, browser count 'testid=backend-selector >> role=option' (dropdown open) is 1, and the card count is 1.

  • 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. control-openhands browser press Escape leaves both (add-backend-modal and manage-backends-modal counts 1); 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' and with a backdrop click (control-openhands browser mouse-click 20 500): 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. Before closing it, control-openhands browser press Escape leaves browser count 'testid=add-backend-modal' and browser count 'testid=sidebar-mobile-drawer' at 1. Close it with testid=add-backend-close: the drawer stays open and control-openhands browser eval "!!document.activeElement.closest('[data-testid=sidebar-mobile-drawer] [data-testid=backend-selector]')" is true. Open Manage Backends from the drawer selector the same way and check bbox 'testid=manage-backends-modal' the same. Escape inside a stacked modal reaches only that modal: manage-backends-add then Escape keeps Add, Manage and the drawer (--feature F25.manage-add --name phone-escape-stays), and its X returns to Manage; manage-backends-remove-Local opens the Remove confirmation, and Escape closes only it (Manage, the drawer and the Local row stay; --name remove-confirm-escape-local). Escape on Manage itself closes only Manage (drawer count 1); a further Escape then lands on the focused drawer selector (see #18233 in Gotchas), so reopen Manage from the selector before the Edit step. 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). On the default run open Add Backend: the tablist has only tab "OpenHands Cloud ..." and tab "Agent-server ...", and browser count 'testid=add-backend-option-providers' is 0 (browser screenshot --feature F25.providers-tab --name default-no-providers). On the bridge stack (Preconditions) curl -s http://127.0.0.1:18963/mars/health | head -c 15 (the static child behind its ingress) prints <!DOCTYPE html>, not JSON: one bridge per stack. Open Add Backend there: 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). On the bridge stack, 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). Both errors also raise an error toast with the same text. Expected on a page served without a baked key (F26 --host 0.0.0.0, Docker), once the server's key was typed on the API-key screen: the same two answers as above. Known failure (reproduced 2026-10-14, #18434): every token, even the malformed one, ends in session key required (POST /mars/rpc/getAuthState and savePat 401), because the web bridge client sends only the baked page key, never the typed one; it predates #18349 (BASE with MARS_WEB=1 fails the same way). A --frontend-only page connected to another stack's backend fails the same way for a different reason (the typed key belongs to the other stack); #18434 leaves that case to a maintainer decision.

  • 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.

  • Cloud backend (F25.cloud-device-flow, F25.cloud-org-rows, F25.cloud-settings-link, F25.share-publicly, F25.cloud-sandbox-states). Only with a Cloud account (Preconditions); it creates a device grant and one conversation on that account, and shows the account's own conversations in the sidebar (keep those screenshots private). Reopen Add Backend on the Cloud tab, browser click 'testid=add-backend-login-button', then control-openhands browser tab 1 (the verify popup: Device Authorization Request, the code, Authorize Device), control-openhands browser click 'role=button[name="Authorize Device"]' (Success!) and control-openhands browser tab 0. Within about 15 s (token polling answers 400 until approved, then 200) browser count 'testid=add-backend-modal' is 0, the popup is gone and browser snapshot 'testid=backend-selector' reads combobox "OpenHands Cloud – Personal Workspace" (for about a second, until /me answers, the org's raw name shows in place of Personal Workspace); the registry holds {name: "OpenHands Cloud", host: "https://app.all-hands.dev", kind: "cloud"} (browser eval "JSON.parse(localStorage.getItem('openhands-backends')).map(b=>({name:b.name,host:b.host,kind:b.kind}))"). Open the selector: option "Connected OpenHands Cloud – Personal Workspace" (one option per organization) next to Connected Local; Manage Backends shows the row with Personal Workspace and the Cloud pill. browser attr 'testid=backend-selector-settings-link' href is https://app.all-hands.dev/settings?org=<org id> with target _blank; clicking it opens that tab (browser wait-tab 'app.all-hands.dev/settings', then browser close-tab 1, browser tab 0). Start one conversation from Home: fill testid=chat-input with Reply with exactly: QA_F25_CLOUD. Do not run any tools. and browser click 'testid=submit-button' --expect-url '/conversations/': the URL is /conversations/task-<id> while the sandbox starts (toasts Creating conversation…, Sending...), then moves to /conversations/<id>?backend=<cloud id>&org=<org id> and the reply QA_F25_CLOUD appears (about a minute). The user message is confirmed (no Sending...) and sits above the reply: browser eval comparing [data-testid=user-message] and [data-testid=agent-message] with compareDocumentPosition puts the user bubble first, and browser events --kinds websocket-created shows the first connect replaying from after_seq=-1 on a short conversation. (wait-text on the reply word also matches the prompt; wait for testid=agent-message instead.) Within a few seconds after the URL moves off task-<id>, and without a reload, the new conversation appears in the sidebar list (repeat until browser eval "[...document.querySelectorAll('[data-testid=conversation-card]')].some(e=>e.outerHTML.includes(location.pathname.split('/')[2]))" is true). Its conversation-name >> ellipsis-button menu has share-publicly-button (Public Share, off); do not flip it unless the conversation may be public. With only the Cloud backend registered (remove Local in Manage Backends; restore it afterwards with browser reset and onboard --skip), the option reads Connected Personal Workspace and the combobox Personal Workspace. Delete it with delete-button and 'role=dialog >> testid=confirm-button', then remove the Cloud backend in Manage Backends (manage-backends-remove-OpenHands Cloud, confirm): after browser reload the selector reads Local.

  • 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. In Light+ and Solarized Light (arrange localStorage.setItem('openhands-color-theme', ...) as in the Add Backend bullet), ?user_code=QA-NOT-REAL keeps the Security Notice heading and instruction at least 4.5:1 on their amber tint, at desktop and phone width (2026-10-17: 5.03:1 and 13.58:1 in Light+, 5.53:1 and 11.84:1 in Solarized Light; --name notice-light-plus-phone). Known issue #18527: current target warning text, Authorize normal/hover and error icons pass their respective contrast thresholds in all five themes at desktop/phone (minimum warning 5.03:1, body 11.80:1, button 10.78:1 and icon 4.62:1). This is a target-only observation, not paired attribution of the warning fix or retirement of #18527; device-flow error and Solarized awaiting text still reproduce failures in the separate entry above.

  • 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, and control-openhands browser toasts --history stays [] (the page shows its own not-found state, no toast). 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.

  • Cleanup. browser press Escape, then control-openhands stop --run "$OH_VERIFY_RUN_2" and unset OH_VERIFY_RUN_2. The conversation stays with this run's state.

  • Errors. control-openhands browser errors --app-only after the family shows no page errors. Expected app-origin entries: POST /oauth/device/verify-authenticated 404 (twice), the shared-view 404s, the warning Scripts may close only the windows that were opened by them. from the device-verify Cancel, and a burst of CORS console.errors for <second-url> while the second agent server is stopped or restarting (see Gotchas).

  • Same-origin credential readability (F25.manage-backends, F25.add-agent-server). In an authenticated private run, use read-only browser eval to return only the count of registered entries and the count whose apiKey is a nonempty string in JSON.parse(localStorage.getItem('openhands-backends') || '[]'). Expected: backend credentials are not readable by arbitrary same-origin script. Known failure, reproduced 2026-10-12: registered entries have readable plaintext keys (#16492). Retain counts/booleans only, never key values or whole storage JSON.

  • Manually registered same-origin key rotation (F25.add-agent-server, F25.recovery-gate). Through Add Backend → Agent-server, add an owned entry named QA_Rotation_Legacy with the run's exact origin and fill its API Key using --value-file <run>/private/session-key; keep it active. Run restart --rotate-key, doctor, and browser reload. Compare only each saved entry's apiKey === window.__AGENT_CANVAS_SESSION_API_KEY__ boolean. Expected: same-origin entries accept the newly injected session key and the active backend recovers. Known failure, reproduced 2026-10-12: default-local matches the injected key, the manually registered entry does not, and the UI shows Disconnected/Unauthorized (#17371). This version has visible status feedback, so do not repeat the older claim of a completely silent loop. Choose Connected Local to recover, then remove the owned duplicate.

  • Non-loopback default backend name (F25.selector-dropdown). Serve the unchanged frontend on an owned non-loopback LAN address with --auth-required, no session-key injection and real protected backend routes. Open that origin in a new browser tab with --allow-external; its Add a backend step defaults Host Name to Local. Authenticate only with the private run key file, continue once and skip the remaining setup, then inspect backend-selector. Expected: the default name identifies the backend's host on a remote origin. Known failure, reproduced 2026-10-12: the selector reads Connected Local on the non-loopback origin (#16297). This is a LAN-origin check, not a VM deployment claim. Stop only the owned fixture frontend and return to the original tab.

Gotchas

  • Export the second run as OH_VERIFY_RUN_2 and pass it with --run; never export it as OH_VERIFY_RUN, or the browser commands look for a browser that run does not have. OH_VERIFY_RUN= control-openhands launch --new ... keeps the launch from reusing this run.

  • The second backend asks its own telemetry consent the first time it becomes active, over whatever page you are on; onboard --skip answers it. Consent is stored per backend, so a later restart of the second run does not ask again.

  • browser fill <sel> --value-file FILE takes no positional value; it keeps the key out of the shell history and the evidence. Edit forms show the stored key masked, but browser snapshot of the Edit form prints it in clear: do not save that snapshot as evidence with a real key.

  • Manage-row test ids use the backend name (manage-backends-row-QA_Second), so they change after a rename and are not unique when two backends share a name; the Cloud Log back in id uses the backend id instead (manage-backends-login-<id>-login-button).

  • Selector options are named <status> <name> (Connected Local, Disconnected QA_Renamed): select them with role=option[name="Connected <name>"].

  • After a navigating option click, --expect-url must allow ?backend=...: end regexes with (\?|$).

  • browser wait-tab <regex> matches any open page, including the current one, unless --new leaves out the tab the daemon is on: for a second tab at the same URL (/conversations from New Chat) use wait-tab '/conversations$' --new, or read browser tabs and switch with browser tab <i>. browser tab new /conversations opens a plain second tab (no opener, empty sessionStorage), the state a user reaches by opening the app again. Close extra tabs highest index first, or the indexes shift under you.

  • browser tab new switches the daemon to the tab it opened, so a wait-tab <regex> --new run right after it reports the tab you came from (index 0 with two tabs); browser tab 0 first when you want the new tab's index from wait-tab. A tab new and a click --modifiers Control on New Chat reach the same state (selector from the localStorage fallback, sessionStorage item null).

  • A tab opened with click --modifiers Control starts with an empty sessionStorage, so it boots from the localStorage fallback (the backend last chosen in any tab) unless its URL carries ?backend=. Opening a ?backend= link writes that backend to localStorage too: a per-tab check that relies on "last choice" must run before opening pinned links.

  • The Add Backend Agent-server form has no inline "required" messages; it only disables Connect. The messages exist in the Edit form.

  • Footer clicks from the collapsed popover or the phone drawer open the modals a moment later: browser wait for them instead of count.

  • 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; approve a code only in the Cloud backend bullet, with an account you may use.

  • 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, 2026-10-12, 2026-10-13, 2026-10-14 and 2026-10-17, #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:

    control-openhands browser viewport desktop
    control-openhands browser goto /
    control-openhands browser hover 'testid=root-layout'
    control-openhands browser reload
    control-openhands browser wait 'testid=backend-selector >> role=status[name="Connected"]' --timeout 15000
    control-openhands assert --field value --equals Local -- browser value 'testid=backend-selector >> role=combobox'
    control-openhands browser click 'testid=backend-selector'
    control-openhands browser press Escape
    control-openhands browser press Escape
    control-openhands browser screenshot 'testid=backend-selector' --feature F25.selector-dropdown --name escape-closed
    control-openhands assert --field value --equals Local --bug-shows '' -- browser value 'testid=backend-selector >> role=combobox'  # bug
    
  • Local and remote backends are probed every 30 s (settings + server_info), Cloud backends every 5 min (#18128), so allow up to 40 s for a local dot to change. browser network --clear, wait about 70 s, then browser network --filter server_info shows two probes per local origin 30 s apart. While the active backend is down, any reload lands on the recovery gate: drive the disconnected rows on the page that was already loaded.

  • /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).

  • The add bullet's network --external --filter 'ids=' check guards an earlier race: #18390 tracks the same first-activation symptom; 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.

  • Add Backend and Manage Backends take and keep keyboard focus, and Edit backend takes it on open (ModalBackdrop; at phone width open the selector with 'testid=sidebar-mobile-drawer >> testid=backend-selector', since the bare test id matches two selectors). Focus returns to the selector input when they close (at phone width the drawer's selector, with the drawer still open), so an Escape pressed after closing lands on the selector and can trigger #18233 below.

  • 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: start it by hand as in F01's Locked Cloud first run bullet, which also signs in (a Cloud account). On that page browser click 'testid=backend-selector': browser text 'testid=manage-backends-menu-item' is Reconnect to Cloud and browser count 'testid=add-backend-menu-item' is 0; the command menu lists only Settings and Application settings under Settings.

  • 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.

  • Known issue #18029 (F25.locked-cloud): A returning user in a locked Cloud deployment can reach the no-backend placeholder and fail to start conversations despite a healthy configured backend. The report proposes a stale document or alternate origin but does not capture which occurred. Recheck against the affected locked deployment with a Cloud session, its exact origin, cache response headers and injected host state; the normal local launcher does not reproduce this deployment condition.

  • Known issue #17390 (F25.cloud-sandbox-states): Every sent Cloud message can fail with token_not_found_in_db from the model proxy. Recheck with the affected Cloud account/session and a minimal no-tools prompt; capture the error type with provider token text and hashes redacted. The report supplies no deployment version or deterministic token-provisioning sequence, and this run has no Cloud account.

  • Known issue #17163 (F25.cloud-sandbox-states): A Free Cloud account can lose access to previously usable models with HTTP 403 and a team-restriction message despite no team being created. Recheck with the affected account and its model entitlement/org history; local credentials cannot prove Cloud eligibility and this run has no such account.

  • Known issue #16874 (F25.cloud-sandbox-states): A failed resume of a paused Cloud sandbox was reported to consume a one-shot guard and leave chat disconnected until remount. Current source uses a retrying resume hook, so recheck the original failure and a second pause in one route mount before concluding resolution. Blocked without a real paused Cloud sandbox and a controlled one-request backend/network failure; source changes alone are not a live pass.

  • Known issue #15676 (F25.cloud-sandbox-states): Refreshing an approximately 24-hour-old Cloud conversation on Vercel can fail to resume/reconnect. Recheck an authenticated affected Cloud deployment with an aged sandbox/session and exact console/network error; the report omits its commit and failure text, and no aged Cloud fixture is available here.

  • Known issue #15822 (F25.switch-backend F25.health-status F25.cloud-org-rows): Cloud-proxy traffic was reported to continue after switching from Cloud to Local. Current source probes registered inactive Cloud backends on a five-minute cadence; recheck the reported repeated OPTIONS behavior with a real registered Cloud account/org and capture only credential-redacted request metadata after switching. This run has no authenticated Cloud backend.

  • Known issue OpenHands/automation#565 (F25.cloud-org-rows, F25.cloud-org-suspended): An org-scoped Cloud automation request with an unauthorized X-Org-Id can turn the identity service's 403 into a misleading 502/outage page. Recheck with an authenticated Cloud org-bound key and a disposable unauthorized organization id, comparing automation list and the identity response while preserving credential redaction. Local mode bypasses this identity service and cannot reproduce it.

  • Known issue OpenHands/software-agent-sdk#5789 (F25.add-agent-server, F25.health-status): a deferred-init Agent Server can report ready after accepting a GUI origin through /api/init, while browser preflights from that origin still fail and Canvas cannot connect. Recheck an owned warm-pool server initialized with the actual non-localhost Canvas origin and compare admission with an origin supplied at server boot. The default loopback-origin stack is already allowed and cannot exercise this branch.

  • Known issue #18517 (F25.digitalocean-agents): the signed-in DigitalOcean controls (New Agent, refresh, expand and new-session icons, agent-open and session-open rows) draw a fixed blue focus outline instead of the theme focus color (src/components/features/backends/managed-agents/digitalocean-connect-panel.tsx). Live prerequisite: an authorised DigitalOcean team with a Managed Agents agent and at least one session.

  • Known issue OpenHands/software-agent-sdk#6053 (F25.cloud-sandbox-states): after an actual Cloud sandbox pause, sockets can remain attached to the discarded conversation. Live verification requires an authorized Cloud sandbox with genuine pause/resume and its original conversation; closing a Local browser socket is not the same scenario.