The shared Chromium, Xvfb and Xpra runtime could remain alive indefinitely
after chats stopped using it. Suspend it after one hour of inactivity by
default, preserving saved tab URLs and the shared sign-in profile. Protect
running and paused owners, subordinate parent tasks, connected viewers,
browser calls and downloads; passive polling must not restart the runtime
or extend its lifetime.
Add Stop internal browser to Browser Settings, release the runtime on
global plugin disable, and clean stale display directories only when no
live owner or process reference remains. Document the global timeout,
opt-out and loss of unsaved page state on suspension.
Validation: 206 focused tests and 20 real-Chromium security tests passed.
Live Docker checks verified periodic and manual shutdown from 13 child
processes to zero, download protection, tab/cookie recovery, the WebUI
control and CSRF rejection. The reported GPU busy-loop was not reproduced;
this change bounds idle lifetime without changing graphics flags.
Refs #1892, #2029.
Cross-origin related windows could read page content and invoke DOM actions
through the helper's public postMessage channel.
Reject foreign and opaque origins, use exact target origins, and bind each
pending response to its child window and operation. Preserve inherited
origins for about:blank/srcdoc frames and trusted direct automation access.
Bump the helper to v2 and require a page reload when legacy listeners are
present. Existing host browsers must restart and reconnect before restored
tabs reload so old initialization scripts are discarded.
Add real-Chromium regressions for parent/frame/opener attacks, opaque
origins, forged responses, same-origin actions, and helper upgrades.
Validation: 250 browser/connector tests passed in both Conda a0 and Docker's
framework runtime; JavaScript syntax and diff checks passed. Restarted the
live runtime and verified HTTP health, browser navigation, and the viewer.
Let profiles allow individual operations across all 12 bundled multi-action
tools, such as reading files without allowing writes or listing scheduled
tasks without allowing deletion.
Share action contracts across runtime policy, Agent Editor, text prompts,
and native schemas. Preserve existing whole-tool policies and legacy memory
IDs; only explicit permission edits persist the editor's projection.
Check aliases, defaults, browser batches, reset flags, and parallel
operations at execution. Apply action permissions to automatic browser
context and skill hints.
Validation: 742 focused tests passed. Live Docker checks verified allowed
reads, denied writes through native/legacy/parallel dispatch, blocked
scheduler deletion, and editor save/reload.
The browser tool logs gerund headlines like Browser: Opening <url> naming the action and its target URL instead of the agent-name prefix, with aliases accepting the flat action spellings the tool already normalizes. Regression tests cover the log entry, the action verbs, and the URL naming.
Validation: pytest plugins/_browser/tests/test_browser_tool_ui.py
Positive accent controls hardcoded six blue literals across the WebUI and bundled plugins, so custom accent-color switchers had to patch each surface separately. Route them through var(--color-highlight) — mapped in the light block for the first time — and keep each surface mix percentages, deriving hover and active steps with the established black color-mix pattern; the redundant light-mode unread override collapses into the single var-based rule. Login keeps its literals because the login page loads no theme tokens, and status colors like queue orange, stop red, and success or error toasts stay hardcoded as semantic tones.
Validation: pytest welcome/whats-new/agent-editor/model-config/speech/sidebar/self-update suites (82 passed; 2 stop-agent failures pre-exist at HEAD, proven by stash run); rg confirms no accent literals outside login.css.
Remove overlapping zoom hints and extension path/action tooltips from the
Browser quick settings popover. Preserve accessible control labels and
document the tooltip-free popover contract.
Validation: focused quick-settings regression passed; live served HTML
retains accessible labels without tooltip titles; git diff --check passed.
Visual hover verification was unavailable because the in-app browser could
not connect. The full suite was not run.
Keep quick settings focused on the model preset, Host/Container choice,
native page zoom, and installed Chrome extensions. Show a dimmed host
configuration link only in Host mode, and match the Browser and Zoom
labels to the preset label.
Move extension creation, installation, and review into Browser config.
Open Chromium management pages for browsing data, history, passwords,
autofill, extensions, and downloads through the existing Browser surface.
Honor native download folder and save-dialog preferences, and add
annotation screenshots as an opt-in setting that defaults off.
Update the Browser contracts and regression coverage. Validation: 201
browser/tool tests and 29 host-connector tests passed, with the host suite
isolated from existing module stubs. Live checks on localhost:32083
covered settings navigation, runtime selection, zoom, annotation attachments,
download preferences, matching typography, and narrow layouts.
Avoid starting Chromium for empty tab listings while preserving saved-tab
restoration. Honor navigation readiness without redundant load waits or
fixed pauses, and let WebUI navigation return at document commit.
Skip automatic history screenshots for inspection, evaluation, and batches
containing only those actions. Read page metadata in one evaluation and
report the actual loading state. Reuse the native viewer display size when
no resize is requested, preventing page zoom from enlarging and clipping
frames during navigation.
Update browser documentation and regression coverage. Validated 194 browser
regression/output tests and 29 host-browser tests in separate runs, plus
live WebUI navigation, pointer input, screenshots, and repeated reloads.
Local test-page medians improved from 474 to 83 ms for navigation and from
82 to 19 ms for content reads.
Clear the address, page state, viewer, and switching flags when no active
Browser tab remains. Release busy state on subscription failures so the
user can retry instead of remaining on the connecting screen.
Invalidate pending session, subscription, and command results when the
selected chat changes, and apply the active tab state from successful
subscriptions. Add regression coverage and document the lifecycle contract.
Validation: 176 browser tests and 29 host connector tests pass in separate
runs. The combined run encounters an existing ws_manager mock isolation
failure. Live checks on localhost:32081 cover blank-tab startup, switching
to an empty chat and back, closing the last tab, and retrying a failed
subscription.
Include HTTPX's SOCKS extra in framework requirements so SOCKS proxy
settings work when LiteLLM starts. Let the Browser install hook repair
missing SOCKS support in existing framework environments, skipping the
installation when socksio is already available.
Cover missing dependencies, existing installations, and repeated hook
calls, and document the framework and plugin ownership.
Validation:
- 139 Browser and Docker release-planning tests passed.
- Local amd64 and ARM64 (QEMU) production image builds passed; ARM64
needed an unchanged retry after a transient Kali mirror/DNS failure.
- Browser hook and sync/async SOCKS5 and SOCKS5h requests passed in both
fresh images, including client initialization with mixed proxy settings.
Add evaluate_timeout_seconds to Browser settings, defaulting to 30 seconds
with strict finite bounds of 0.1 through 60 seconds. Bound user evaluation
and result-state collection while preserving existing results and
non-breaking tool errors.
Propagate caller cancellation to the Browser worker and interrupt Chromium
execution in place. Preserve the document when the original request
settles; reserve reload and targeted closure for unresolved execution and
report disruptive recovery explicitly without stopping shared workers.
Require evaluate_timeout_v1 for host evaluation, forward the settings
deadline, and await host cancellation acknowledgement. Reuse per-browser
multi dispatch and clean up pending connector operations. Update the
settings UI, tool guidance, ownership contracts and regression coverage.
Validation: 173 Core Browser tests and 29 connector bridge tests passed.
Framework compilation and isolated Chromium checks verified preserved
form drafts and page state, async fallback, recovery and protocol cleanup.
Require a non-empty script string in the shared browser runtime so single and multi calls report a missing argument instead of successfully evaluating undefined. Add concise prompt guidance and retain legitimate null, false, zero, and object results.
Add argument and result regression coverage; refresh the existing browser-test WebSocket stub for transfer-cleanup imports. Validation: 165 focused Core checks passed in isolated runs, and real Chromium reproduced the reported expression/script mismatch before the fix and the actionable error afterward.
Extend the browser tool display beautifier to trim input and beautify top-level JSON arrays as well as objects, so minified multi results render readable in the message and detail view. Copy, speak, and result parsing keep the raw text.
Cover the beautifier with a node-based test that extracts the real function from the handler source and asserts object, array, padded, plain, and invalid inputs against expected literals. Verified four focused tests in the framework runtime and node syntax check on the mirrored core instance.
Add model-facing tool arguments found by a manual audit: call_subordinate name, office_artifact sheet plus edit count and preview_chars, browser skill value, paths, ref, keys, and selectors, and computer_use_remote include_hidden, include_offscreen, max_windows, mode, target, value, and path. Keep prompts canonical-only and record legacy aliases and action-value spellings in the owning DOX files for browser, a0_connector, office, text_editor, code_execution, goal, call_subordinate, and parallel.
Verified the argument flows against tool source in three independent manual audit passes covering core tools, plugin tools, helpers, and WebUI handlers. Verified prompt catalog and plugin scan tests in the framework runtime and kept the mirrored core instance in sync for live testing.
Move the browser context extension from system_prompt to message_loop_prompts_after and write open-tab listing and last-interacted page content into loop extras so the system prompt stays cache-stable across turns. Preserve the profile tool-policy gate before any runtime access.
Minify browser tool JSON in agent history and keep JSON beautification plugin-local in the WebUI tool handler for display only while copy, speak, and result parsing stay on the raw text. Document missing tool arguments in the browser skill and the call_subordinate, code_execution_remote, computer_use_remote, and office_artifact prompts, and update Browser plugin DOX contracts.
Add focused browser tool output tests and update tool policy coverage for the moved extension. Verified 33 targeted tests in the framework runtime and a live evaluate, extras injection, and minified history check on the mirrored core instance.
Integrate negotiated payload limits, bounded chunked operations, transfer cleanup, and atomic HTTP file transfers. Preserve the current UI bundling, download scope, and Connector behavior while resolving branch conflicts.
Validation: 120 focused Core checks passed against a clean merged-source snapshot. Current File Browser edits are preserved in a separate stash for restoration.
Clear the pending switch when a successful viewer subscription reuses the
existing interactive viewer URL. Internal tabs share one iframe, so waiting
for another load event left the spinner running and toolbar controls disabled.
Preserve load and frame completion for new viewers and fallback transports.
Add regression coverage for viewer reuse, new URLs, fallback transports, and
superseded subscriptions, and document the completion contract.
Validation: 135 Browser regression tests passed in the working tree. Verified
four blank tabs and ten switches on localhost:32081, plus reload and opening
and closing a tab, while retaining the same viewer iframe and document.
Reduce Xpra startup delays by limiting the initial system D-Bus and CUPS waits to one second. Share the defaults across Browser launches and Desktop launches and restarts while preserving explicit environment overrides. Disable local shared-memory transport for the WebSocket viewers.
Add regression coverage for timeout defaults, inherited overrides, and transport arguments. Verified 10 focused tests and live Browser rendering and Desktop interaction on localhost:32081.
Fix trailing commas in six JSON examples while preserving all examples and thoroughness instructions. Rewrite 23 skill descriptions to fit the catalog preview, retaining existing triggers and adding explicit discovery phrases where needed.
Document the description preview contract and add regression checks for complete JSON examples, description lengths, and skill search. All four checks pass against the staged snapshot.
Align surface modal headers to a shared 48px height with centered controls,
borderless buttons, and separators. Use the shared lighter background for
Desktop and match its restart action to the Open Browser button style.
Toggle file tree folders from their names as well as their chevrons, and
align branch status messages with child filenames. Display a dash for
folder sizes without adding recursive scans or extra requests.
Update ownership documentation and cover folder-name toggling in the tree
regression test. Validation: two tree tests pass; modal geometry, Desktop
styling, and tree interactions were checked in the live UI.
Add independent, lazily loaded directory trees to Files and Editor in
canvas and modal modes. Reuse file actions and picker flows, normalize
entry paths, and preserve unsaved text when selecting existing tabs.
Unify the three surfaces with lighter panel backgrounds, aligned headers,
flat toolbar controls, and action-group separators. Compact the file list,
standardize folder and file icon alignment, and use a grey filter clear
icon while retaining the primary Open Browser button styling.
Scope Editor and Files cleanup to the owning host so canvas/modal handoffs
and mobile resizing cannot tear down the active panel. Update ownership
documentation and focused navigation, layout, and lifecycle checks.
Validation: 22 focused tests passed. Verified live at localhost:32081 in
desktop and mobile layouts, including light-theme palette consistency,
file selection, editing, preview, and canvas/modal handoffs.
Gate the connector skills root using current connection metadata so listing, search, loading, and recall stop exposing host skills after disconnect. Preserve cached paths and existing per-capability tool gates.
Move setup-a0-cli into the primary skills directory so connection guidance remains available offline. Move detailed host-browser instructions into the browser workflow skill to remove remote tool references from the default system prompt.
Validation: 110 targeted checks passed in a clean source snapshot; strengthened disconnected-prompt assertions passed. Verified real CLI attach and disconnect in the same chat at localhost:32081, plus native schema gating in the container framework runtime.
Cancel only the per-context cleanup task instead of terminating the named BrowserCleanup event loop. Concurrent resets share that thread, so one caller could otherwise stop another cleanup and block waiting for its drained tasks.
Verified with 12 focused browser lifecycle tests and 16 concurrent framework context cleanups. The existing cleanup timeout and shared browser profile ownership remain unchanged.
Describe host browser access as available through Launcher or A0 CLI while using runtime-neutral language for automatic selection, status, and setup guidance.
Align setup API errors, defaults, and Browser plugin DOX with the same terminology.
Expose Safari as an A0 CLI host-browser target and present structured setup guidance for Safari and Chromium-family browsers.
Route setup actions through the authenticated connector bridge and show only installed browsers reported by the connected CLI.
Move configurable tool and delegation guidance out of always-on and profile prompts so policy-filtered tool prompts remain the source of truth. Gate live Browser context by profile policy and add regression coverage across bundled profiles.
Only forward Alt-modified text from AltGraph or macOS Option input. Keep ordinary Windows and Linux Alt shortcuts from becoming literal characters, with focused regression coverage.
The private Browser Xvfb always started with the US XKB layout, so
non-US keyboards could not type their printed characters in the
interactive Browser window: German Mac users could not type "@" via
Option+L, and umlauts, brackets, and AltGr/Option symbols landed on
wrong keys or vanished.
Add keyboard_layout / keyboard_variant Browser settings (validated as
safe XKB tokens, empty keeps US behavior). Browser startup applies the
layout to the private display with setxkbmap and pins it on the Xpra
shadow server (--keyboard-sync=no, --keyboard-layout, --keyboard-variant)
so connecting clients cannot override the server layout. Layout changes
flow through browser_runtime_config and restart internal runtimes.
The fallback canvas input path also stopped discarding Alt/AltGr
combinations that produce printable characters, and the settings UI
offers free-text layout/variant fields linking to the official
xkeyboard-config list.
Prefer stable browser IDs in Browser Settings and translate an exact advertised legacy CDP endpoint before connector dispatch.
Preserve unmatched custom endpoints exactly and fail closed, with focused WebUI and runtime regressions.
Persist Browser tab ownership and URLs in the shared KVP store, migrate an existing Chromium session once, and restore tabs automatically for per-chat and shared scopes without showing Chromium's crash advisory.
Add composer-style microphone and arrow controls to the annotation dialog while preserving draft-versus-send voice behavior.
Keep dependency reconciliation, cache migration, and Chromium installation under the Browser hook's single setup lock. Remove the redundant nested installer lock from the Playwright helper.
Route every chat through one persistent Chromium, Xvfb, and Xpra runtime while keeping tab ownership and per-chat limits context-bound.
Share sign-ins across chats, adopt the first requesting legacy profile on upgrade, and close only the owning chat's tabs during reset or removal.
Keep separate and shared tab-strip modes as visibility choices and cover cross-context access, popups, screenshots, startup ownership, and cleanup.
Keep tab loading feedback stable and visible while the interactive Browser starts without waiting for a redundant screenshot.
Add DOM hover feedback, multi-page annotation batches, compact composer-style controls, and shared Whisper draft or send behavior.
Activate the selected Browser preset after the first Browser tool call so follow-up model turns use it.
Clear the temporary override at monologue end and preserve the main model as the safe fallback.
Render the existing Patchright page through an isolated, authenticated Xpra session with CDP screencast and snapshot fallbacks.
Keep Chromium out of fullscreen, synchronize native viewport resizing across canvas and modal handoffs, and remove Xpra decoration and shadow-cursor artifacts.
Move loading feedback into each Browser tab while reserving the footer for actual errors.
Run Chromium headful through Patchright on a private Xvfb display while keeping Agent Zero's page helpers in Patchright's isolated world.
Reconcile the pinned Patchright package and matching architecture-specific Chromium from Browser plugin hooks so fresh Docker images and self-updated installations converge on the same runtime.
Introduce the x-icon custom element and migrate first-party WebUI and bundled plugin markup while retaining legacy Material icon compatibility. Defer icon-font readiness until the splash-installed document is parsed so Firefox does not leave icons transparent. Centralize chat message collapse handling, avoid false Show More controls on short user messages, and align grouped-message pagination styling. Update DOX and add regression coverage for the icon and collapse behavior.
Refactor of messages.js to support lazy rendering.
Move chat rename functionality out of core and into a new _chat_naming plugin, and add a built-in _pin_to_top plugin for sidebar pinning. The chat-naming plugin includes API handlers, prompts, helper logic for selecting user messages and budgeted Utility Model calls, a python monologue_start extension, web UI (modal, store, config, sidebar action), and comprehensive tests. Removed the old core renaming extension and deprecated prompts/tests. Also added pin-to-top plugin files (API, helpers, webui store, tests/docs) and updated various AGENTS.md docs to reflect the new plugins and lifecycle clarifications. Minor UI/js tweak: reorder speak/copy buttons in browser tool handler and add a new webui message-window.js along with related webui/store/component updates and test adjustments.
Place the internal Browser proxy fields in a native disclosure and keep its styling borderless. Refresh the guide screenshot and cover the config markup.
Add project-scoped HTTP and SOCKS proxy settings for the internal Docker browser, including bypass and optional authentication. Pass them through Playwright's native proxy option, restart active Browser runtimes when they change, and update regression coverage and user documentation.
Treat remote text and terminal output as bounded control-plane data, with explicit continuation or spill metadata for larger content. Reject oversized inline browser and Computer Use artifacts before base64 expansion and direct bulk files to authenticated HTTP transfer paths.
Return WebUI navigation after the initial document commit and align the socket timeout with browser command deadlines.
Remove forced viewport nudges and reject cropped or mismatched screencast frames so tab changes and pointer movement do not stretch the viewport.
Skip redundant same-version reinstalls and stage updates before replacing extension files.
Show clear install progress, offload blocking work, and restart active browser runtimes safely.
Make model presets a single global collection and treat presets as reusable setups (main, utility, embedding). Persisted scope configs now store only a preset name (Default is always present and immutable); project-scoped preset definitions were removed and attempts to edit/reset project presets are rejected. Add embedding-model support throughout: include embedding slot in presets, surface embedding in the switcher and override APIs, and notify extensions when the effective embedding model changes. Implement rename/retire propagation to update plugin configs, saved chats, and live AgentContext objects when preset names change or presets are removed. Update CLI/integration commands to use an "inherit" action for returning to the scoped preset and to report the effective scoped-or-chat preset. Add startup migration/bootstrap to initialize presets from remote or bundled fallback and numerous docs/UI text updates to reflect the new preset model. Extra: refactor config resolution helpers and add safety checks (validation, atomic writes) when saving presets.
Preserve explicit endpoint case, accept host:port and HTTP discovery addresses in Browser settings, and keep live-runtime guidance independent of any fixed localhost port.
Reduce Browser Settings host-browser choices to automatic and advertised debug endpoints, with a validated Custom endpoint input and faster inventory refresh.
Update Browser docs and regressions to document the custom endpoint workflow and CLI websocket selection.
Add Browser Settings guidance for supported Chromium-family remote debugging pages, including Opera and explicit remote-debugging endpoint fallback.
Update BYOB docs and troubleshooting to clarify that browser inventory comes from the connected A0 CLI and requires reconnecting the CLI after authorizing a browser.
Poll connected A0 CLI host-browser metadata while Browser Settings is open so newly authorized endpoints appear without saving or reopening.
Extend Browser Settings labels and remote-debugging guidance for Brave, Opera, Vivaldi, and Chromium-family host browsers with regression coverage.