feat(agent): expand event bus coverage

This commit is contained in:
Hoshina
2026-03-20 15:29:52 +08:00
parent 50cc7100ce
commit 57cde73b36
6 changed files with 730 additions and 8 deletions
+3
View File
@@ -96,6 +96,9 @@ func (t *SpawnTool) execute(ctx context.Context, args map[string]any, cb AsyncCa
}
// Pass callback to manager for async completion notification
// TODO(eventbus): when background subagents are migrated onto the
// agent package's runTurn/sub-turn tree, emit SubTurnSpawn here and move
// lifecycle events out of the legacy SubagentManager path.
result, err := t.manager.Spawn(ctx, task, label, agentID, channel, chatID, cb)
if err != nil {
return ErrorResult(fmt.Sprintf("failed to spawn subagent: %v", err))