Commit Graph
22 Commits
Author SHA1 Message Date
Jan Tomášek 7dab0f7b6f Improve sandbox defaults and terminal sessions 2026-11-22 10:47:13 +01:00
Jan Tomášek c32314770c Build the slim v3 image and publish tagged multi-architecture previews 2026-11-19 17:49:23 +00:00
Jan Tomášek 0fa1a85261 Unify agent execution and file destinations 2026-11-19 16:50:34 +00:00
Alessandro Frau df506015a8 Merge branch 'ready' into v3
Keep the v3 browser and filesystem observer implementations. Restore secure Telegram project and agent-profile scopes on the v3 sandboxed transport, including migration, session ownership, and current authorization checks.
2026-11-19 15:53:46 +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
Jan Tomášek dadcbfa4d9 Reconstruct preserved sandbox WIP from sanitized source snapshot
Reconstructed against verified original base 93d1131ce1. Original local commits and index metadata were not present in the transfer.
2026-11-08 21:42:13 +01:00
DZH166 5fb00bd909 fix(code-execution): reject non-string code before shell dispatch 2026-11-03 00:29:20 +08:00
linkliti 8fbcbdbc00 refactor(tools): unify boolean argument coercion in helpers.tool
Centralize boolean argument coercion in helpers.tool and route the promoted and core tools through it. This removes the duplicated private coercion helpers, including one in the remote code execution tool, along with the repairable-error messages and prompt files that only the strict boolean validation used. Strict boolean argument validation gives way to the shared coercion, which maps common true/false strings and falls back to truthiness, so invalid reset and dedicated_context values stop returning repairable errors. Browser regression tests now import the real modules before installing their stubs.

Validation: pytest tests/test_tool_action_contracts.py tests/test_browser_agent_regressions.py
2026-10-21 19:04:33 +03:00
Alessandro 98f943b853 Keep parallel terminal jobs alive until their commands finish
Preserve the worker and its event-loop-owned terminal across output timeouts, publishing tool progress through the existing job result. Use parallel job IDs for await/cancel and reject session follow-ups that would create an unrelated worker.

Close parallel shells explicitly on completion or cancellation, including partial connections, and leave context cleanup to worker finally. Top-level persistent terminal behavior is unchanged. Verified with 117 focused tests, real isolated terminal and cancellation probes, and a live Venice background job completing after 22.465 seconds.
2026-09-06 21:01:11 +02:00
frdel 4ffcdf5246 Handle shell/SSH process exits as completion
Detect and treat terminated local/SSH/TTY shells as definitive command completion. Add is_terminated and get_exit_code helpers to LocalInteractiveSession, SSHInteractiveSession, and TTYSession; expand _is_closed_pty_error to recognize exited TTY processes. CodeExecution now reports a shell-exit prompt, recreates terminated sessions lazily before the next command, and returns immediately when a shell has exited. Docs and README updated to describe strict-mode/exit behavior, and tests were added/updated to cover the new termination detection and handling.
2026-07-20 17:04:05 +02:00
Alessandro 9837ff3432 Group multiline terminal commands
Execute multiline terminal input as one current-shell compound so intermediate prompts cannot complete queued work early. Preserve shell state and cover Bash and PowerShell grouping with regression tests.
2026-07-10 18:53:19 +02:00
Alessandro e05a285dcf Tune code execution timeouts
Raise bundled defaults and fallback timeout tuples for normal and output runtimes so builds, installs, servers, tests, and training jobs have room to stream or poll without premature timeout.

Document the long-running work behavior while keeping normal command execution bounded and directing extended work toward output polling.
2026-06-02 09:15:57 +02:00
Alessandro b52b4220d9 Revert "Add builtin ACP plugin"
This reverts commit 46112c9750.
2026-06-02 01:05:09 +02:00
Alessandro 46112c9750 Add builtin ACP plugin
Expose Agent Zero over the Agent Client Protocol as a builtin stdio plugin with session lifecycle support, streaming bridges, registry metadata, and editor workspace handling.

Add lazy dependency installation through the ACP plugin hook using the root requirements pin so self-updated instances can recover without a fresh Docker image.

Pin agent-client-protocol, add focused static coverage, and allow ACP sessions to override the per-context workdir for code execution and workdir prompts.
2026-06-01 02:40:28 +02:00
Alessandro daf95ec3ab Normalize tool contracts and slim prompt surface
Standardize multi-action tools around tool_args.action while keeping parser compatibility for older tool/args, tool_name:action, and method-shaped requests. This keeps new prompts clean without breaking agents that learned the previous dialect.

Move A0 connector remote execution/file tools into stable standard prompts, make remote targeting independent of the active chat context, and skill-gate beta computer-use remote so it no longer weighs down the always-on tool list.

Align text editor, scheduler, skills, office artifact, memory, notify, and browser prompts/tools around the canonical action contract. Add scheduler update/timezone handling, skills_tool read_file, text editor patch coverage, and fixes for memory_forget, behaviour_adjustment, and code execution progress warnings.

Reduce default prompt pressure by compacting browser and scheduler prompts into skill-backed manifests, shortening skill catalog descriptions, and pruning noisy framework knowledge. Remove obsolete connector prompt stubs and root tool-call knowledge examples.

Tests: conda run -n a0 pytest tests/test_a0_connector_prompt_gating.py tests/test_tool_action_contracts.py tests/test_task_scheduler_timezone.py tests/test_text_editor_context_patch.py tests/test_tool_request_normalization.py tests/test_office_document_store.py::test_odf_is_advertised_and_docx_remains_explicit_compatibility tests/test_office_document_store.py::test_document_artifact_accepts_method_alias_for_ods_create tests/test_skills_runtime.py tests/test_default_prompt_budget.py::test_a0_small_profile_removed_and_prompt_text_generic -q
2026-05-09 21:54:43 +02:00
Agent Zero Local eecbb5ba34 fix(code_execution): handle closed PTYs while reading output 2026-05-02 21:33:08 +00:00
Agent Zero Local a0f0c2e8d2 fix(code_execution): recover from closed PTY sessions
Detect closed or exited local TTY sessions before writing, convert invalid PTY write errors into retryable session failures, and reset/retry the terminal session once after send/read failures.
2026-05-02 21:32:12 +00:00
keyboardstaff 1bd5bc01d6 refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
frdel 6181ac9c20 refactor: mask secrets in code execution command output and increase truncation limit
- Import secrets helper module
- Increase initial command truncation from 200 to 250 characters
- Add secret masking to format_command_for_output using agent context's secrets manager
- Apply masking before final truncation to prevent secret exposure in logs
2026-03-22 16:57:51 +01:00
frdel a82312f524 cache clearing, code exec heading trim 2026-03-19 20:50:37 +01:00
frdel a7bfc7798b fix: OpenRouter header format, pipx install, code exec output truncation, and model config UI improvements
- Change X-OpenRouter-Categories from YAML list to comma-separated string
- Add pipx to base Python installation
- Truncate long lines in code execution output to 500 chars (250 from each end) before prompt detection
- Reorder model config UI sections and simplify plugin config button handler
- Remove border/padding from model summary grid and adjust mobile responsive styles
2026-03-19 16:28:33 +01:00
frdel 6515626242 refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00