Skip to content

πŸ™Œ OpenHands: AI-Driven Development

44.3 KB
Raw Blame

F15 β€” Condenser, agent context and verification settings

Settings pages generated from the Agent Server's settings schemas: Condenser (summarize long chats), Agent Context (persistent agent memory) and Verification (confirmation mode, security analyzer and the critic). On a local backend each agent profile owns its condenser and critic: they are edited in the Condenser and Verification sections of the agent profile editor (Settings β†’ Agent), /settings/condenser opens the Agent page, and the Verification page keeps only the global Critic API Key, Confirmation Mode and Security Analyzer under a note that the critic is set per agent profile. On a Cloud backend the Condenser page and the full Verification page (with the critic switch and its fields) are global settings pages. Each page shows the schema's fields in Basic/Advanced/All tiers (only the tiers that have fields), hides fields whose parent switch is off, and saves through one Save Changes button that stays disabled until a value differs from the stored one.

Source: src/routes/condenser-settings.tsx, src/routes/agent-context-settings.tsx, src/routes/verification-settings.tsx, src/components/features/settings/sdk-settings/, src/utils/sdk-settings-schema.ts, src/components/features/settings/agent-profiles/profile-behavior-form.ts.

Sub-features

  • F15.condenser-page: on a local backend /settings/condenser replaces itself with /settings/agents and no nav item or command leads to it; on a Cloud backend Condenser shows its subtitle, Basic and All tabs (no Advanced), and in Basic only the Enable Memory Condensation switch.
  • F15.condenser-all-view: (Cloud backend) the All tab lists the eight condenser fields with Title Case labels, plain descriptions and their stored values (Max Size 240, Keep First Events 2, …).
  • F15.condenser-save: (Cloud backend) changing Max Size and saving shows Saving..., then the saved toast; after a reload the page opens on All with the new value.
  • F15.condenser-dependents: (Cloud backend) turning condensation off hides the six size/reset fields (Condenser Kind stays); turning it back on un-dirties Save.
  • F15.condenser-kind: (Cloud backend) Condenser Kind is a dropdown (LLM Summarizer, None, stored as llm_summarizing and no_op); the choice persists, and switching back restores the summarizer defaults.
  • F15.save-dirty-state: on each page Save is disabled on load, enabled after an edit, and disabled again when the edit is reverted by hand.
  • F15.save-errors: (Cloud backend) a non-integer Max Size is refused in the browser with a toast; a negative one is refused by the server with a 422 toast; nothing is stored.
  • F15.view-scoped-save: (Cloud backend) saving from a narrower tier keeps the stored values of fields that tier does not show.
  • F15.agent-context-page: Agent Context shows a single Persistent Agent Memory switch with its help text and no tab bar.
  • F15.agent-context-save: toggling Persistent Agent Memory and saving persists after reload.
  • F15.verification-page: Verification shows Basic, Advanced and All tabs. On a local backend it starts with the note Each agent profile turns the critic on or off in Settings β†’ Agent. and every tier shows only Critic API Key (with its OpenHands LLM Key help link) and Confirmation Mode; on a Cloud backend every tier shows only Confirmation Mode and Enable Critic by default.
  • F15.verification-critic-fields: Confirmation Mode reveals Security Analyzer (Advanced and All). Enable Critic reveals Iterative Refinement (Basic) plus mode, server URL and model (All), and Iterative Refinement reveals threshold and max iterations: locally in an agent profile's Verification section (without the Critic API Key), on a Cloud backend on the page, where Enable Critic also reveals the Critic API Key.
  • F15.confirmation-mode-save: Confirmation Mode and Security Analyzer (conversation settings) persist after reload, alongside the agent-settings fields on the same page.
  • F15.confirmation-mode-effect: with Confirmation Mode on and Security Analyzer None, a new conversation stops before its first command with Do you want to continue with this action? and Cancel/Continue; Continue runs it.
  • F15.critic-tuning: (Cloud backend page; locally the same fields in an agent profile's Verification section) Critic Mode is a dropdown (Finish and Message, All Actions); the mode, Critic Threshold and Max Refinement Iterations persist after reload, and an out-of-range threshold (1.5) is refused with the 422 toast.
  • F15.critic-save: the Critic API Key persists after reload and comes back masked, and clearing it stores null; on a Cloud backend the critic text fields on the page persist too, and clearing them and turning the critic off restores the defaults.
  • F15.agent-context-effect: with Persistent Agent Memory on, a new conversation's system prompt carries the .openhands/memory/ instructions; with it off, it does not.
  • F15.tier-after-save: after a save the tab bar re-derives the tier from the stored values without a reload: saving the last non-Basic field back to its default moves the page to Basic.
  • F15.profile-behavior: on a local backend the agent profile editor (Settings β†’ Agent, Add or Edit) has Condenser (Basic/All) and Verification (Basic/All) sections rendered from the same schema; they edit that profile's condenser and verification, never the global settings, offer no Critic API Key, and a new profile starts from the default profile's values; reopening a profile always shows its stored values. Known failure (reproduced 2026-10-22, #18810): after a reload, Edit intermittently shows the global values instead, and a condenser save from that state overwrites the profile's.
  • F15.unsaved-navigation: leaving a page with unsaved edits shows no prompt and discards them.
  • F15.command-menu: the command menu offers Agent Context and Verification settings (plus Condenser settings on a Cloud backend), and each opens its page.
  • F15.direct-url: each page renders when opened by URL; locally /settings/condenser opens /settings/agents instead.
  • F15.phone: at 390 px the fields stack in one column without horizontal overflow.
  • F15.schema-unavailable: a backend without the settings-schema endpoints shows SDK settings schema unavailable. with an upgrade hint instead of the form (blocked: needs such a backend).

How to get to it (user POV)

  • Sidebar settings gear (backend-selector-settings-link, lands on /settings/agents), then Agent Context or Verification in the settings navigation (sidebar-settings-/settings/agent-context, sidebar-settings-/settings/verification); Condenser (sidebar-settings-/settings/condenser) is listed only on a Cloud backend.
  • Direct URLs /settings/condenser (local: opens /settings/agents), /settings/agent-context, /settings/verification.
  • Command menu (Control+k or Meta+k, or command-menu-trigger in the sidebar): Agent Context and Verification settings (plus Condenser settings on a Cloud backend); locally "memory" finds only Agent Context.
  • Per-profile condenser and critic (local): Settings β†’ Agent, Add agent profile (add-agent-profile) or a row's menu β†’ Edit, sections agent-settings-condenser and agent-settings-verification.
  • The effects show up in new conversations only: the confirmation prompt in the chat, and the memory instructions in the conversation's system prompt.

Driving it with control-openhands

Preconditions:

  • Baseline state (launched, doctored, onboard --skip done). No LLM is needed for the settings pages.

  • F15.confirmation-mode-effect and F15.agent-context-effect need an active LLM profile (control-openhands llm preset deepseek).

  • The condenser rows marked "(Cloud backend)", F15.critic-tuning's page recipe and the Cloud halves of the Verification rows need an OpenHands Cloud backend and account (blocked in a local run); a local run proves the redirect, the local Verification page and F15.profile-behavior.

  • F15.profile-behavior needs an LLM profile (the agent profile editor refuses to save without one): control-openhands llm preset deepseek (no model call).

  • F15.schema-unavailable needs an agent server that serves /api/settings but answers 404 for /api/settings/agent-schema (an older release via launch --new --sdk-ref <old>); not available in this checkout's pinned stack.

  • Stored values are the defaults: control-openhands api GET /api/settings shows agent_settings.condenser.enabled true, max_size 240, condenser_kind llm_summarizing; agent_context.load_memory false; verification.critic_enabled false; conversation_settings.confirmation_mode false.

  • Condenser on a local backend (F15.condenser-page, F15.direct-url). Run control-openhands browser goto /, control-openhands browser goto /settings/condenser (the result already reads .../settings/agents), control-openhands browser count 'testid=condenser-settings-screen' (0), control-openhands browser text 'testid=settings-screen >> header' (Agent with Create and manage reusable agent setups.) and control-openhands browser screenshot --feature F15.condenser-page --name local-redirect-agents; control-openhands browser back returns to / (the redirect replaced history). control-openhands browser count 'testid=sidebar-settings-/settings/condenser' is 0. The Cloud bullets below run only on a Cloud backend.

  • Open Condenser from the sidebar (F15.condenser-page, Cloud backend). Run control-openhands browser click 'testid=backend-selector-settings-link' --expect-url '/settings/agents(\?|$)', control-openhands browser click 'testid=sidebar-settings-/settings/condenser' --expect-url '/settings/condenser(\?|$)', control-openhands browser text 'testid=settings-page-subtitle' (Summarize long chats to stay within context limits.) and control-openhands browser snapshot 'testid=condenser-settings-screen'. The snapshot shows tabs Basic [selected] and All, the text Enable Memory Condensation and button "Save Changes" [disabled]; control-openhands browser count 'testid=sdk-section-advanced-toggle' is 0. Read the switch with control-openhands browser eval "document.querySelector('[data-testid=\"sdk-settings-condenser.enabled\"]').checked" (true).

  • All tier (F15.condenser-all-view). Run control-openhands browser click 'testid=sdk-section-all-toggle', control-openhands browser count 'testid=condenser-settings-screen >> input' (8) and control-openhands browser value 'testid=sdk-settings-condenser.max_size' (240). control-openhands browser snapshot 'testid=condenser-settings-screen' labels the fields Enable Memory Condensation, Max Size, Condenser Kind (combobox value LLM Summarizer), Max Tokens, Keep First Events, Minimum Progress, Hard Reset Retries and Hard Reset Scaling, each with a plain-language paragraph and all but the switch marked Optional (Condenser Kind: How the condenser shortens long conversations. LLM Summarizer replaces older events with a summary written by the LLM; None keeps the full history.).

  • Dirty state (F15.save-dirty-state). On the All tier: control-openhands browser enabled 'testid=save-button' is false; control-openhands browser fill 'testid=sdk-settings-condenser.max_size' 120 makes it true; control-openhands browser fill 'testid=sdk-settings-condenser.max_size' 240 makes it false again.

  • Save and reload (F15.condenser-save). Fill Max Size with 120, then control-openhands browser click 'testid=save-button' --observe 'testid=save-button' --observe-ms 3000 (observed states Save Changes β†’ Saving... β†’ Save Changes) and control-openhands browser toasts (Settings saved. For old conversations, you will need to stop and restart the conversation to see the changes.). control-openhands browser enabled 'testid=save-button' is false. Run control-openhands browser reload, control-openhands browser snapshot 'role=tablist' (All [selected]: the page opens on the tier that shows the overridden field) and control-openhands browser value 'testid=sdk-settings-condenser.max_size' (120). control-openhands api GET /api/settings shows max_size 120. Keep it for the next bullet.

  • Dependent fields (F15.condenser-dependents). On the All tier run control-openhands browser click 'testid=condenser-settings-screen >> text=Enable Memory Condensation'; the switch reads false and control-openhands browser count 'testid=condenser-settings-screen >> input' is 2 (the switch and Condenser Kind). Click the label again: the count is 8 and browser enabled 'testid=save-button' is false.

  • Basic save keeps hidden fields (F15.view-scoped-save). With Max Size stored as 120, run control-openhands browser click 'testid=sdk-section-basic-toggle', control-openhands browser click 'testid=condenser-settings-screen >> text=Enable Memory Condensation' and control-openhands browser click 'testid=save-button'. control-openhands api GET /api/settings now shows enabled false and max_size 120. Known failure (reproduced 2026-10-06): max_size is 240, because the save sends defaults for every field Basic does not show (#18049). After browser reload the page opens on Basic with the switch off. Restore: click the label again, browser click 'testid=save-button', browser reload; the switch reads true and the API shows enabled true (with max_size 240 today, from the reset above).

  • Invalid values (F15.save-errors). On the All tier run control-openhands browser fill 'testid=sdk-settings-condenser.max_size' 1.5, control-openhands browser click 'testid=save-button' and control-openhands browser toasts (Expected an integer value, received: 1.5; no request is sent). Then wait for the toast to close, fill -5, control-openhands browser network --clear, control-openhands browser click 'testid=save-button' --observe 'testid=save-button' --observe-ms 2500 (Saving... only briefly), control-openhands browser toasts (Settings validation failed) and control-openhands browser network (one PATCH /api/settings answering 422; a 4xx is not retried). The API still shows max_size 240; browser reload drops the bad draft.

  • Condenser Kind (F15.condenser-kind). On the All tier run control-openhands browser click 'testid=sdk-settings-condenser.condenser_kind', control-openhands browser snapshot 'role=listbox' (options LLM Summarizer [selected] and None), control-openhands browser click 'role=listbox >> role=option[name="None"]' and control-openhands browser click 'testid=save-button'. After browser reload the page opens on All, browser value 'testid=sdk-settings-condenser.condenser_kind' is None, and control-openhands api GET /api/settings --pick agent_settings.condenser is just {"enabled": true, "condenser_kind": "no_op"} (the labels are Canvas copy; the stored values are unchanged). The summarizer fields should hide while None is selected. Known failure (reproduced 2026-10-06): Max Size, Max Tokens, Keep First Events, Minimum Progress, Hard Reset Retries and Hard Reset Scaling stay with their defaults, and browser fill 'testid=sdk-settings-condenser.max_size' 100 then Save gives Settings saved while the API still shows only enabled and condenser_kind and a reload shows 240 again (#18049; browser screenshot --feature F15.condenser-kind --name none-shows-summarizer-fields). Restore by choosing LLM Summarizer the same way and saving: after reload the page opens on Basic and the API shows all eight defaults again (condenser_kind llm_summarizing).

  • Agent Context (F15.agent-context-page). Run control-openhands browser click 'testid=sidebar-settings-/settings/agent-context' --expect-url '/settings/agent-context(\?|$)', control-openhands browser text 'testid=settings-page-subtitle' (Let the agent keep notes and recall them in new conversations.), control-openhands browser count 'role=tablist' (0) and control-openhands browser snapshot 'testid=agent-context-settings-screen' (text Persistent Agent Memory, the paragraph about .openhands/memory/, button "Save Changes" [disabled]).

  • Persistent memory persists (F15.agent-context-save). Run control-openhands browser click 'testid=agent-context-settings-screen >> text=Persistent Agent Memory', control-openhands browser click 'testid=save-button', control-openhands browser reload and control-openhands browser eval "document.querySelector('[data-testid=\"sdk-settings-agent_context.load_memory\"]').checked" (true; API agent_context.load_memory true). Restore: click the label, save, reload; the value is false.

  • Verification (F15.verification-page). Run control-openhands browser click 'testid=sidebar-settings-/settings/verification' --expect-url '/settings/verification(\?|$)', control-openhands browser text 'testid=settings-page-subtitle' (Confirmation prompts and security checks on actions.), control-openhands browser text 'testid=verification-critic-per-profile-note' (Each agent profile turns the critic on or off in Settings β†’ Agent.) and control-openhands browser snapshot 'testid=verification-settings-screen': tabs Basic [selected], Advanced, All; textbox "Critic API Key Optional" with its help paragraph and link "OpenHands LLM Key" (https://app.all-hands.dev/settings/api-keys), checkbox "Confirmation Mode" and button "Save Changes" [disabled]; Advanced and All show the same (control-openhands browser screenshot --feature F15.verification-page --name local-basic). On a Cloud backend there is no note and the tiers show Confirmation Mode and Enable Critic.

  • Analyzer field (F15.verification-critic-fields, local). On /settings/verification click testid=verification-settings-screen >> text=Confirmation Mode (unsaved); control-openhands browser count 'testid=sdk-settings-security_analyzer' is 0 on Basic and 1 on Advanced and on All (click sdk-section-<tier>-toggle before each count). browser reload drops the draft. The critic's own fields are in each agent profile's Verification section (F15.profile-behavior).

  • Critic and analyzer fields (F15.verification-critic-fields, Cloud backend). On All run control-openhands browser click 'testid=verification-settings-screen >> text=Confirmation Mode', control-openhands browser click 'testid=verification-settings-screen >> text="Enable Critic"' and control-openhands browser click 'testid=verification-settings-screen >> text="Enable Iterative Refinement"'. control-openhands browser testids 'testid=verification-settings-screen' --hidden now lists sdk-settings-security_analyzer, sdk-settings-verification.critic_mode, sdk-settings-verification.critic_threshold (0.6), sdk-settings-verification.max_refinement_iterations (3), sdk-settings-verification.critic_server_url, sdk-settings-verification.critic_model_name, sdk-settings-verification.critic_api_key and help-link-verification.critic_api_key. control-openhands browser attr 'testid=sdk-settings-verification.critic_api_key' type is password; control-openhands browser eval "document.querySelector('[data-testid=\"help-link-verification.critic_api_key\"] a')?.href" is https://app.all-hands.dev/settings/api-keys. control-openhands browser screenshot --feature F15.verification-critic-fields --name all-critic-on shows the API key spanning both columns. Basic (sdk-section-basic-toggle) keeps confirmation_mode, critic_enabled, enable_iterative_refinement and critic_api_key; Advanced adds security_analyzer. The three switches are an unsaved draft that survives tab switches: run control-openhands browser reload before the next bullet, otherwise its Confirmation Mode click turns the switch off again and the save stores the critic draft.

  • Confirmation mode persists (F15.confirmation-mode-save). On /settings/verification (Basic) run control-openhands browser click 'testid=verification-settings-screen >> text=Confirmation Mode', control-openhands browser click 'testid=save-button', control-openhands browser reload and control-openhands browser eval "document.querySelector('[data-testid=\"sdk-settings-confirmation_mode\"]').checked" (true). Then control-openhands browser click 'testid=sdk-section-advanced-toggle', control-openhands browser click 'testid=sdk-settings-security_analyzer', control-openhands browser snapshot 'role=listbox' (options LLM [selected], None), control-openhands browser click 'role=listbox >> role=option[name="None"]', control-openhands browser click 'testid=save-button' and control-openhands browser reload: the tab bar shows Advanced [selected] and control-openhands browser value 'testid=sdk-settings-security_analyzer' is None. control-openhands api GET /api/settings shows conversation_settings.confirmation_mode true, security_analyzer none. Keep both for the next bullet.

  • Confirmation stops the agent (F15.confirmation-mode-effect). Run control-openhands conversation start --prompt "Run this shell command: echo qa-f15-confirm" --wait --until waiting_for_confirmation,finished,idle,error --timeout 180; the status is waiting_for_confirmation. control-openhands browser wait-text 'Do you want to continue with this action?' --timeout 15000 succeeds and control-openhands browser screenshot --feature F15.confirmation-mode-effect --name awaiting shows Cancel β‡§βŒ˜βŒ« and Continue βŒ˜β†© under the pending command. Run control-openhands browser click 'testid=action-confirm-button', control-openhands conversation wait <id> --until finished,idle,error --timeout 120 (<id> from the start output) and control-openhands conversation events <id> --kinds ObservationEvent: the terminal observation is qa-f15-confirm. If the status is still waiting_for_confirmation the agent asked again (see Gotchas): confirm again. Restore on /settings/verification (control-openhands browser goto /settings/verification; the browser is on the conversation): browser click 'testid=sdk-section-basic-toggle', click the Confirmation Mode label, browser click 'testid=save-button'; the Basic save also resets Security Analyzer to llm (API confirmation_mode false, security_analyzer llm).

  • Critic API Key persists (F15.critic-save, local). On /settings/verification run control-openhands browser click 'testid=sdk-section-all-toggle', control-openhands browser fill 'testid=sdk-settings-verification.critic_api_key' qa-dummy-critic-key, control-openhands browser click 'testid=save-button', control-openhands browser toasts (Settings saved. …) and control-openhands browser reload: control-openhands browser value 'testid=sdk-settings-verification.critic_api_key' reports masked: true and length: 10, and control-openhands api GET /api/settings --pick agent_settings.verification shows critic_api_key ********** with critic_enabled false (screenshot --feature F15.critic-save --name key-masked). Restore: click testid=sdk-section-all-toggle, fill the key with '', save; the API shows critic_api_key null.

  • Critic values persist (F15.critic-save, Cloud backend). On the All tier click testid=verification-settings-screen >> text="Enable Critic", run control-openhands browser fill 'testid=sdk-settings-verification.critic_model_name' qa-critic-model, control-openhands browser fill 'testid=sdk-settings-verification.critic_api_key' qa-dummy-critic-key, control-openhands browser click 'testid=save-button' and control-openhands browser reload. The page opens on All; browser value 'testid=sdk-settings-verification.critic_model_name' is qa-critic-model and browser value 'testid=sdk-settings-verification.critic_api_key' reports masked: true and length: 10 for the stored placeholder. The CLI redacts its displayed value; do not compare its returned star string to the input's literal placeholder or bypass masking. Restore on All: fill both fields with '', click text="Enable Critic" again, save, reload: the page opens on Basic and the API shows critic_enabled false, critic_model_name and critic_api_key null.

  • Critic mode, threshold and iterations (F15.critic-tuning, Cloud backend). On /settings/verification run control-openhands browser click 'testid=sdk-section-all-toggle', control-openhands browser click 'testid=verification-settings-screen >> text="Enable Critic"', control-openhands browser click 'testid=sdk-settings-verification.critic_mode' and control-openhands browser snapshot 'role=listbox' (options Finish and Message [selected], All Actions). Run control-openhands browser click 'role=listbox >> role=option[name="All Actions"]', control-openhands browser click 'testid=verification-settings-screen >> text="Enable Iterative Refinement"', control-openhands browser fill 'testid=sdk-settings-verification.critic_threshold' 0.75, control-openhands browser fill 'testid=sdk-settings-verification.max_refinement_iterations' 5, control-openhands browser click 'testid=save-button' and control-openhands browser reload: the page opens on All, browser value reads All Actions, 0.75 and 5, and control-openhands api GET /api/settings --pick agent_settings.verification shows critic_mode all_actions, critic_threshold 0.75, max_refinement_iterations 5. Then browser fill 'testid=sdk-settings-verification.critic_threshold' 1.5, browser network --clear, browser click 'testid=save-button', browser toasts (Settings validation failed, one PATCH /api/settings with 422 in browser network); the API still shows 0.75. Restore: browser reload, browser click 'testid=sdk-section-basic-toggle', click text="Enable Iterative Refinement" and text="Enable Critic" off, browser click 'testid=save-button': the Basic save resets mode, threshold and iterations, and the API shows the verification defaults.

  • Tier follows the stored values after a save (F15.tier-after-save). On /settings/verification (control-openhands browser goto /settings/verification) click testid=verification-settings-screen >> text=Confirmation Mode, run control-openhands browser click 'testid=sdk-section-advanced-toggle', control-openhands browser click 'testid=sdk-settings-security_analyzer', control-openhands browser click 'role=listbox >> role=option[name="None"]', control-openhands browser click 'testid=save-button', control-openhands browser wait-text 'Settings saved' --timeout 5000 and control-openhands browser snapshot 'role=tablist' (Advanced [selected]). Then browser click 'testid=sdk-section-advanced-toggle', pick role=option[name="LLM"] the same way, browser click 'testid=save-button', control-openhands browser wait 'testid=sdk-settings-security_analyzer' --state detached --timeout 5000 (detached) and browser snapshot 'role=tablist': Basic [selected] without any reload (browser screenshot --feature F15.tier-after-save --name back-to-basic). Restore: click the Confirmation Mode label and save; the API shows confirmation_mode false, security_analyzer llm.

  • Memory reaches the agent (F15.agent-context-effect). Run control-openhands browser goto /settings/agent-context, turn Persistent Agent Memory on and save as in F15.agent-context-save, then run control-openhands conversation start --prompt "Reply with only: ok" --wait --timeout 180 and control-openhands api GET '/api/conversations/<id>/events/search?limit=1'. The first event is the SystemPromptEvent; its text contains Project memory: followed by `.openhands/memory/` under the workspace root. The same call for a conversation started with memory off (for example the one from F15.confirmation-mode-effect) has no .openhands/memory. Restore memory off through the page (control-openhands browser goto /settings/agent-context first: conversation start left the browser on the conversation).

  • Dirty state on Verification (F15.save-dirty-state). On /settings/verification control-openhands browser enabled 'testid=save-button' is false; clicking testid=verification-settings-screen >> text=Confirmation Mode makes it true, and clicking the label again makes it false.

  • Leaving discards edits (F15.unsaved-navigation). Arrange an unsaved draft: control-openhands browser click 'testid=sidebar-settings-/settings/verification' --expect-url '/settings/verification(\?|$)', click testid=verification-settings-screen >> text=Confirmation Mode and control-openhands browser fill 'testid=sdk-settings-verification.critic_api_key' qa-draft (do not save); browser enabled 'testid=save-button' is true. Run control-openhands browser click 'testid=sidebar-settings-/settings/agent-context' --expect-url '/settings/agent-context(\?|$)', control-openhands browser dialogs (none), control-openhands browser click 'testid=sidebar-settings-/settings/verification' --expect-url '/settings/verification(\?|$)', then control-openhands browser eval "document.querySelector('[data-testid=\"sdk-settings-confirmation_mode\"]').checked" (false), control-openhands browser value 'testid=sdk-settings-verification.critic_api_key' (empty, length 0) and browser enabled 'testid=save-button' (false).

  • Per-profile condenser and critic (F15.profile-behavior). After llm preset deepseek, run control-openhands browser goto /settings/agents, control-openhands browser click 'testid=add-agent-profile', control-openhands browser fill 'testid=agent-profile-name-input' QA_f15, control-openhands browser click 'testid=agent-settings-condenser >> testid=sdk-section-all-toggle' (browser count 'testid=agent-settings-condenser >> input' is 8; browser value 'testid=sdk-settings-condenser.max_size' is 240, the default profile's value), control-openhands browser fill 'testid=sdk-settings-condenser.max_size' 120, control-openhands browser click 'testid=agent-settings-verification >> text="Enable Critic"' and control-openhands browser click 'testid=agent-settings-verification >> testid=sdk-section-all-toggle': control-openhands browser testids 'testid=agent-settings-verification' --hidden lists sdk-settings-verification.critic_enabled, .critic_mode, .enable_iterative_refinement, .critic_server_url and .critic_model_name, and no critic_api_key (browser screenshot --feature F15.profile-behavior --name editor-filled). control-openhands browser click 'testid=save-agent-profile-btn' toasts Profile "QA_f15" created; control-openhands api GET /api/agent-profiles/QA_f15 has profile.condenser.max_size 120, profile.verification.critic_enabled true and no critic key, while control-openhands api GET /api/settings --pick agent_settings.condenser.max_size stays 240 and --pick agent_settings.verification.critic_enabled stays false. Reopen it (browser reload, browser click '[data-testid=agent-profile-row]:has-text("QA_f15") >> testid=agent-profile-menu-trigger', browser click 'role=menu >> role=menuitem[name="Edit"]'): the Condenser section opens on All with max_size 120, the critic switch is checked and browser enabled 'testid=save-agent-profile-btn' is false, on every reopen. Known failure (reproduced 2026-10-22, #18810): in about one reopen in six after a browser reload (repeat the reload and Edit about 10 times), the section shows the global 240 and the critic off while api GET /api/agent-profiles/QA_f15 still has 120/true; saving a condenser edit from that state stores max_size 240. The default profile's editor shows both sections too (browser count 'testid=agent-settings-condenser' is 1). In the section, choosing Condenser Kind None should hide the summarizer fields and Max Size should refuse values below zero; Known failure (reproduced 2026-10-22, #18049, #15813): with None picked browser count 'testid=sdk-settings-condenser.max_size' is still 1, and browser fill 'testid=sdk-settings-condenser.max_size' -5 keeps -5 (browser screenshot --feature F15.profile-behavior --name kind-none-fields). Leave with testid=cancel-agent-profile-btn and delete QA_f15 (control-openhands api DELETE /api/agent-profiles/QA_f15 --write; deleting through the UI is F13).

  • Command menu (F15.command-menu). Run control-openhands browser goto /, control-openhands browser press Control+k, control-openhands browser type 'testid=command-menu >> role=combobox' Condenser and control-openhands browser snapshot 'testid=command-menu': on a local backend No commands found (on a Cloud backend, option Condenser settings Tune context condensation behavior. Go, which opens /settings/condenser); control-openhands browser press Escape. Repeat with Verification (option Verification settings Adjust risk and confirmation controls. Go, URL /settings/verification) and with Agent Context (option Agent Context Let the agent keep notes and recall them in new conversations. Go [selected], URL /settings/agent-context, subtitle Let the agent keep notes and recall them in new conversations.). Then control-openhands browser press Control+k, control-openhands browser type 'testid=command-menu >> role=combobox' memory and control-openhands browser snapshot 'testid=command-menu': locally one option, Agent Context … (a Cloud backend also lists Condenser settings …; hovering selects an option, so click the one you want rather than pressing Enter); close with control-openhands browser press Escape (browser count 'testid=command-menu' is 0).

  • Direct URLs (F15.direct-url). Run control-openhands browser goto /settings/agent-context and control-openhands browser wait 'testid=agent-context-settings-screen'; likewise /settings/verification with testid=verification-settings-screen. Each wait returns visible.

  • Phone (F15.phone). Run control-openhands browser viewport phone, control-openhands browser goto /settings/verification, control-openhands browser click 'testid=sdk-section-all-toggle', control-openhands browser bbox 'testid=verification-settings-screen' (width 348, pageHorizontalOverflow false) and control-openhands browser screenshot --feature F15.phone --name verification-all-local (one column; the settings nav is replaced by a back chevron). On a Cloud backend also click testid=verification-settings-screen >> text="Enable Critic" (unsaved) first, and do the same for /settings/condenser All. Return with control-openhands browser viewport desktop and browser reload to drop the draft.

  • Schema unavailable (F15.schema-unavailable, blocked). control-openhands service stop agent-server does not reach this state: after browser reload the whole app is replaced by the Manage backends dialog (Disconnected, 502). Bring the stack back with control-openhands restart. The state needs a backend whose schema endpoints 404 (see Preconditions); there browser text 'testid=sdk-schema-unavailable' should start with SDK settings schema unavailable.

  • Errors sweep. control-openhands browser errors --clear, open the pages and their All tabs, then control-openhands browser errors --app-only: no page errors and no warnings (the condenser fields are translated since #18035).

  • Background refetch keeps the draft (F15.save-dirty-state, Cloud backend). With Max Size stored as 240, run control-openhands browser goto /settings/condenser, control-openhands browser click 'testid=sdk-section-all-toggle' and control-openhands browser fill 'testid=sdk-settings-condenser.max_size' 111. Arrange a changed server baseline with control-openhands api PATCH /api/settings --write --data '{"agent_settings_diff":{"condenser":{"max_size":300}}}'; this API write is a precondition, not the UI proof. Run control-openhands browser clock --offset-ms 360000 (makes the mounted query stale), control-openhands browser network-state offline, control-openhands browser network-state online and control-openhands browser network --filter '/api/settings'. After the real GET refetch, the unsaved 111 should remain and Save should stay enabled. Known failure (reproduced 2026-10-12, #16948): control-openhands browser value 'testid=sdk-settings-condenser.max_size' is 300 and control-openhands browser enabled 'testid=save-button' is false; the draft vanished without Save, reset or a scope change. Capture control-openhands browser screenshot --feature F15.save-dirty-state --name refetch-discards-draft. Restore with control-openhands browser clock --offset-ms 0, fill Max Size 240, click Save and confirm control-openhands api GET /api/settings --pick agent_settings.condenser.max_size is 240; networking stays online.

  • Negative condenser input floor (F15.save-errors, Cloud backend; locally see F15.profile-behavior). On /settings/condenser select All, fill testid=sdk-settings-condenser.max_size with -5 and read browser enabled 'testid=save-button'. Expected by #15813: the input prevents values below zero. Known failure, reproduced 2026-10-12: -5 remains and Save is enabled. Save shows Settings validation failed, while api GET /api/settings --pick agent_settings.condenser.max_size remains 240; repeat filling -5 and read Save enabled, then fill 240 to discard the invalid draft. The server guard works; the requested client input floor does not.

  • Default Verification tabs (F15.verification-page, F15.verification-critic-fields). #15811 asks whether Basic and Advanced should differ. On defaults, snapshot testid=verification-settings-screen in each tab: both show only Critic API Key and Confirmation Mode (on a Cloud backend, Confirmation Mode and Enable Critic). Enable Confirmation Mode without saving; browser count 'testid=sdk-settings-security_analyzer' is 1 on Advanced, 0 on Basic and 1 again on Advanced. Reload to discard, then repeat the default/conditional check. Verified 2026-10-12: the default sameness is the current conditional-field behavior, not evidence that the two tiers always render the same fields.

  • Datetime refreshed on Canvas launch (F15.agent-context-page). Before a new chat, read api GET /api/settings --pick agent_settings.agent_context.current_datetime; record this public timestamp so it can be restored. Arrange an old persisted-state timestamp through the real API (api PATCH /api/settings --write --data '{"agent_settings_diff":{"agent_context":{"current_datetime":"2001-01-01T00:00:00+00:00"}}}'). Start a chat through the Home composer with the dummy loopback profile, then inspect the run-owned runtime agent.agent_context.current_datetime and conversation events <id> --kinds SystemPromptEvent --grep 2001-01-01 --from-start --last 1. Expected: runtime datetime matches the new launch and the old-date event search returns zero. Restore the original settings timestamp through PATCH; no successful model reply is required to inspect initialization.

Regression check (F15.save-errors, negative-no-retry; Cloud backend only, since locally /settings/condenser opens the Agent page):

trap 'control-openhands browser reload >/dev/null' EXIT
control-openhands browser viewport desktop
control-openhands browser goto /settings/condenser
control-openhands browser click 'testid=sdk-section-all-toggle'
control-openhands browser fill 'testid=sdk-settings-condenser.max_size' -5
control-openhands browser network --clear
control-openhands browser click 'testid=save-button' --observe 'testid=save-button' --observe-ms 3000
control-openhands browser screenshot --feature F15.save-errors --name negative-request-count
control-openhands assert --field recent.0.status --equals 422 -- browser network --filter '/api/settings'
control-openhands assert --field total --equals 1 -- browser network --filter '/api/settings'

Gotchas

  • Switches are sr-only checkboxes (keyboard reachable): toggle by clicking the label text scoped to the page, read .checked with browser eval.
  • text=Enable Critic is a case-insensitive substring match and hits the help paragraph Enable critic evaluation for the agent. first, so the click does nothing. Quote it: text="Enable Critic" (same for text="Enable Iterative Refinement").
  • The conversation-owned fields have no verification. prefix: sdk-settings-confirmation_mode, sdk-settings-security_analyzer. Critic fields keep it (sdk-settings-verification.critic_enabled).
  • Locally the condenser and the critic switch belong to agent profiles: a recipe that opens /settings/condenser lands on /settings/agents, and sdk-settings-verification.critic_enabled is not on the Verification page. Use the agent profile editor's sections (F15.profile-behavior), whose tab toggles repeat per section: scope them, 'testid=agent-settings-condenser >> testid=sdk-section-all-toggle'.
  • Saving is tier-scoped: Basic or Advanced saves reset every field the tier hides to its schema default (F15.view-scoped-save). Make all edits on All when other non-default values must survive.
  • The page opens on the least detailed tier that shows every stored override (any minor override β†’ All). Do not assume Basic after a reload.
  • Condenser Kind None (no_op) still shows the summarizer fields with defaults, although the stored condenser no longer has them, and edits to them are accepted (Settings saved) but dropped while None is stored. #18049 covers hiding fields that do not apply to the selected kind.
  • A server-side validation error (422) is not retried: one PATCH /api/settings, Saving... for a moment, then the toast Settings validation failed, which does not name the field.
  • Condenser Kind is served by the Agent Server's settings schema as a user field. Canvas shows its own choice labels and help text rather than raw llm_summarizing/no_op values or reStructuredText. The dropdown (F15.condenser-kind) remains a user setting so additional kinds can be selected. OpenHands/software-agent-sdk#5495, the schema's developer-facing description, remains an upstream issue.
  • Toasts close after a few seconds; read them right after the click, or assert the stored value with api GET /api/settings.
  • Each instance's agent server keeps its tmux sockets in its own TMUX_TMPDIR (see F06 Gotchas), so a confirmed command that returns The terminal session was reset because the underlying tmux server/session disappeared... is a finding, not interference from another run; after one, the agent asks to run it again. A confirmed command took up to two minutes to produce its observation. Confirm again and wait with conversation wait, not a fixed sleep.
  • The confirmation buttons have test ids (action-confirm-button, action-reject-button) but their accessible names are Confirm action / Reject action, not the visible Continue / Cancel: role=button[name*="Continue"] finds nothing.
  • Basic-tier saves on Verification reset Security Analyzer to llm (it is an Advanced field). That is a convenient restore, and a trap if you meant to keep None.
  • The memory instructions are only visible through the conversation's first event; conversation events truncates text, so read api GET /api/conversations/<id>/events/search?limit=1 and search the JSON.
  • A checkout without #18035 shows the condenser minor fields with the schema's English text (Max tokens, Keep first, raw choice values) and logs 14 [i18n] Missing translation warnings on the All tab.
  • The dropdowns' clear (Γ—) button has no accessible name and, in this build, clicking it through role=button >> nth=2 left the value unchanged.
  • After every successful save the selected tab is recomputed from the stored values (F15.tier-after-save), so a follow-up fill on an All-only field can time out because the page silently moved to Basic. Re-click sdk-section-all-toggle before each further edit.
  • Pressing Enter in a field does not save (no toast, API unchanged, Save stays enabled); only the Save Changes button submits.
  • Fields revealed by a parent switch do not exist while the switch is off: fill on critic_threshold with Iterative Refinement off waits for a missing element.
  • Rejecting a pending action (Cancel), the lock chip above the composer and the βŒ˜β†© / β‡§βŒ˜βŒ« shortcuts belong to F06.confirmation-mode and F06.confirmation-shortcuts; this family only proves that the settings turn the prompt on.
  • browser count 'role=status' also counts the backend status dot (backend-status-dot); use browser toasts for toast texts.