[maintainer] feat: Feishu/Lark channel support#7313
Conversation
What: - clean up Feishu port for lint/type safety and error handling - allow buffers in Feishu media uploads and tighten config merging - increase Discord/Telegram unit test timeouts to reduce parallel flake Why: - backport Feishu support from openclaw-cn - keep local test runs stable under parallel load Tests: - pnpm lint - pnpm build - pnpm vitest run --config vitest.unit.config.ts src/telegram/bot.media.downloads-media-file-path-no-file-download.test.ts --maxWorkers 1 - pnpm vitest run --config vitest.unit.config.ts src/discord/monitor.tool-result.accepts-guild-messages-mentionpatterns-match.test.ts --maxWorkers 1 - pnpm test:all (fails in pnpm test:e2e: missing OPENCLAW_GATEWAY_TOKEN / gateway token mismatch; failing e2e tests include server.ios-client-id, gateway.multi, server.agent/chat/health/hooks/roles-allowlist/sessions-send, media-understanding.auto gemini, directive model list/help)
8dbd25d to
d8a8897
Compare
Bug Report1. Configuration & Command Errors
Error Log: ReferenceError: resolveDefaultFeishuAccountId is not defined
ELIFECYCLE Command failed with exit code 1.
10:32:57 [health] initial refresh failed: resolveDefaultFeishuAccountId is not defined2. File Sending Issue (Private vs. Group Chat)
3. Unresponsive /model Command |
| 1. You already ran `openclaw channels add` for Feishu | ||
| 2. The gateway is running (`openclaw gateway status`) | ||
|
|
||
| In **Event Subscription**: |
There was a problem hiding this comment.
Hey @AxiosLeo -- it's not this. Even when creating a custom app, ensuring you have logged App ID and App Secret to the binding wizard and restarting the gateway... this option never shows up on the Lark Developer Console for international users to select 'Use long connection'
Do the devs have a timeline for international support? Or is it better for us to build our own bridges?
✅ Feishu China Domain Test ResultsI've tested the Feishu integration with the China domain (
Test Screenshots1. Pairing Flow & Basic Conversation
2. Proactive Screenshot Sending
All tests performed on openclaw-cn fork with Feishu self-built app using WebSocket persistent connection mode. cc @jiulingyun (openclaw-cn maintainer) |
|
Clarification: The above tests were performed by directly fetching this PR branch ( git fetch upstream pull/7313/head:pr-7313-feishu
git switch pr-7313-feishu
pnpm install && pnpm build && pnpm check # all passedThis confirms the PR branch itself works correctly for Feishu China domain. |
|
Merged to main via fast-forward. Commits: Tests:
Thanks @jiulingyun for the upstream work! |
|
Thanks to everyone who tested and reported issues @taiyi747 and. @panda1105 — we appreciate the help! We will fix the bugs rolling forward - we will first get the channel live so more Chinese users can benefit, and then fix bugs after. |
|
@joshp123 good work! BTW there's also a PR adding WeChat support, can that be looked at? |
Thanks! Yes, WeChat is on our radar. I have seen a couple of competing implementations, but also I am hearing conflicting stories - some people say that you will get instabanned for using it, others say that it's fine. And since I'm not Chinese or in mainland China, its hard for me to know for sure. So I'm hoping the community is able to converge on an answer here for me 😬 😅 Slightly chickening out but it is what it is. If you're not already on our discord, we have a threat in help-中文 for adding these things! |
|
Select local installation |
openclaw channels add 谢谢,已经安装成功了。 |
|
got warning: because I installed @m1heng-clawd/feishu before. How can I fix this warning? |
|
能加一个敲键盘的动作吗?如果bot已经接收到消息,并开始工作 |
需要给飞书配置完整的权限,文档:https://clawd.org.cn/channels/feishu.html |
|
流程不对,按流程来,看一下文档:https://clawd.org.cn/channels/feishu.html
|
|
@jiulingyun /reset指令好像不生效。
|
用户命令将会在一个版本将会支持 |
|
如果之前的版本中安装了飞书插件,直接更新会不会有问题? |
|
这个PR跟https://github.com/m1heng/clawdbot-feishu是啥关系? 你这个PR,抢占别人的channel id,直接导致大批 |
|
@jiulingyun 大佬,消息展示不全。 |
+1. I had the same issue. Had to remove m1heng/clawdbot-feishu otherwise the conflict prevents gateway to start. |














Human written summary:
The intent of this change is, as written by a human:
Changes
channels.feishu.domainsupportsfeishu(CN) andlark(global) endpointsfeishu:/lark:prefixesextensions/feishu/(channel, onboarding, config-schema)Tests
Risks
Follow-ups
openclaw feishu probe/send/accounts) if desiredsrc/feishu/strings.tslocale maps for i18n precursor