feat: add DingTalk channel connector with Stream-based auto-discovery - #540
Open
joe-lin wants to merge 3 commits into
Open
feat: add DingTalk channel connector with Stream-based auto-discovery#540joe-lin wants to merge 3 commits into
joe-lin wants to merge 3 commits into
Conversation
joe-lin
force-pushed
the
custom/joe-lin
branch
from
August 25, 2026 05:59
515d20c to
5b36645
Compare
Previously the authorization prompt for DingTalk send commands only rendered on desktop clients, blocking mobile users from granting permission on mobile. This decouples the auth flow from client type in the routing/manager layer so authorization works on mobile too. Adds tests covering the mobile authorization path.
Author
|
Update: 发现并修复了一个相关问题——钉钉发送命令的授权提示此前只在桌面端渲染, 已在本 PR 中一并修复(见最新 commit 本地已在手机端实测通过。 |
Upstream internationalized the channel picker placeholder after this branch was created. This PR does not modify that file, so accepted the upstream i18n version to resolve the conflict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
新增钉钉(DingTalk)频道连接器,基于 Stream 模式实现消息订阅与回复,
并特别支持企业群(全员群/部门群)。
Why is it needed?
OpenWorker 此前缺少钉钉渠道。而钉钉「全员群/部门群」默认不显示群号
(conversationId),用户无法手动订阅、@ 机器人无响应。
本 PR 通过 Stream 自动发现群组,绕开群号限制。
Changes
coworker/connectors/dingtalk.py:钉钉 Stream 连接器(+650)tests/test_dingtalk.py、tests/test_mention_router.py:单元测试(+831)coworker/{engine,server/*}.py:引擎与服务层集成coworker/connectors/*.py:连接器框架扩展点surfaces/gui/src/components/*.tsx、connectors/registry.tsx:前端 UI 适配How to test
pytest tests/test_dingtalk.py tests/test_mention_router.pyChecklist