Open
Conversation
|
|
Author
👥 Requested Reviewers/assign @yinwm @alexhoshina cc: @yinwm @alexhoshina 请帮忙 review 这个飞书话题回复的修复,感谢! |
0333eb4 to
ca84a2a
Compare
alexhoshina
requested changes
Mar 14, 2026
Collaborator
alexhoshina
left a comment
There was a problem hiding this comment.
Based on my observation, this feature only requires modifications to the Feishu channel, and should not introduce coupling specific to a particular channel in the public domain
ca84a2a to
1cfb2d0
Compare
alexhoshina
requested changes
Mar 14, 2026
1cfb2d0 to
86da6a7
Compare
When receiving messages in Feishu topic groups, the bot now correctly replies within the same topic thread instead of creating new topics. Changes: - Extract ThreadId from incoming messages and combine with ChatID - Use ReplyMessage API with ReplyInThread=true for topic replies - Pass MessageID through agent loop for proper reply threading - Add parseFeishuChatID helper function Fixes issue where each bot reply created a new topic in Feishu groups.
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.
📝 Description
修复飞书(Feishu/Lark)话题群中机器人回复不进入话题的问题。
在飞书话题群(topic_group)中,当用户发送一条消息创建一个话题后,机器人回复时没有在该话题下回复,而是每条回复都创建一个新的话题。本 PR 修复了此问题,使机器人能够在正确的话题下回复。
🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
Fixes: 飞书话题群回复不进入话题的问题
📚 Technical Context (Skip for Docs)
飞书的消息事件包含
ThreadId字段表示消息所属的话题。在话题群中回复消息时,需要使用ReplyMessageAPI 并设置ReplyInThread=true参数,才能在同一话题下回复。原代码未处理此字段和参数,导致回复创建了新话题。🧪 Test Environment
📸 Evidence (Optional)
Click to view code changes
主要改动:
pkg/channels/feishu/feishu_64.go:ThreadId并与ChatID组合replyInThread方法使用ReplyMessageAPIpkg/channels/feishu/common.go:parseFeishuChatID辅助函数pkg/agent/loop.go:processOptions中添加MessageIDReplyToMessageID到发送的消息☑️ Checklist