17 Commits
Author SHA1 Message Date
linkliti 9cb29453fa fix(tools): restore ellipsis on refined streamed step labels
The streamed step labels refactor dropped the trailing ellipsis on four extension labels, so the browser evaluate, text editor, parallel and call_subordinate steps read as bare phrases while the default and code execution labels kept their dots. Each extension owns its full label text and appends the ellipsis itself, matching how the default and code execution labels are written, while the argument length counter stays centrally appended. The browser extension now also labels its long multi and cdp actions and names the tool in every label, so Evaluating alone no longer hides which tool runs.

Validation: pytest tests/test_tool_step_description.py tests/test_plugin_tool_step_descriptions.py tests/test_plain_response_logging.py -q (86 passed); git diff --check
2026-11-28 20:07:35 +03:00
linkliti b850a0a094 feat(tools): let bundled tool plugins supply streamed step labels
Per-action streamed labels now cover only the calls whose arguments take real printing time: code execution, text editor, browser evaluate, and call_subordinate with its requested profile. Labels reuse the owning tool classes' verb maps, and the parallel tool names the first of its calls and the remaining count.

Validation: pytest tests/test_plugin_tool_step_descriptions.py (52 passed), tests/test_tool_step_description.py (14 passed), tests/test_plain_response_logging.py (18 passed), tests/test_response_stream_cadence.py (3 passed)
2026-11-28 13:35:54 +03:00
Alessandro Frau 750636c4c4 Honor Browser denials on scoped skill overrides
Apply saved Browser whole-tool and per-action denials to scoped skills by logical name. Check effective visibility before catalog activation, including when the chat already contains the skill instructions.

Keep discovery path-based and document how to repair or remove a tool override that fails to import. Cover override recovery, catalog activation, and Tool Access with focused regression tests.
2026-11-24 22:22:25 +01:00
Alessandro Frau 4c35025a89 Register Browser from its skill
Declare the Browser callable in the browser-automation skill and bind it through shared skill registration. Remove the standalone tool entry point and prompt while keeping the Browser backend and native parameters.

Preserve saved whole-tool and per-action Tool Access denials in the Browser plugin. Verify on-demand discovery and host dispatch with live Chromium and focused regression tests.
2026-11-24 21:51:49 +01:00
Alessandro Frau 7ac5e39be9 Preserve saved Browser Tool Access denials
Honor existing project and profile rules after Browser moves to on-demand skill discovery. A saved denial of the tool or any former action blocks the callable and hides the Browser skills in that scope, including for chats that already loaded the skill.

Share the policy decision between the plugin skill-root extension and the callable gate. Cover saved rules in discovery, prompt and schema rendering, and direct dispatch.
2026-11-24 19:51:50 +01:00
Alessandro Frau 2cd57c1c2c Make Browser a skill
Use the existing Browser implementation for Container and Host Chromium. Let the Browser plugin defer discovery and access to the loaded browser-automation skill and its current visibility policy.

Remove Browser-specific action policy and schema projection. Reuse generic allowed-action lists within each Responses build, and align Browser guidance and regression coverage with the skill gate.
2026-11-24 17:11:32 +01:00
Alessandro Frau e225558401 Remove automatic Browser context injection
Read open tabs and page content only on explicit Browser requests.
This keeps unrelated model turns from querying Chromium and carrying
the last page into their prompts.

Update the Browser guidance and verify that prompt assembly leaves
the Browser runtime idle.
2026-11-23 20:25:44 +01:00
Alessandro Frau 9469543f5e Run the shared guest Chromium over its private DevTools pipe
Launch Chromium against the existing guest profile and keep native window restoration, scoped handles, the private viewer and lazy startup. Follow iframe history through document readiness, authenticate proxies before restoring tabs and finish bounded shutdown before reopening the profile.

Adopt the installed guest browser offline or install Debian Chromium on first use. Keep interrupted setup retryable and retain the scoped outer SDK cleanup on source upgrades. Exercise the pipe, DOM isolation, provisioning and migration with disposable fixtures.
2026-11-22 12:16:36 +01:00
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00
Alessandro 0e3d267f79 feat: add per-action permissions for bundled tools
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.
2026-10-27 19:06:13 +01: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
Alessandro 3400beccac Hide disabled capabilities from system prompts
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.
2026-08-31 01:55:40 +02:00
Alessandro a0eefe19bd Honor configured Browser model preset
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.
2026-08-16 15:21:52 +02:00
Alessandro 005b366b51 Add interactive internal Browser viewport
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.
2026-08-16 12:58:17 +02:00
Alessandro e2f43a3fb8 Harden internal Browser against bot detection
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.
2026-08-13 12:34:04 +02:00
Alessandro 8b921a8ded Move Browser Playwright cache to tmp
Use /a0/tmp/playwright as the Browser plugin Chromium cache and Docker install target while preserving full Chromium installs.

Add startup migration cleanup for retired usr Playwright caches, update Browser status/runtime references and docs, and cover migration behavior with focused regressions.
2026-05-07 18:43:24 +02:00
Alessandro 983d431a5e browser: replace browser-use agent with native browser
Introduce the new built-in Browser plugin for Agent Zero, replacing the legacy
browser-use-based browser agent with a direct Playwright-powered browser tool,
live WebUI viewer, browser session controls, status APIs, configuration, and
extension-management support.

Add browser-specific modal behavior so the browser can run as a floating,
resizable, no-backdrop window, including modal focus, toggle, and idempotent
open helpers for richer WebUI surfaces.

Remove the old `_browser_agent` core plugin and the `browser-use` dependency,
then clean up stale browser-model wiring and references across agent code,
model configuration docs, setup guides, troubleshooting docs, skills, and
Agent Zero knowledge.

Update regression and WebUI extension-surface coverage for the new browser
architecture and modal behavior.

The legacy browser-use implementation has been extracted from core so it can
continue separately as a community plugin published through the A0 Plugin Index for any user or professional that were relying on it for workflow.
2026-04-24 15:43:52 +02:00