Repository navigation
feat(channels): add DingTalk Workspace channel #9049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9c572c7
feat(channels): add DingTalk Workspace channel
qqqys 56586cc
feat(channels): watch native DingTalk todos
qqqys eb9e1a4
fix(channels): isolate DWS polling failures
qqqys 849fcbc
fix(channels): recover DWS notification delivery
qqqys b41b6d1
fix(channels): align DWS workspace version with main
qqqys 9c4f411
fix(channels): defer pending DWS document reads
qqqys 7ace3d6
fix(channels): bound DWS notification retries
qqqys b29901d
fix(channels): preserve in-flight todo response routing
qqqys 16ee18c
fix(channels): address current DWS review blockers
qqqys 423b896
fix(dws): address current review blockers
qqqys b4ff30c
fix(channels): address current DWS review blockers
qqqys d114c9d
fix(channels): close DWS review blockers
qqqys b41b995
fix(dws): harden document and todo reply routing
qqqys b2a75ee
fix(channels): require authoritative DWS direct identity
qqqys dd6e080
fix(channels): harden DWS answer bot messaging
qqqys 563d0d1
fix(channels): preserve DWS sender identity history
qqqys 59785dc
Merge branch 'main' into feat/dws-channel-unified
wenshao 929501f
test(release): pin @qwen-code/channel-dws in the published-package set
qqqys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(channels): preserve DWS sender identity history
- Loading branch information
commit 563d0d17b32568e42655a9b27bea367578904aac
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -591,6 +591,7 @@ export class DwsChannel extends PollingChannelBase<DwsCursor> { | |
| identity.profile, | ||
| ); | ||
| if (this.cursor.selfProfile !== identity.profile) { | ||
| this.cursor.selfSenderIds = []; | ||
| this.cursor.selfProfile = identity.profile; | ||
| this.cursor.todosInitialized = false; | ||
| this.cursor.todoTasks = []; | ||
|
|
@@ -628,12 +629,19 @@ export class DwsChannel extends PollingChannelBase<DwsCursor> { | |
| 'DWS direct messages require the authenticated identity to expose an openDingTalkId.', | ||
| ); | ||
| } | ||
| if (this.cursor.selfSenderIds.length === 0 && selfSenderIds.length > 0) { | ||
| const previousSelfSenderIds = this.cursor.selfSenderIds; | ||
| if (previousSelfSenderIds.length === 0 && selfSenderIds.length > 0) { | ||
| this.cursor.imTargets = this.cursor.imTargets.filter( | ||
| ({ target }) => target.kind !== 'direct', | ||
| ); | ||
| } | ||
| this.cursor.selfSenderIds = selfSenderIds; | ||
| if (selfSenderIds.length > 0) { | ||
| const freshSelfSenderIds = new Set(selfSenderIds); | ||
| this.cursor.selfSenderIds = [ | ||
| ...previousSelfSenderIds.filter((id) => !freshSelfSenderIds.has(id)), | ||
| ...selfSenderIds, | ||
| ].slice(-MAX_SELF_SENDER_IDS); | ||
| } | ||
|
Comment on lines
+593
to
+606
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 已修复(commit |
||
| this.connected = true; | ||
| try { | ||
| await Promise.all( | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修复。验证:dws-channel.test.ts 82/82 通过,profile 切换后 pending 文档与旧 IM target 均不会重放。