Commit Graph
8 Commits
Author SHA1 Message Date
linkliti 7216b8641b fix(model-config): allow agent profile switch while chat runs
Remove the running-context guard from the agent profile endpoint and the switcher so a profile can be changed during an active monologue, matching chat model-preset overrides. Enable the switcher dropdown items while running by dropping the running gate from their disabled state; only the saving gate remains. The new profile applies to subsequent model turns and intentionally forfeits the prompt cache. Subordinate agents keep their own profile configs.

Validation: 73 subagent profile tests passed including a new endpoint test that switches the profile while a real task is running; static regression tests guard against reintroducing the running guard in the endpoint, switcher mixin, and dropdown markup; node --check passed on the switcher mixin.
2026-10-13 18:06:47 +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 4f8ae9cc2c Keep hidden utility profile out of new chats
Normalize legacy global settings that still select the internal default profile to Agent 0. This keeps fresh chats aligned with the visible profile catalog while preserving existing chat selections.
2026-08-12 14:34:15 +02:00
Alessandro 9e5fd188e2 Finish scoped Agent Editor profile workflows
Add per-scope availability, duplication, active-profile status, and inline project selection while keeping the profile switcher synchronized with runtime state.

Reconcile unavailable profiles at explicit disable, deletion, project-transition, and context-creation boundaries; polish validation, prompt layout, deletion, and completion states; and extend focused backend and WebUI coverage.
2026-08-12 14:34:15 +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