style(loop): compact empty outbound message construction
This commit is contained in:
@@ -244,10 +244,7 @@ class AgentLoop:
|
|||||||
await self.bus.publish_outbound(response)
|
await self.bus.publish_outbound(response)
|
||||||
elif msg.channel == "cli":
|
elif msg.channel == "cli":
|
||||||
await self.bus.publish_outbound(OutboundMessage(
|
await self.bus.publish_outbound(OutboundMessage(
|
||||||
channel=msg.channel,
|
channel=msg.channel, chat_id=msg.chat_id, content="", metadata=msg.metadata or {},
|
||||||
chat_id=msg.chat_id,
|
|
||||||
content="",
|
|
||||||
metadata=msg.metadata or {},
|
|
||||||
))
|
))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("Error processing message: {}", e)
|
logger.error("Error processing message: {}", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user