Skip to content

Cherry-pick 4ad49de89: feat(feishu): add parent/root inbound context for quote support (openclaw#18529)#1483

Merged
alexey-pelykh merged 2 commits intomainfrom
cherry-pick/4ad49de89-feishu-parent-root-context
Mar 16, 2026
Merged

Cherry-pick 4ad49de89: feat(feishu): add parent/root inbound context for quote support (openclaw#18529)#1483
alexey-pelykh merged 2 commits intomainfrom
cherry-pick/4ad49de89-feishu-parent-root-context

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick of upstream openclaw/openclaw@4ad49de89.

Original: feat(feishu): add parent/root inbound context for quote support (openclaw#18529)

Part of #678.

Cherry-picked-from: 4ad49de

qiangu and others added 2 commits March 16, 2026 01:38
…claw#18529)

* feat(feishu): add parentId and rootId to inbound context

Add ParentMessageId and RootMessageId fields to Feishu inbound message context,
enabling agents to:
- Identify quoted/replied messages
- Fetch original message content via Feishu API
- Build proper message thread context

The parent_id and root_id fields already exist in FeishuMessageContext but were
not being passed to the agent's inbound context.

Fixes: Allows proper handling of quoted card messages and message thread reconstruction.

* feat(feishu): parse interactive card content in quoted messages

Add support for extracting readable text from interactive card messages
when fetching quoted/replied message content.

Previously, only text messages were parsed. Now interactive cards
(with div and markdown elements) are also converted to readable text.

* 更新 bot.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* fix(types): add RootMessageId to MsgContext type definition

* style: fix formatting in bot.ts

* ci: trigger rebuild

* ci: retry flaky tests

* Feishu: add reply-context and interactive-quote regressions

---------

Co-authored-by: qiangu <[email protected]>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: 牛牛 <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
(cherry picked from commit 4ad49de)
@alexey-pelykh alexey-pelykh merged commit 4ae1e98 into main Mar 16, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/4ad49de89-feishu-parent-root-context branch March 16, 2026 00:57
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.

2 participants