Repository navigation
fix(feishu): preserve thread routing for batch sends - #4328
Merged
jujn merged 1 commit intoNov 23, 2026
Merged
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
jujn
approved these changes
Nov 23, 2026
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.
AgentScope-Java Version
2.1.0-SNAPSHOT, based on main
b5159827. Fixes #4327.Description
FeishuOutboundClient.senddropped the thread ID when forwarding each message to the common request builder. With a threaded address, even a successful batch went to the parent chat. Pass the address's thread ID through the existing sequential send path so it uses the same reply endpoint and body as a receipt-based send. A chat address continues to use the create-message endpoint.Two loopback tests check the actual HTTP request URIs. The threaded case sends two messages and checks that both post to
/open-apis/im/v1/messages/om-root/reply. The unthreaded control checks the create-message URI and itsreceive_id_type=chat_idquery. The EN/ZH Feishu channel guides now describe when each endpoint is used.Validation
mvn -B -T1C -pl :agentscope-extensions-channel-feishu clean verifypassed all 16 module tests, including both new cases, with no failures, errors or skips. Spotless and Javadoc passed. The full repository suite was not run.docs/,npm testpassed all 20 tests andnpm run validatepassed.npm run broken-linksreported 2,750 links in 483 files on both this branch and a clean checkout of the same upstream SHA. The ordered file and target rows matched.git diff --checkpassed. The tests use an explicitly threaded address and a local HTTP server. Live Feishu delivery and inbound event mapping were outside this check.AI assistance was used for investigation, implementation, tests and diff review.
Checklist