Skip to content

fix(feishu): extract reply context from quote field in incoming messages (#22934) - #23079

Closed
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/22934-feishu-quote-field
Closed

fix(feishu): extract reply context from quote field in incoming messages (#22934)#23079
Bartok9 wants to merge 1 commit into
NousResearch:mainfrom
Bartok9:fix/22934-feishu-quote-field

Conversation

@Bartok9

@Bartok9 Bartok9 commented May 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #22934.

When a user long-presses a message and taps 'Quote' in Feishu/Lark, the event carries a quote object with message_id and text. The adapter only read parent_id / upper_message_id / root_id, leaving reply_to_message_id and reply_to_text empty.

Fix adds quote object extraction as a fallback — same pattern as the Signal adapter (signal.py line 509). Also avoids a redundant _fetch_message_text API round-trip when the quoted text is already present in the event payload.

155/155 feishu tests passing.

…ges (NousResearch#22934)

When a user long-presses a message and selects 'Quote' in Feishu/Lark,
the event carries a quote object with message_id and text. The adapter
only read parent_id / upper_message_id / root_id, leaving reply_to_message_id
and reply_to_text empty and potentially routing the session incorrectly.

Fix adds quote object extraction as a fallback, matching the pattern already
used by the Signal adapter. Also avoids a redundant _fetch_message_text
round-trip when the quoted text is already present in the event payload.
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists platform/feishu Feishu / Lark adapter comp/gateway Gateway runner, session dispatch, delivery labels May 10, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #22935 (and #22969) — same quote-field extraction fix for #22934.

@Bartok9

Bartok9 commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

Closing — duplicate of #22935 which was filed earlier. Reviewed both; the competing fix is correct. Leaving a review comment there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/feishu Feishu / Lark adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feishu adapter doesn't handle quote field for quoted replies

2 participants