Commit Graph
10 Commits
Author SHA1 Message Date
linkliti ad02938ce9 feat(tools): drop agent prefix from tool log headlines
The subordinate, unknown, MCP, and generic fallback tool log headlines no longer repeat the agent name. The unknown tool inherits the prefix-free base heading and takes the class-level blank line used by sibling tools, MCP keeps the tool name visible as an argument row, parallel children without a resolvable dedicated tool log through the prefix-free fallback, and the input and text editor fallback headings drop the prefix too. Framework helper DOX and both plugin AGENTS files document the prefix-free fallback rows, and regression tests cover the named headings for method and no-method calls, the generic fallback rows, and source guards for the plugin fallbacks.

Validation: pytest tests/test_tool_heading_prefixes.py tests/test_text_editor_message_handler.py tests/test_parallel_tool.py
2026-10-21 23:37:32 +03: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 f4700b4256 Track direct subordinate execution with its own context task
Direct delegation awaited the child's monologue without assigning a task to
its separate context. Child chats therefore appeared idle while working and
could not be stopped independently through the normal context controls.

Run direct delegation through the child's existing AgentContext.run_task and
await its result. Propagate caller cancellation to the child, while treating
a child-only Stop as a recoverable error for the parent. Preserve inline
execution for legacy shared-context agents and existing parallel job ownership.

Add lifecycle coverage for direct and nested completion, failure, parent/child
Stop, intervention, and legacy execution. Update profile test doubles and the
tool's ownership documentation.

Validation: 121 focused checks passed; the nine lifecycle cases also passed
in the container framework runtime. Live UI checks verified Working/Paused
transitions, child reuse, completion, and parent recovery after child-only Stop.
2026-09-30 15:55:03 +02:00
Alessandro fc1582ca1e fix(delegation): preserve scoped subagent model presets
Copy a parent's chat model override only when a new subordinate resolves to
Default after project activation. Preserve non-default scoped presets and
existing child chat selections through the shared delegation path.

Add a 60-case regression matrix using real scoped configuration files and
project activation. Cover absent, default, custom and invalid presets,
project/profile precedence, named and raw overrides, and child continuation.
Update the delegation contract.

Validation: 139 focused tests passed locally; all 60 matrix cases passed in
the Docker framework runtime. The broader container async suite could not
run because pytest-asyncio is not installed.
2026-09-23 15:37:50 +02:00
Alessandro f653f61029 fix(delegation): honor names when continuing subordinates
Continuing call_subordinate with an existing context_id ignored a supplied name. Apply non-empty names to both the child context and sidebar label through the shared direct/parallel continuation path. Preserve existing names when omitted and leave legacy same-context parent names intact.

Update the tool contract and cover direct and parallel continuation after a failure, plus rename persistence across reloads. Verified with the focused subordinate/parallel tests and Docker framework checks.
2026-09-23 14:52:51 +02:00
Alessandro a304c7665f Unify subordinate lifecycle across parallel calls
Route direct and parallel call_subordinate execution through one reusable, persisted A1/A2 child-context lifecycle.

Keep failed children resumable with reset=false and cover sibling reuse, recursive numbering, persistence, and nested task ownership.
2026-08-19 09:30:50 +02:00
Alessandro b9153f718e Preserve subordinate agent profiles
Validate call_subordinate profile arguments against available agent profiles so missing profiles fail as repairable errors. Persist each agent's profile in saved chats and avoid flattening existing subordinate profiles during profile switches, settings refresh, or restart reload.
2026-06-17 13:07:22 +02:00
frdel d02dda3667 BIG PYTHON REFACTOR
Python scripts moved out of python/ folder to root to be unified with plugins

+ frontend extension around api calls
2026-03-05 17:28:11 +01:00
frdel b74d05d6c2 Docker + SSH, AgentConfig class 2024-07-05 22:58:16 +02:00
frdel be11dbbab6 prototype v0.2
free JSON format, dirty parsing, tool superclass, memory injection, new rate limiter, agent params
2024-06-26 22:33:13 +02:00