fix(gateway): keep Feishu websocket off default executor

This commit is contained in:
JackJin
2026-08-05 15:27:13 +08:00
committed by Teknium
parent 957a8a287c
commit 5fbef868a9
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -3718,7 +3718,7 @@ class FeishuAdapter(BasePlatformAdapter):
# thread has an empty context = launch profile. connect() runs inside the profile scope
# under multiplex (and the supervisor task inherits it), so snapshot it here.
self._ws_future = loop.run_in_executor(
None, contextvars.copy_context().run, _run_official_feishu_ws_client, self._ws_client, self)
self._get_sdk_executor(), contextvars.copy_context().run, _run_official_feishu_ws_client, self._ws_client, self)
async def _connect_webhook(self) -> None:
if not FEISHU_WEBHOOK_AVAILABLE: