Skip to content

fix(feishu): preserve thread routing for batch sends - #4328

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
pengmoubuaixuexi:fix/feishu-batch-thread-routing
Nov 23, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
pengmoubuaixuexi:fix/feishu-batch-thread-routing

Conversation

@pengmoubuaixuexi

Copy link
Copy Markdown
Contributor

AgentScope-Java Version

2.1.0-SNAPSHOT, based on main b5159827. Fixes #4327.

Description

FeishuOutboundClient.send dropped 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 its receive_id_type=chat_id query. The EN/ZH Feishu channel guides now describe when each endpoint is used.

Validation

  • On unmodified main, the threaded test failed: both requests went to the chat URI. The two pre-existing outbound tests passed.
  • Windows, Temurin 17.0.15, Maven 3.9.12. After installing the reactor dependencies, mvn -B -T1C -pl :agentscope-extensions-channel-feishu clean verify passed 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.
  • In docs/, npm test passed all 20 tests and npm run validate passed. npm run broken-links reported 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 --check passed. 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

  • Formatted the Java changes with Spotless.
  • Ran the complete Feishu module verification.
  • Updated the send method's Javadoc and both development guides.
  • Reviewed the complete four-file diff.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 00:13
@mintlify

mintlify Bot commented Nov 23, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 751b3be.

Approve preview

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
jujn merged commit adaf26a into agentscope-ai:main Nov 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Feishu batch sends ignore the outbound thread ID

3 participants