Skip to content

fix: add rootId support for Feishu topic group streaming cards#14

Open
newtontech wants to merge 1 commit intomainfrom
fix/issue-28273
Open

fix: add rootId support for Feishu topic group streaming cards#14
newtontech wants to merge 1 commit intomainfrom
fix/issue-28273

Conversation

@newtontech
Copy link
Copy Markdown
Owner

Summary

Fixes an issue where streaming card replies in Feishu topic groups were creating new topics instead of replying in the original thread.

Changes

  • Added rootId parameter to CreateFeishuReplyDispatcherParams type
  • Modified bot.ts to pass ctx.rootId when creating the reply dispatcher
  • Modified streaming-card.ts to include root_id in the message creation API call

Root Cause

When using streaming cards in Feishu topic groups, the root_id was not being passed through the code chain:

bot.ts (has ctx.rootId)
  ↓ not passed
reply-dispatcher.ts (missing rootId parameter)
  ↓ not passed
streaming-card.ts (creates message without root_id)
  ↓
Feishu API (creates new topic instead of replying)

Testing

  • Code changes are minimal and focused on the reported issue
  • Follows existing code patterns in the codebase
  • The fix ensures root_id is properly threaded through all layers

Fixes openclaw#28273

Fixes openclaw#28273

Changes:
- Add rootId parameter to CreateFeishuReplyDispatcherParams
- Pass rootId from bot.ts to reply dispatcher
- Use rootId in streaming-card.ts when creating messages
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.

Feishu 话题群流式回复创建新话题问题

1 participant