fix(feishu): handle quote field for quoted reply messages - #22935
fix(feishu): handle quote field for quoted reply messages#22935sicnuyudidi wants to merge 1 commit into
Conversation
9088e9a to
55d37f3
Compare
|
Reviewed — correct fix. Closing my duplicate #23079. The |
a556475 to
1e0e6ab
Compare
Extract reply_to_message_id and reply_to_text from the Feishu quote field in message events, similar to how Signal adapter handles it. Previously only parent_id, upper_message_id, and root_id were checked, which are empty for quoted replies outside of threads. Also initialize reply_to_text before use to avoid UnboundLocalError. Fixes NousResearch#22934
1e0e6ab to
609c226
Compare
|
Hi! I noticed the CI checks are failing (test, e2e, Windows footguns, and supply chain scan). My change is very small — just 17 lines added / 2 deleted in The test/e2e failures don't appear to be related to my changes. Could you help me understand:
Thanks! |
|
Hi @teknium1 @OutThisLife, this PR fixes the quote field handling for quoted reply messages in Feishu. Ready for review, could you take a look? Thanks! |
|
@teknium1 vouching for this one — I reviewed the change on May 10 (closed my duplicate #23079 in its favor). It's a 17-line defensive fallback ( The CI failures on this PR (test, e2e, Windows footguns, supply-chain scan) are unrelated — they're known-red on |
|
Thanks for identifying the missing quoted-reply context. The current adapter still does not inspect Problems
Suggested changes
Automated hermes-sweeper review. |
|
Thanks for the detailed review @teknium1 — all four points are actionable. I'll port the quote extraction to |
Maintainer review items addressed (port)Could not push to
What changed vs review
Tests@sicnuyudidi if you can pull this commit onto |
Summary
Extract
reply_to_message_idandreply_to_textfrom the Feishuquotefield in message events, similar to how Signal adapter handles it.Previously only
parent_id,upper_message_id, androot_idwere checked, which are empty for quoted replies outside of threads.Changes
In
gateway/platforms/feishu.py:quote = getattr(message, "quote", None) or {}quote_idandquote_textfrom the quote fieldquote_idas fallback whenparent_id/upper_message_id/root_idare emptyquote_textas fallback forreply_to_textFixes
Fixes #22934