Skip to content

🙌 OpenHands: AI-Driven Development

41.4 KB
Raw Blame

F16 — Application settings

Settings → Application holds the user's app-wide preferences: UI language, colour theme, anonymous usage data, sound notifications, the sidebar Getting Started checklist, Home's Recommended automations rail, which LLM profile writes conversation titles, an optional voice-input transcription endpoint, and the git identity used for commits. The page mixes two save models: language, analytics, sound, title model and git identity wait for Save Changes and are stored on the backend; theme, checklist, recommended automations and voice input apply instantly and live in this browser only.

Source: src/routes/app-settings.tsx, src/components/features/settings/app-settings/, src/components/features/settings/settings-switch.tsx, src/components/features/home/home-recommended-automations-storage.ts, src/themes/color-theme/, src/utils/transcription-endpoint-storage.ts, src/api/settings-service/settings-service.api.ts, src/services/telemetry.ts.

Sub-features

  • F16.open: the page opens from the settings navigation, the command menu and the direct URL; every section renders and Save Changes is disabled while nothing has changed.
  • F16.language: choosing a language and saving switches the whole UI at once and persists after a reload; <html lang> and <html dir> follow the chosen language (rtl for Arabic).
  • F16.color-theme: choosing a colour theme applies it immediately without Save, persists after a reload and on other pages, and is never sent to the backend. In the default OpenHands-Neutral theme primary buttons (such as an enabled Save Changes) are white with dark text.
  • F16.analytics: the "Send anonymous usage data" switch saves with the form and sets browser telemetry consent to granted/denied.
  • F16.analytics-cloud: on a Cloud backend the analytics switch is forced on and disabled.
  • F16.sound: the "Sound Notifications" switch saves with the form; with it on, a sound plays when the agent finishes or needs input.
  • F16.checklist: the "Show Getting Started checklist" switch hides or shows the sidebar checklist immediately, without Save, and survives a reload. On a canvas locked to a Cloud host neither the checklist nor this switch is shown.
  • F16.recommended-automations: the "Show Recommended automations" switch shows or hides Home's Recommended automations rail, without Save; it shares one browser-only preference with the rail's X (F03.recommended-rail-dismiss), so it reads off after the X was used and turning it on brings the rail back on the next Home render.
  • F16.title-model: the Title generation model dropdown offers "Automatic (recommended)" plus one name · model option per LLM profile; the choice persists and new conversations still get an automatic title.
  • F16.title-model-fallback: if the chosen profile is deleted (from LLM settings, or outside the UI), the dropdown shows Automatic and the form stays clean.
  • F16.manage-profiles-link: "Manage LLM profiles" goes to /settings/llm.
  • 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 form stays mounted with a disabled fieldset and a "Saving..." button; success toasts "Settings saved", failure toasts an error and keeps the user's edits and Save enabled for a retry.
  • F16.keyboard: every control, including the four 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; an unsaved edit is dropped on switch.
  • F16.browser-scope: backend-saved preferences (language and the rest of the Save group) follow the user to a fresh browser profile, while theme, checklist visibility and the Recommended automations rail return to their defaults there.

How to get to it (user POV)

  • Sidebar settings gear (backend-selector-settings-link), then Application in the settings navigation (sidebar-settings-/settings/app). The gear lands on /settings/agents, not on this page.
  • Direct URL /settings/app (also the default settings page for locked-to-Cloud deployments).
  • Command menu (Control+k or Meta+k, or command-menu-trigger in the sidebar): search "Application", choose Application settings ("Change app language, theme, and preferences").
  • Manage LLM profiles link under Conversation titles leaves this page for /settings/llm (F16.manage-profiles-link); the LLM settings row menu is how a user deletes a profile (owned by the LLM profiles family).

Driving it with control-openhands

Preconditions:

  • Baseline state (launched, doctored, onboard --skip done; it stores analytics off, so the analytics switch starts unchecked).

  • F16.title-model, F16.title-model-fallback and the agent half of F16.git-identity need LLM profiles: control-openhands llm preset deepseek --api-key-file <key file> (or --api-key-env DEEPSEEK_API_KEY), which saves deepseek-flash (active) and deepseek-pro.

  • Read the starting values once: control-openhands api GET /api/settings; backend-saved fields are under body.misc_settings.app_preferences (language, user_consents_to_analytics, enable_sound_notifications, title_llm_profile, git_user_name, git_user_email). Keys absent there mean defaults.

  • The four switches are visually hidden native checkboxes inside a <label>: click the label text scoped to the form or focus them with Tab and toggle with Space, and read state with control-openhands browser eval "document.querySelector('[data-testid=enable-analytics-switch]').checked" (same for enable-sound-notifications-switch, show-getting-started-checklist-switch, show-recommended-automations-switch).

  • Every bullet starts on /settings/app at the desktop viewport unless it says otherwise (control-openhands browser goto /settings/app, then control-openhands browser wait 'testid=submit-button').

  • F16.analytics-cloud is blocked without an OpenHands Cloud backend and account. The locked-to-Cloud half of F16.checklist is blocked: control-openhands launch cannot start a locked-to-Cloud deployment (see the index's Not mapped).

  • Open from navigation (F16.open). From / run control-openhands browser click 'testid=backend-selector-settings-link', control-openhands browser click 'testid=sidebar-settings-/settings/app', then control-openhands browser url, control-openhands browser snapshot 'testid=app-settings-screen' and control-openhands browser screenshot --feature F16.open --name desktop. The URL ends in /settings/app; the snapshot shows comboboxes "Language" (English), "Color Theme" (OpenHands-Neutral) and "Title generation model" (Automatic (recommended)), headings "Conversation titles", "Voice input" and "Git Settings", and button "Save Changes" [disabled].

  • Command-menu and URL entries (F16.open). Run control-openhands browser goto / (the previous bullet ends on /settings/app, where the URL check would pass at once), control-openhands browser press Control+k, control-openhands browser type 'testid=command-menu >> role=combobox' Application, control-openhands browser snapshot 'testid=command-menu' (option "Application settings Change app language, theme, and preferences. Go" is [selected]), control-openhands browser press Enter, then control-openhands browser url; it ends in /settings/app. For the URL entry run control-openhands browser goto /settings/app, control-openhands browser enabled 'testid=submit-button' (false) and control-openhands browser attr 'testid=sidebar-settings-/settings/app' aria-current (page).

  • Language (F16.language). Run control-openhands browser click 'testid=language-input' (16 options), control-openhands browser click 'role=option[name="Français"]', control-openhands browser enabled 'testid=submit-button' (true), control-openhands browser click 'testid=submit-button', then control-openhands browser text 'testid=submit-button'. It reads Enregistrer les modifications without a reload. Run control-openhands browser reload, control-openhands browser value 'testid=language-input' (Français), control-openhands browser screenshot --feature F16.language --name french (the screenshot, not a scoped snapshot, shows the sidebar's "Nouvelle discussion" and the headings "Titres des conversations", "Saisie vocale") and control-openhands api GET /api/settings (language is fr). Then check the document language with control-openhands browser eval "document.documentElement.lang + ' ' + document.documentElement.dir" (fr ltr) and the translated sidebar trigger with control-openhands browser attr 'testid=command-menu-trigger' aria-label (Rechercher des commandes). Choose role=option[name="Arabic"] the same way (click the input, the option, Save, reload): the eval reads ar rtl, and control-openhands browser bbox 'aside[data-collapsed]' has x 1140, so the 300 px sidebar now sits at the right edge of the 1440 px viewport. control-openhands browser screenshot --feature F16.language --name arabic shows the whole layout flipped right to left: the sidebar on the right, the settings navigation to its left, and the form on the left with its Arabic labels and values aligned right. Restore: 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 text 'testid=submit-button' reads Save Changes and the eval reads en ltr. In Arabic each settings switch keeps its thumb inside the track.

  • Colour theme (F16.color-theme). Run control-openhands browser click 'testid=color-theme-input', control-openhands browser snapshot 'role=listbox' (OpenHands-DeepSea, OpenHands-Neutral [selected], OpenHands-Neo, Light+, Solarized Light), control-openhands browser click 'role=option[name="Light+"]', then control-openhands browser eval "document.documentElement.style.colorScheme + ' ' + localStorage.getItem('openhands-color-theme')" (light light-plus) and control-openhands browser enabled 'testid=submit-button' (false: no Save needed). control-openhands browser screenshot --feature F16.color-theme --name light-plus shows a white page. Second views: control-openhands browser reload then control-openhands browser value 'testid=color-theme-input' (Light+); control-openhands browser goto / then control-openhands browser eval "getComputedStyle(document.body).backgroundColor + ' ' + document.documentElement.style.colorScheme" (rgb(255, 255, 255) light); control-openhands api GET /api/settings contains no theme key. Solarized Light the same way reads light solarized-light with body background rgb(253, 246, 227); both light themes define the Markdown alert inks (browser eval "getComputedStyle(document.body).getPropertyValue('--oh-markdown-alert-note')" is #005A99 in Light+, #005A88 in Solarized Light). Restore on /settings/app (control-openhands browser goto /settings/app; the second view left /) by choosing role=option[name="OpenHands-Neutral"] the same way (dark openhands-neutral). Default primary: in OpenHands-Neutral click the Sound Notifications label (Save enables), then control-openhands browser eval "(()=>{const s=getComputedStyle(document.querySelector('[data-testid=submit-button]'));return s.backgroundColor+' / '+s.color})()" is rgb(255, 255, 255) / rgb(24, 24, 24); browser scroll 'testid=submit-button' and browser screenshot --feature F16.color-theme --name default-primary show a white Save Changes. Click the label again (Save disabled).

  • Analytics consent (F16.analytics). Run control-openhands browser click 'testid=app-settings-screen >> text=Send anonymous usage data', read the switch with the eval from Preconditions (true), control-openhands browser click 'testid=submit-button', control-openhands browser wait-text 'Settings saved', control-openhands browser reload, read the switch again (true), control-openhands api GET /api/settings (user_consents_to_analytics: true) and control-openhands browser eval "localStorage.getItem('openhands-telemetry-consent')" (granted). Restore by clicking the label again and saving; consent reads denied and the API false.

  • Cloud forces analytics (F16.analytics-cloud). Blocked: needs a Cloud backend selected in the backend selector. Expected: control-openhands browser enabled 'testid=enable-analytics-switch' is false and the switch reads checked.

  • Consent reversal with an in-flight Automation write (F16.analytics). With a non-DNT build using a dummy PostHog key and loopback-only VITE_POSTHOG_HOST (no external analytics delivery), save opt-in and confirm its consent POST returned 200. Run service pause automation, save opt-out then opt-in through the same switch, and service resume automation before the five-second request timeout. Record the UI transitions and read browser network --filter 'telemetry/consent' --bodies; the final granted value must be posted and acknowledged. Resume before stop. The default hard-DNT build cannot exercise this reversal.

  • Sound notifications (F16.sound). Run control-openhands browser click 'testid=app-settings-screen >> text=Sound Notifications', control-openhands browser click 'testid=submit-button', control-openhands browser wait-text 'Settings saved', control-openhands browser reload, read enable-sound-notifications-switch (true) and control-openhands api GET /api/settings (enable_sound_notifications: true). Restore by toggling and saving again (false). Audible half: with the switch on and saved, control-openhands conversation start --prompt "Reply with only the word ok. Do not run any tools." --wait --timeout 180, then control-openhands browser media: plays lists one /assets/notification-<hash>.mp3 at the moment the conversation finished. With the switch off, the same check after a conversation reads plays: [] (the F16.git-identity conversation below doubles as that negative check). Turn the switch off and save afterwards (control-openhands browser goto /settings/app first: conversation start left the browser on the conversation).

  • Getting Started checklist (F16.checklist). Run control-openhands browser count 'testid=sidebar-onboarding-checklist' (1), control-openhands browser click 'testid=app-settings-screen >> text=Show Getting Started checklist', then the same count (0, immediately) and control-openhands browser enabled 'testid=submit-button' (false). control-openhands browser screenshot --feature F16.checklist --name hidden shows the sidebar without the "Getting started" card. control-openhands browser reload keeps the count at 0 and the switch unchecked. Click the label again to restore; the count returns to 1.

  • Recommended automations (F16.recommended-automations). Run control-openhands browser eval "document.querySelector('[data-testid=show-recommended-automations-switch]').checked" (true by default), control-openhands browser click 'testid=show-recommended-automations-switch >> xpath=ancestor::label', then the same eval (false), control-openhands browser enabled 'testid=submit-button' (false: no Save) and control-openhands browser eval "localStorage.getItem('openhands.home_recommended_automations_dismissed')" (true); browser reload keeps it false, and control-openhands api GET /api/settings holds no such key. control-openhands browser click 'testid=sidebar-conversations-link' --expect-url '/conversations': browser count 'testid=recommended-automations-rail' is 0. Back on /settings/app, click the label again (true, storage false) and return to /conversations: browser wait 'testid=recommended-automations-rail' succeeds. After the rail's X was used on Home (F03.recommended-rail-dismiss), this switch reads false without a reload. At browser viewport phone the label is insideViewport with pageHorizontalOverflow false (browser screenshot --feature F16.recommended-automations --name phone).

  • Title generation model (F16.title-model). Run control-openhands browser click 'testid=title-llm-profile-input' and control-openhands browser snapshot 'role=listbox': options Automatic (recommended), deepseek-flash · deepseek/deepseek-flash, deepseek-pro · deepseek/deepseek-v4-pro. Run control-openhands browser click 'role=option >> has-text=deepseek-pro', control-openhands browser click 'testid=submit-button', control-openhands browser wait-text 'Settings saved', control-openhands browser reload, control-openhands browser value 'testid=title-llm-profile-input' (deepseek-pro · deepseek/deepseek-v4-pro) and control-openhands api GET /api/settings (title_llm_profile: "deepseek-pro"). Then control-openhands conversation start --prompt "Reply with only the word ok. Do not run any tools." --wait --timeout 180 and, a few seconds later, control-openhands conversation status <id> with the id it printed: title is a generated title: an emoji and a short phrase whose wording varies (for example 🔧 Acknowledge with ok only). The start output's own title may already be set; when it is still null, the title is written a few seconds after the run finishes. Return with control-openhands browser goto /settings/app, choose role=option[name="Automatic (recommended)"], save; title_llm_profile is then absent from app_preferences.

  • Manage LLM profiles link (F16.manage-profiles-link). Run control-openhands browser click 'role=link[name="Manage LLM profiles"]' then control-openhands browser url; it ends in /settings/llm and control-openhands browser count 'testid=profile-row' lists the profiles.

  • Deleted profile falls back (F16.title-model-fallback). Arrange a throwaway profile: control-openhands llm set --profile qa-title --model deepseek/deepseek-flash --api-key-file <key file> --no-activate --no-validate. On /settings/app select it (control-openhands browser click 'testid=title-llm-profile-input', control-openhands browser click 'role=option >> has-text=qa-title', save). Delete it through the UI: control-openhands browser click 'role=link[name="Manage LLM profiles"]', control-openhands browser click 'testid=profile-row >> has-text=qa-title >> testid=profile-menu-trigger', control-openhands browser click 'testid=profile-actions-menu >> testid=profile-delete', control-openhands browser click 'testid=delete-profile-confirm', then control-openhands browser click 'testid=sidebar-settings-/settings/app'. control-openhands browser value 'testid=title-llm-profile-input' is Automatic (recommended), Save is disabled, and title_llm_profile is absent from the API's app_preferences. For a preference that goes stale outside the UI, arrange control-openhands api PATCH /api/settings --data '{"misc_settings_diff":{"app_preferences":{"title_llm_profile":"qa-missing"}}}' --write, then control-openhands browser reload: the dropdown still shows Automatic (recommended) and Save stays disabled, while the API keeps qa-missing until the next Save of this form. Any Save writes the form's current preferences, which no longer hold the stale key, so saving an unrelated change removes it: toggle Sound Notifications, save, toggle back, save.

  • 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 (reproduced again 2026-10-17, #17899): the observation is 0 Author identity unknown ...: the identity is stored only in misc_settings.app_preferences and never reaches the new agent runtime. UI/API persistence passes separately; the test did not configure git itself or create a successful commit.

  • 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). With the backend healthy, successful saves toast Settings saved in English (see the translated-toast gotcha). For a failed save, stop only this run's Agent Server after the page loads, edit Sound Notifications and Git Username, then Save. The error toast is An error occurred; both edits remain and Save stays enabled. Restart and doctor without navigating away, then retry: the same edits persist in misc_settings.app_preferences and after reload. To inspect the pending state without racing a fast response, pause this run's Agent Server immediately before the retry, inspect the mounted fieldset and Saving..., then resume promptly. Resume before stopping the run. A pending Save disables the native fields and never substitutes app-settings-skeleton. The recording may pause only while the owned stack restarts.

    control-openhands restart
    control-openhands doctor
    control-openhands browser viewport desktop
    control-openhands browser goto /settings/app
    control-openhands browser wait 'testid=submit-button'
    control-openhands assert --field value --equals false -- browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"
    control-openhands service stop agent-server
    control-openhands browser record start --feature F16.save-states --name failed-save-desktop
    control-openhands browser click 'testid=app-settings-screen >> text=Sound Notifications'
    control-openhands browser click 'testid=submit-button'
    control-openhands browser wait-text 'An error occurred'
    control-openhands browser screenshot --feature F16.save-states --name failed-save-desktop
    control-openhands browser record stop --gif
    control-openhands restart
    control-openhands assert --field value --equals true -- browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"
    
    control-openhands restart
    control-openhands doctor
    control-openhands browser viewport phone
    control-openhands browser goto /settings/app
    control-openhands browser wait 'testid=submit-button'
    control-openhands assert --field value --equals false -- browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"
    control-openhands service stop agent-server
    control-openhands browser record start --feature F16.save-states --name failed-save-phone
    control-openhands browser click 'testid=app-settings-screen >> text=Sound Notifications'
    control-openhands browser click 'testid=submit-button'
    control-openhands browser wait-text 'An error occurred'
    control-openhands browser screenshot --feature F16.save-states --name failed-save-phone
    control-openhands browser record stop --gif
    control-openhands restart
    control-openhands assert --field value --equals true -- browser eval "document.querySelector('[data-testid=enable-sound-notifications-switch]').checked"
    
  • 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 four switches before title-llm-profile-input. The first Tab lands on enable-analytics-switch, followed by enable-sound-notifications-switch, show-getting-started-checklist-switch and show-recommended-automations-switch; Space toggles the focused checkbox. control-openhands browser snapshot 'testid=app-settings-screen' --feature F16.keyboard --name aria exposes each checkbox label and checked state. The label draws a visible focus outline.

    control-openhands browser viewport desktop
    control-openhands browser goto /settings/app
    control-openhands browser wait 'testid=submit-button'
    control-openhands browser record start --feature F16.keyboard --name keyboard-desktop
    control-openhands browser focus 'testid=color-theme-input'
    control-openhands browser press Tab
    control-openhands browser press Escape
    control-openhands browser screenshot --feature F16.keyboard --name keyboard-desktop
    control-openhands browser record stop --gif
    control-openhands assert --field value --equals enable-analytics-switch -- browser eval "document.activeElement.getAttribute('data-testid')"
    
    control-openhands browser viewport phone
    control-openhands browser goto /settings/app
    control-openhands browser wait 'testid=submit-button'
    control-openhands browser record start --feature F16.keyboard --name keyboard-phone
    control-openhands browser focus 'testid=color-theme-input'
    control-openhands browser press Tab
    control-openhands browser press Escape
    control-openhands browser screenshot --feature F16.keyboard --name keyboard-phone
    control-openhands browser record stop --gif
    control-openhands assert --field value --equals enable-analytics-switch -- browser eval "document.activeElement.getAttribute('data-testid')"
    
  • 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 (wait until control-openhands browser text 'testid=submit-button' reads Änderungen speichern), choose Solarized Light in testid=color-theme-input, hide the checklist with control-openhands browser click 'testid=show-getting-started-checklist-switch >> xpath=ancestor::label' (the label text is German now) and turn off show-recommended-automations-switch the same way. 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 control-openhands browser count 'testid=sidebar-onboarding-checklist' is 1 and browser eval "localStorage.getItem('openhands.home_recommended_automations_dismissed')" is null with the Home rail shown (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: the value is openhands beside synced from Local backend, and it keeps following the active backend on further switches. The form remounts per backend, so an unsaved edit is dropped: on Local run control-openhands browser fill 'testid=git-user-name-input' 'QA Local Edit' (browser enabled 'testid=submit-button' is true), switch to QA_Second (QA Second Git, Save false) and back (openhands, Save false); control-openhands api GET /api/settings --pick misc_settings.app_preferences.git_user_name is unchanged. At browser viewport phone the selector is in the drawer (testid=sidebar-mobile-menu-toggle, then 'testid=sidebar-mobile-drawer >> testid=backend-selector' and role=option[name="Connected QA_Second"]; close the drawer with browser mouse-click 370 400) and the field follows the same way. 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.

  • Hard Do Not Track (F16.analytics). With the harness build's VITE_DO_NOT_TRACK=1, open /settings/app, read browser network --external --filter 'posthog|z.openhands.dev' and browser storage. Grant analytics through the real switch and Save, reload, inspect those again, then revoke and Save to restore. Expected: zero PostHog requests and no PostHog storage key, including after opt-in. This checks the build flag; browser-only DNT and builds without it have separate paths.

Regression check (F16.language, rtl-switch-containment):

control-openhands browser viewport desktop
control-openhands api PATCH /api/settings --write --data '{"misc_settings_diff":{"app_preferences":{"language":"ar","user_consents_to_analytics":false}}}'
control-openhands browser goto /settings/app
control-openhands browser wait 'testid=enable-analytics-switch'
control-openhands browser click 'testid=enable-analytics-switch >> xpath=ancestor::label'
control-openhands browser eval 'new Promise(r=>setTimeout(r,350))'
control-openhands browser screenshot --feature F16.language --name rtl-analytics-checked
control-openhands assert --field value --equals true -- browser eval "(()=>{const i=document.querySelector('[data-testid=enable-analytics-switch]');const t=i.closest('label').querySelector('span[aria-hidden=true]');const a=t.getBoundingClientRect(),b=t.firstElementChild.getBoundingClientRect();return document.documentElement.dir==='rtl'&&i.checked&&b.left>=a.left&&b.right<=a.right})()"

Regression check (F16.language, rtl-unchecked-and-checklist):

control-openhands browser viewport desktop
control-openhands api PATCH /api/settings --write --data '{"misc_settings_diff":{"app_preferences":{"language":"ar","user_consents_to_analytics":false}}}'
control-openhands browser goto /settings/app
control-openhands browser wait 'testid=enable-analytics-switch'
QA_CHECKLIST=$(control-openhands browser eval "document.querySelector('[data-testid=show-getting-started-checklist-switch]').checked" | jq -r .value)
if [ "$QA_CHECKLIST" = false ]; then
  control-openhands browser click 'testid=show-getting-started-checklist-switch >> xpath=ancestor::label'
fi
control-openhands browser eval 'new Promise(r=>setTimeout(r,350))'
control-openhands assert --field value --equals true -- browser eval "document.documentElement.dir==='rtl'&&!document.querySelector('[data-testid=enable-analytics-switch]').checked&&document.querySelector('[data-testid=show-getting-started-checklist-switch]').checked"
control-openhands browser screenshot --feature F16.language --name rtl-unchecked-and-checklist
control-openhands assert --field value --equals true -- browser eval "['enable-analytics-switch','show-getting-started-checklist-switch'].every(id=>{const i=document.querySelector('[data-testid='+id+']');const t=i.closest('label').querySelector('span[aria-hidden=true]');const a=t.getBoundingClientRect(),b=t.firstElementChild.getBoundingClientRect();return b.left>=a.left&&b.right<=a.right})"

Gotchas

  • Two save models on one form: theme, checklist, recommended automations and voice input apply instantly and ignore Save; the rest is dropped silently if you navigate away before Save (filling git-user-name-input, then clicking sidebar-settings-/settings/secrets and back, shows the stored openhands again; browser dialogs is empty). Assert the instant ones without clicking Save, and never expect Save to enable for them.
  • The success toast uses the language that was active when you clicked Save, not the one you saved. In F16.language the French Save toasts Settings saved, the Arabic Save toasts Paramètres enregistrés, and the English restore toasts تم حفظ الإعدادات, so wait-text 'Settings saved' times out on the last two. Assert with browser text 'testid=submit-button' after a reload, or read the toast with browser toasts.
  • Some chrome strings stay English after a language switch: the sidebar Automate label in every language (the automation interface supplies it, not the translation file), and most of the command menu's own texts (placeholder Search actions, pages, and settings..., the search box's Search commands name, the group names and the item names) in French and 11 other languages. Only the Model Router and Agent Context items are translated (Routeur de modèles and Contexte de l'agent in French), because they reuse the settings navigation's titles. Do not treat the English ones as a language switch failure; the sidebar trigger's Search commands is translated.
  • In Arabic (dir="rtl"), check both on/off thumb containment within the track and the native .checked state. State readback alone does not prove correct placement; the normal RTL regression recipes above retain both assertions.
  • The switches are visually hidden native checkboxes: Use the label as the pointer target. Click the label text scoped to testid=app-settings-screen, or use Tab/Space, and read .checked through eval.
  • role=option[name^=...] is not supported by the selector parser; use role=option >> has-text=<profile> for profile options whose names include the model.
  • conversation start leaves the browser on the conversation page, which also has a testid=submit-button; goto /settings/app before the next settings step or clicks hit the composer.
  • Which profile actually generated a title is not visible in the UI, the conversation API or the stack logs; F16.title-model proves the preference is stored and a title appears, not which model wrote it.
  • onboard --skip stores analytics off, so a fresh run starts with the switch unchecked even though the code defaults to on when the preference is missing.
  • browser storage lists localStorage, and browser storage --session lists sessionStorage, where the voice-input key lives. With --values that key prints as <redacted>, so the recipe reads its dummy value with eval. The key disappears in a new tab or browser session by design.
  • Deleting a profile through the LLM settings UI clears a matching title preference itself; only a profile removed outside the UI leaves a stale title_llm_profile that this page shows as Automatic.
  • The Title generation model combobox has a clear (×) button with no accessible name (- button in the snapshot, visible as × at phone width). At desktop width it only takes clicks after browser hover on the input (F16.title-model-clear); otherwise use the Automatic option.
  • browser eval wraps its argument as an expression: statements separated by ; fail with SyntaxError: Unexpected token ';'; wrap them in (() => { ...; return x; })().
  • With service stop agent-server, a browser reload of /settings/app shows the backend-unavailable screen (agent-server-onboarding-screen, Manage backends), not the form: stop the service only after the page is loaded, and restart afterwards.
  • Known product bugs (repro candidates): git identity never reaches the agent (#17899).
  • The harness builds with VITE_DO_NOT_TRACK=1, so PostHog never starts: browser network --filter 'posthog|z\.openhands\.dev' reports total 0, also after analytics consent is granted (#18086). A browser-only Do Not Track setting is outside this recipe. Consent reversal requires the explicit non-DNT build and loopback-only analytics configuration described above, served with launch --build never (F16.analytics).
  • The title model's clear button has no test id: the recipe's xpath relies on DOM nesting to skip the unnamed Show suggestions button. If both ever match, Playwright's strict mode fails the click instead of pressing the wrong one; report it as harness drift.