mirror of
https://github.com/patriceckhart/zot.git
synced 2026-06-27 05:46:34 +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. |
||
|---|---|---|
| .. | ||
| extensions | ||
| modes | ||
| tools | ||
| args.go | ||
| botcmd.go | ||
| botcmd_unix.go | ||
| botcmd_windows.go | ||
| build.go | ||
| build_test.go | ||
| changelog.go | ||
| cli.go | ||
| config.go | ||
| extcmd.go | ||
| modelsync.go | ||
| modelsync_test.go | ||
| rpc.go | ||
| settings_store.go | ||
| swarm_agent.go | ||
| swarm_agent_test.go | ||
| systemprompt.go | ||
| update.go | ||
| updatecmd.go | ||