From 3ece7256d143a02f48f0bb7688923799bb777c58 Mon Sep 17 00:00:00 2001 From: chengyongru <2755839590@qq.com> Date: Thu, 16 Apr 2026 00:27:26 +0800 Subject: [PATCH] perf(feishu): make reaction non-blocking to speed up inbound dispatch Reaction emoji is now added as a fire-and-forget background task instead of blocking the inbound message pipeline. This removes one API round-trip from the critical path before the agent starts processing. --- nanobot/channels/feishu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nanobot/channels/feishu.py b/nanobot/channels/feishu.py index ef290766d..56e6df1c3 100644 --- a/nanobot/channels/feishu.py +++ b/nanobot/channels/feishu.py @@ -1556,8 +1556,9 @@ class FeishuChannel(BaseChannel): logger.debug("Feishu: skipping group message (not mentioned)") return - # Add reaction - reaction_id = await self._add_reaction(message_id, self.config.react_emoji) + # Add reaction (non-blocking — fire and forget) + reaction_id = None + asyncio.create_task(self._add_reaction(message_id, self.config.react_emoji)) # Parse content content_parts = []