Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(agent): skip empty fallback outbound for non-cli channels
Alexander Mingesc4bee640b838
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.pyindex 4850f9c0f..336baec20 100644--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@ -273,9 +273,15 @@ class AgentLoop:)try:response = await self._process_message(msg)- await self.bus.publish_outbound(response or OutboundMessage(- channel=msg.channel, chat_id=msg.chat_id, content="",- ))+ if response is not None:+ await self.bus.publish_outbound(response)+ elif msg.channel == "cli":+ await self.bus.publish_outbound(OutboundMessage(+ channel=msg.channel,+ chat_id=msg.chat_id,+ content="",+ metadata=msg.metadata or {},+ ))except Exception as e:logger.error("Error processing message: {}", e)await self.bus.publish_outbound(OutboundMessage(