Commit Graph
6 Commits
Author SHA1 Message Date
Alessandro 5a1698ce62 Simplify Browser quick settings and expand browser configuration
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.
2026-10-08 01:14:08 +02:00
Alessandro 50db781a4d Reduce browser startup and rendering overhead
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.
2026-09-23 23:38:37 +02:00
Alessandro b68306356c Bound browser evaluate with recoverable JavaScript cancellation
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.
2026-09-14 16:38:01 +02:00
Alessandro 46ab911a3e Reject browser evaluate calls without a script
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.
2026-09-12 20:12:37 +02:00
linkliti 05b818b9de Beautify browser multi JSON arrays in WebUI display
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.
2026-09-11 10:47:52 +03:00
linkliti 60c6a7fed2 Keep browser runtime state out of the system prompt
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.
2026-09-10 15:20:37 +03:00