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.
This commit is contained in:
chengyongru
2026-04-26 16:09:31 +08:00
committed by Xubin Ren
parent d36fba8bf5
commit 8717832771
+3 -2
View File
@@ -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 = []