mirror of
https://github.com/patriceckhart/zot.git
synced 2026-07-02 08:09:53 +02:00
- Sub-agents are long-lived daemons that keep running on the inbox after the initial task, so agent.Wait() never unblocks for them. Replaced the Wait-based watcher with a per-turn OnTurnEnd callback: Agent.SetOnTurnEnd installs it under the agent mutex, the runner's stdout decoder fires it on every turn_end event from the child. - trackSwarmAgent now subscribes via SetOnTurnEnd. First turn_end per tracked sub-agent marks it done; when every entry is done, zot flushes one [auto-swarm update] turn via SubmitOrQueue summarising each agent's status / task / transcript tail (and the turn error if any) so the main agent can recap the collective outcome in chat. - System addendum extended to tell the model to expect that update message and treat it as observed state, not a new user request. - README: /settings row in the slash-commands table, new /settings subsection covering both toggles, auto-swarm paragraph appended to the /swarm subsection, /settings listed as a read-only mid-turn command. |
||
|---|---|---|
| .. | ||
| bash.go | ||
| bash_unix.go | ||
| bash_windows.go | ||
| edit.go | ||
| read.go | ||
| sandbox.go | ||
| sandbox_test.go | ||
| swarm_spawn.go | ||
| telegram_send.go | ||
| tools_test.go | ||
| write.go | ||