Add GetBus to AgentLoop and fix reaction tool infinite loop. v4.149 Balancing Makefile across components.

This commit is contained in:
stevef 2026-04-20 11:57:12 +02:00
parent 337dfe960a
commit 01d8a1b691

View file

@ -274,6 +274,10 @@ func (al *AgentLoop) GetConfigPath() string {
return al.configPath return al.configPath
} }
func (al *AgentLoop) GetBus() *bus.MessageBus {
return al.bus
}
// Close releases resources held by agent session stores. Call after Stop. // Close releases resources held by agent session stores. Call after Stop.
func (al *AgentLoop) Close() { func (al *AgentLoop) Close() {
mcpManager := al.mcp.takeManager() mcpManager := al.mcp.takeManager()