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-16 00:27:26 +08:00 committed by chengyongru
parent a0e97e360e
commit 3ece7256d1

View File

@ -1556,8 +1556,9 @@ class FeishuChannel(BaseChannel):
logger.debug("Feishu: skipping group message (not mentioned)") logger.debug("Feishu: skipping group message (not mentioned)")
return return
# Add reaction # Add reaction (non-blocking — fire and forget)
reaction_id = await self._add_reaction(message_id, self.config.react_emoji) reaction_id = None
asyncio.create_task(self._add_reaction(message_id, self.config.react_emoji))
# Parse content # Parse content
content_parts = [] content_parts = []