done := make(chan error)
go func() {
done <- daemonServe(ctx, listener, bot, func(notify func(Event)) (*TurnLoop, error) {
- return newTurnLoop(agent, memory, client, clock.Now, notify)
+ return newTurnLoop(agent, memory, newTestSubagents(t), client, clock.Now, notify)
})
}()