1117 Commits
Author SHA1 Message Date
Alessandro Frau ed47bc22d7 Suppress success toasts for WebUI slash commands
Skip generic command confirmations, success-level script effects, and the transcript copy confirmation. Keep error and informational feedback visible in the composer.
2026-12-06 18:35:47 +01:00
Alessandro Frau c4b1448dda Keep the Ace editor out of Alpine reactivity
The shared Files command bar places $store.editor in x-data. Alpine walks
x-data objects for interceptors without cycle detection, and the live Ace
instance links back to itself through its renderer and session, so the
WebUI overflowed the stack whenever the Editor restored a source tab at
page load.

Mark the instance raw so Alpine neither walks nor proxies it, which also
stops every Ace call through the store from running through a reactive
proxy.
2026-12-05 15:02:10 +01:00
Alessandro dc27770f9e Show host execution output and readable delegation steps
Connected-host code execution now writes its result into the step log, so
the expanded step shows what ran. ACP delegation prints each tool call once
it finishes, with its final one-line title, and separates the answer. The
cwd argument also expands ~.
2026-12-05 06:56:43 +01:00
Alessandro Frau b41eeb8e50 Document coding agents and ACP editors
Add a user guide for delegating to coding agents and connecting editors through
a0 acp, link it from the README and docs index, correct the Launcher Host access
defaults, and teach the a0-development skill where ACP setup and delegation
live.
2026-12-05 06:13:07 +01:00
Alessandro Frau 6469203bc0 Find ACP agents installed through shell rc files
Hosts started from a GUI, such as A0 Launcher, miss PATH entries that installers
add to shell rc files (OpenCode's ~/.opencode/bin), so missing programs are
looked up again with the user's login-shell PATH. The skill also maps the
Cursor to Grok Build rebrand onto the cursor and grok agents.
2026-12-05 06:09:35 +01:00
Alessandro Frau 604dac809b Give every ACP agent its full default permissions
Claude Code now runs commands like Codex, Pi and the others, so it can verify
its own work; edits-only stays available on request. The skill points users
without a connected host to A0 Launcher or a0, which now enable code execution
by default, and answers keep paragraph breaks around tool calls.
2026-12-05 06:02:12 +01:00
Alessandro Frau e9f8264cc5 Delegate to Pi and GitHub Copilot over ACP
Pi runs through pi-acp with the user's own pi; Copilot through its own
copilot --acp. Built-in entries list the programs their adapters launch, so a
missing pi or claude is reported instead of failing inside the adapter.
2026-12-05 05:50:31 +01:00
Alessandro Frau f92b7df7ea Allow concurrent delegations to the same ACP agent 2026-12-05 05:26:04 +01:00
Alessandro Frau 034e095f7c Delegate to Antigravity instead of Gemini CLI
Antigravity's own CLI serves ACP through agy acp and reuses the sign-in cached
by an interactive agy session.
2026-12-05 05:21:07 +01:00
Alessandro Frau 386b47272b Delegate to ACP coding agents through a code-execution skill
Retire the Orchestrator plugin. The acp-agents skill includes a standard-library
ACP client into a code_execution_tool Python call, so Claude Code (through
claude-agent-acp and the user's own claude), Codex, Gemini CLI, Cursor, OpenCode
and Grok run on the A0 CLI host or in the container with their own sign-in.
2026-12-05 05:14:51 +01:00
Alessandro Frau 4117229880 Relay editor MCP servers through the A0 CLI
ACP editors send their stdio MCP servers with each session. They now run on
the editor's computer, behind the existing Host code execution permission, and
their tools join that chat's MCP config.

- helpers/mcp_handler: MCPConfig.get_for_agent becomes @extensible, the only
  Core change.
- _a0_connector/helpers/mcp_relay: an end hook overlays relay servers for
  clients subscribed to the context; configured servers win name clashes and
  overlays are cached per context. The MCP client speaks JSON-RPC over
  connector_exec_op runtime="process" (start/write/long-polled read/stop), so
  only names advertised in the hello can start and command lines and env stay
  on the host.
- ws_connector: a connector-started run's completion now waits for each
  stream loop to flush the run's log, so ACP turns no longer end before the
  final answer; the idle fallback skips those runs to avoid a second
  completion.
- _a0_acp: the setting reads "Host code execution" and mentions editor MCP
  servers; README covers model presets and the relay.
2026-12-05 04:43:26 +01:00
Alessandro Frau d8f36648fc Trim the ACP plugin to the connector transport
The container transport targeted the legacy usr/plugins/a0_acp module that
startup migration removes, so its hidden settings and context keys go. The
set_model and set_config_option actions stored values nothing read; A0 CLI
now exposes mode and agent profile as ACP session config options instead.
Configure keeps a session's saved mode unless a mode is sent, so reopening
a session no longer resets plan or act to default.
2026-12-05 04:12:20 +01:00
Alessandro Frau f81b4148ea Show scheduler save errors in frontend toasts
Render scheduler save failures as plain text in the shared frontend error toast. Place the scheduler error group above the editor actions so users can correct the draft and retry without dismissing the error.

Clear the error on editor reset and cover rejected saves, escaped parser text, and responses that arrive after cancellation.
2026-12-05 02:55:49 +01:00
Alessandro Frau 618c982678 Delegate to Claude Code as an official harness
Run Claude Code through a new a0-harness helper that the orchestrator skill copies into the workspace. The helper checks sign-in through Claude Code's own status command, removes model-provider API keys in subscription mode, refuses to run on a billing-mode mismatch, allows one delegation at a time by default, and stops on a rejected usage limit without retrying.

The skill now opens with account rules: Agent Zero never signs in, never touches credential stores, never calls a model vendor itself, and never switches accounts. The Claude Code adapter no longer inspects or deletes the credentials file, and the default permission mode is acceptEdits instead of bypassPermissions. Other adapters are unchanged.

With consent, the helper registers as Claude Code's status line command and caches the 5-hour and 7-day plan windows. The Welcome account card shows them as a reading reported by Claude Code. The README gains a quick start.

27 orchestrator tests pass, including 13 helper tests against a fake claude binary. A real delegation succeeded against Claude Code 2.1.337 in API-key mode. The host route through the Launcher gateway, a run on a Claude plan, and the rendered Welcome card are not yet verified.
2026-12-05 02:47:56 +01:00
Alessandro Frau 8c7dfb6519 Keep the scheduler running with invalid saved cron
Validate schedules with the scheduler’s cron parser before saving. Skip invalid saved schedules during automatic dispatch and surface the error in Task Details so the schedule can be repaired.

Cover JSON and YAML persistence, sidebar loading, rejected writes, and dispatch of a valid task alongside an invalid one.
2026-12-05 02:39:40 +01:00
Alessandro Frau 5d65665249 chore(oauth): bump Codex client version to 0.174.0
Update the bundled Codex OAuth client version from 0.166.0 to 0.174.0 for upstream request headers and model catalog discovery. Document the new default and preserve precedence for saved settings.

Verified the npm release, ran 336 OAuth and plugin scan tests, and confirmed the local runtime resolves 0.174.0.
2026-12-05 02:11:42 +01:00
Alessandro Frau 4a2d920ff2 Simplify saved tool cards and result previews
Use the compact editor, memory recall, and notification layouts for
saved calls. Summarize default skill listings and configured vision
analysis, and keep skill instructions and reference bodies in
View details.

Preserve recorded headings, Action fields, and full recorded results
and arguments. Verify both saved and current card formats with
WebUI regression coverage.
2026-12-03 19:36:16 +01:00
Alessandro Frau a963cabec1 Simplify Browser tool cards
Show the action, relevant URL, and screenshot preview in the chat card.
Keep recorded arguments, results, and tab IDs in View details. Use the
recorded IDs to open the matching tab and omit them from preview labels.

Record failure status before log truncation so cards can show a short
notice. Keep the internal marker out of View details and cover
truncated results and tab targeting in regression tests.
2026-12-03 02:38:36 +01:00
Alessandro Frau c6b4ebc532 Support closed Shadow DOM in the Container browser
Discover closed roots over CDP with a bounded probe and keep slot and selector behavior consistent across capture paths.
2026-12-03 02:35:04 +01:00
Alessandro Frau c28964d83b Show a warning toast at the browser tab limit
When opening a tab or window hits the limit, prompt users to close tabs or raise Agent tab limit in Browser settings. Cover the toast and clear footer with a regression test.
2026-12-02 13:56:16 +01:00
Alessandro Frau 58df763237 Add hosted providers to web search
Add Brave Search, Perplexity Fast, and DeepSeek Search to Search Engine settings. Keep SearXNG as the default and route every provider through the shared CLI and existing JSON contract. Preserve the old SearXNG command as an alias.

Store provider keys through the framework's dotenv helper and cover provider routing, response normalization, and status checks with regression tests.
2026-12-01 20:24:09 +01:00
Jan Tomášek a5d58a24ec Add AI Accounts shortcut to model config and preset editor 2026-12-01 17:28:51 +00:00
Jan Tomášek 3b35468806 Let Other OpenAI compatible endpoints run without an API key
The provider is routed through LiteLLM's openai provider, whose SDK
refuses keyless requests, and the fallback key lookup sent the stored
OpenAI key to the custom endpoint. Key-optional providers remapped to
openai now send a placeholder key when they have none of their own;
other self-hosted targets and same-vendor remaps are unchanged.
2026-12-01 08:57:52 +00:00
Jan Tomášek b54ae9c2c5 Hide empty Vision sidecar advanced settings in preset editor
With Main vision disabled, the Main card also showed the Vision sidecar's
Advanced Settings with its own API base URL field. A URL typed there went
into the empty Vision slot, which saving discards, so the Main endpoint
appeared not to save. Show that section only after a Vision provider is
chosen and label it Vision Advanced Settings.
2026-12-01 08:57:52 +00:00
Alessandro Frau ef2dede77f Extend migration utility scope and previews
Detect populated Hermes boards and link to the Welcome Kanban Plugin Hub card when the plugin is missing.

Reuse the reviewed snapshots to import each board into its own Agent Zero project. Preserve custom lists and worker profile overrides through Welcome Kanban and reuse the same import receipts on retry.
2026-11-30 19:04:15 +01:00
Alessandro Frau 9244b25e60 Share the File Browser toolbar with Editor
Reuse the Files toolbar for Open, New file, Download, the file tree, and File Browser Settings. Give Editor a dedicated New file picker and save pending edits before downloading.

Use the shared tooltip cleanup when closing file pickers and cover the new picker workflow with regression tests.
2026-11-30 15:13:22 +01:00
Alessandro Frau 1f0c4f85eb Keep viewer clipboard gestures on the focused canvas
Route layout-mismatched shortcuts through the existing noVNC clipboard bridge. Let the host deliver paste and restore held modifiers after translated shortcuts so the next keystroke reaches the guest correctly.
2026-11-29 22:37:15 +01:00
Alessandro Frau ac64f30f54 Merge pull request #2098 from linkliti/fix/agent-zero-webui-v2
fix: WebUI fixes 2
2026-11-29 22:15:18 +01:00
Alessandro Frau f289579735 Simplify tool output in chat cards
Show concise results for file edits, skills, memory, browser, vision,
behavior adjustments, and notifications. Keep original headings and
Action fields visible and put verbose recorded output in View details.

Use one excerpt rule across MCP servers and show canonical names for
missing tools. Test file count updates and access to full MCP details.
2026-11-29 16:42:37 +01:00
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 5254d24c8f fix(webui): match viewer shortcut chords across keyboard layouts
Browser viewer shortcuts failed on non-Latin layouts: the iframe viewer forwards raw chords to the remote display, so Ctrl+ф reached the remote Chromium as a meaningless chord, while matching-layout chords like Ctrl+A in the remote address bar stayed out of reach for the panel handlers behind the iframe boundary. The viewer now translates layout-mismatched chord keys to display keysyms using the physical key code with Control and Shift modifiers, skips AltGr combinations so composed letters reach the display untouched, and lets matching-layout chords pass through natively so remote browser chrome keeps its shortcuts; panel-side chord handlers match through the shared webui/js/shortcut-keys.js helper, covering non-Latin layouts and AZERTY printed keys.

Validation: node --test tests/test_shortcut_keys.mjs tests/test_surface_keyboard.mjs tests/test_canvas_modes.mjs tests/test_canvas_resize.mjs tests/test_desktop_lifecycle.mjs (25 passed); pytest tests/test_browser_shortcut_chords_static.py tests/test_file_browser_navigation.py -q (25 passed); node --check changed js; git diff --check
2026-11-28 16:14:20 +03:00
linkliti 103ad72529 fix(webui): send canvas keyboard over vnc and unstick touch hover
The mobile canvas keyboard only reached the remote page because viewer-input events end at the automation layer, so remote browser chrome like the address bar could not be typed into. The interactive viewer now exposes its VNC session for keyboard delivery at display level, which the surface keyboard prefers, keeping the authenticated viewer-input event as fallback. Canvas rail buttons, icon buttons and tabs also shared one rule between :hover and .is-active, and touch keeps matching :hover after a tap, so the last-tapped control kept its highlight after the keyboard closed. Hover styling now lives behind @media (hover: hover) while active-state styling stays unguarded, so only the real keyboard-open state highlights on touch.

Validation: node --test tests/test_surface_keyboard.mjs tests/test_canvas_modes.mjs tests/test_canvas_resize.mjs tests/test_desktop_lifecycle.mjs (24 passed); pytest tests/test_browser_surface_keyboard_static.py (3 passed); git diff --check
2026-11-28 15:24:54 +03:00
linkliti a799990186 refactor(webui): keep the composer plain text without inline code blocks
The composer previously built inline code-block elements from typed fences, which detached edits from the native undo stack and conflicted with the full-screen input editor. The composer is now a native textarea: typing, paste, and undo are the browser's own, with no paste interception, DOM caret walkers, or code-block machinery. Drafts, history navigation, progress placeholders, and attachment image paste are unchanged, and the one-row textarea auto-grows through reset-then-measure sizing capped by its CSS maximum height.

Validation: node --check webui/components/chat/input/input-store.js webui/js/scroller.js; pytest tests/test_chat_input_composer_edits.py tests/test_welcome_composer_static.py tests/test_chat_input_drafts.py tests/test_chat_loading_refresh.py (22 passed)
2026-11-28 13:35:54 +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
linkliti e4b79fb5c5 feat(tools): expose tool_step_description hook for streamed step text
The response_stream log extension hardcoded one tool name to build the step label beside a streamed call. The label now comes from build_step_description, which seeds the generic text from the humanized tool name (underscores as spaces) and dispatches a display-only tool_step_description hook plugins rewrite, with the compact serialized args length appended centrally after the chain so argument streaming stays visible.

Validation: pytest 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
linkliti ecf423a940 fix(webui): add mobile canvas keyboard for browser and desktop
Mobile browser and tablet users could not summon an on-screen keyboard while using the Browser and Desktop VNC canvas tabs. Add a mobile user-agent-gated toolbar control with shared soft-input handling, route Browser text and key input through its authenticated viewer channel, and dispatch Desktop input to the embedded noVNC canvas.

Validation: node --test tests/test_surface_keyboard.mjs tests/test_canvas_modes.mjs tests/test_desktop_lifecycle.mjs (17 passed); node --check plugins/_browser/webui/browser-store.js plugins/_desktop/webui/desktop-store.js; git diff --cached --check
2026-11-28 13:35:54 +03:00
linkliti bd31c7a734 feat(webui): add composer more-menu extension point
Bundled _goal and _skills injected their composer menu buttons through document-wide MutationObserver scans. The menu now ends with a chat-input-more-menu extension point that plugins fill declaratively, and both built-in entries load through it, deleting both observers.

Validation: pytest tests/test_webui_extension_surfaces.py (50 passed); pytest plugins/_goal/tests/test_goal_plugin.py (13 passed)
2026-11-28 13:35:53 +03:00
linkliti 82fea7349e feat(context-window): split protocol and extras usage rows
Protocol and prompt extras were merged into one Extras row, hiding how much of the window the protocol section consumes. Protocol is now its own breakdown row with the cached bucket count reconciled and regressions updated.

Validation: pytest plugins/_context_window/tests/test_context_window.py (20 passed)
2026-11-28 13:35:53 +03:00
linkliti 6d6fefdced fix(editor): keep tool-result tab in sync by stored file id
After a tool result refreshed on disk, the editor re-opened the matched document by its path, and paths outside the active project fail re-validation, so the tab kept showing the stale content. Sync now resolves the matching open tab and reopens it by stored file id, which the session API accepts without path validation, so refreshed tool results land in the open tab again.

Validation: pytest tests/test_editor_files.py -q (2 passed)
2026-11-28 13:35:53 +03:00
linkliti a4beae645e fix(webui): let settings, secrets and editor textareas resize
The shared settings stylesheet forces resize: none on every textarea and animates all properties, so the Global LiteLLM parameters and model config Additional parameters fields, the secrets and variables fields, and the agent editor and project edit forms had no vertical grip and dragging fought the transition. The affected textareas carry the shared resizable-textarea class, which re-enables the vertical grip and drops the all-properties transition so dragging follows the pointer.

Validation: pytest tests/test_settings_resizable_textareas.py tests/test_projects_editor_webui.py (4 passed); tests/test_agent_editor_webui.py (8 passed, tooltip failure pre-exists on the clean tree, proven by stash run)
2026-11-28 13:35:53 +03:00
linkliti 56644afbbf fix(ui): show retry notices for recovered model turns as utility rows
Recovered turns showed no hint that the reply was kept as thoughts and retried, because earlier notices had been silenced and the new non-action prose branch logged none. The notices return as utility rows following the Show utility messages preference and carry the warning message id so they stay attached to their history warning. Both plain-text rows share one wording adapted from the pre-silence fallback prompt, following the surviving fw.msg_reasoning_only_response.md pattern and the recovery-notice sync contract that keeps the core and plugin rows identical.

Validation: pytest tests/test_message_loop_result.py plugins/_context_doctor/tests/test_context_doctor.py tests/test_leaked_tool_call_integration.py tests/test_unusable_response_loop.py tests/test_plain_response_logging.py tests/test_responses_architecture.py tests/test_prompt_catalogs.py (7 failed, 327 passed in 9.28s; the failures reproduce identically on the base commit)
2026-11-28 13:35:53 +03:00
linkliti b2ce88c65d fix(browser): stop the settings globe icon from flashing
Browser Settings polls connected host-browser inventory every second and every poll set hostBrowserStatusLoading true, swapping the status icon between the spinner and the idle globe once per poll. The store reserves the loading flag for the first load with no status yet and tracks later polls with a refreshing flag that only guards re-entry, so background refreshes leave the idle globe in place.

Validation: pytest tests/test_browser_config_status_refresh.py -q (1 passed); pytest tests/test_browser_agent_regressions.py tests/test_browser_config_status_refresh.py plugins/_browser/tests/test_browser_tool_ui.py -q (148 passed, 1 skipped); node --check plugins/_browser/webui/browser-config-store.js
2026-11-27 21:17:08 +03:00
Alessandro Frau f7e78569d5 Restore sandbox group access on upgraded installs
Legacy permissions on the common sandbox_data directory could stop new
guests from reaching their workspaces. Repair traversal for the exchange
group and create new workspace parents with the guest group and mode 0710,
including on setgid Linux bind mounts.

Convert recognized legacy ACLs inside the built-in /shared exchange so
new guests can read and update retained files. Process children before
their parent so an interrupted migration can resume. Preserve existing
private workspace permissions and custom host access rules.

Verified with 119 passing tests on an ext4 Docker bind mount.
2026-11-26 16:55:16 +01:00
Alessandro Frau 10224ff8a8 Remove Copy from routine notification toasts
Suppress Copy on Disconnected, other status notices, and validation prompts while preserving full-text copying for diagnostic warnings and errors.

Carry the Copy preference through local toasts and backend notification sync. Cover disconnect and validation behavior at desktop and mobile widths.
2026-11-25 18:49:46 +01:00
Alessandro Frau a353c88cbd Move four bundled skills into on-demand references
Move Browser extension and form workflows into browser-automation.
Move A0 CLI setup and agent profile creation into a0-development.

Route searches for the former skill names to their parent skills.
Update the Browser and connector handoffs, and verify discovery and
reference reads in regression tests.

Reduce the bundled catalog from 22 to 18 entries and save 85 tokens
in the measured skill catalog prompt.
2026-11-25 18:41:44 +01:00
Alessandro Frau b1f02a5e3d Ship ripgrep in the coding sandbox
Include ripgrep in built-in sandbox image revision 4 so repository searches find untracked source and tests while respecting ignore rules. New sandboxes use the updated base, and existing guests retain their pinned digest.

Update the text editor hint to use rg for discovery, fall back to git grep when needed, and read matching lines on the same destination.
2026-11-24 23:33:00 +01:00
Alessandro Frau d292bf3c76 Register A2A Chat from its skill
Declare a2a_chat in the a2a-chat skill and bind the existing handler after the chat loads it. Remove the standalone tool file and its always-on prompt.

Preserve current and legacy Tool Access IDs, the peer protocol, and conversation reuse. Cover skill loading and access checks in the A2A regression tests.
2026-11-24 22:57:09 +01:00
Alessandro Frau f4678b6336 Register Host Computer Use from its skill
Declare computer_use_remote in host-computer-use and bind the existing handler after the chat loads the skill and its routed connector reports ready. Remove the standalone tool file and the always-on prompt.

Keep whole-tool and per-action Tool Access IDs in the catalog, native declarations, and dispatch. Preserve the connector protocol, platform permissions, and chat-scoped session lifecycle.
2026-11-24 22:51:54 +01:00
Alessandro Frau fd3da8944e Register Scheduler from its skill
Declare the scheduler callable in the existing scheduled-tasks skill and register its handler on demand. Remove the standalone tool entry point and prompt while retaining the scheduling backend.

Use whole-tool Tool Access and keep previously saved action denials effective as whole-tool blocks. Verify an allowed task read and a denied run on the live instance.
2026-11-24 22:35:39 +01:00
Alessandro Frau 6f37a265cb Clarify legacy Document Query Tool Access
Show default-block profiles how to allow the bundled Document Query callable by its plugin ID. Explain why the retired local ID still applies to saved denials.
2026-11-24 22:24:13 +01:00