Skip to content

Your lightweight open-source personal agent.

style(loop): compact empty outbound message construction

Re-bin0b30f514b4be
diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py
index 5f0962af8..7b9317ccc 100644
--- a/nanobot/agent/loop.py
+++ b/nanobot/agent/loop.py
@@ -244,10 +244,7 @@ class AgentLoop:
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 {},
+ channel=msg.channel, chat_id=msg.chat_id, content="", metadata=msg.metadata or {},
))
except Exception as e:
logger.error("Error processing message: {}", e)