Skip to content

fix(feishu): card content type, text parsing, reply truncation, parent_id fallback - #17709

Closed
resurgence wants to merge 1 commit into
NousResearch:mainfrom
resurgence:fix/feishu-card-v3
Closed

fix(feishu): card content type, text parsing, reply truncation, parent_id fallback#17709
resurgence wants to merge 1 commit into
NousResearch:mainfrom
resurgence:fix/feishu-card-v3

Conversation

@resurgence

Copy link
Copy Markdown

Summary

  • card_msg_content_type for interactive message detail API
  • text tag in _collect_text_segments
  • action lines limit 100
  • reply truncation 3000 chars + Chinese truncation marker
  • session_id injection via event._session_id
  • _fetch_message_detail REST fallback for missing parent_id
  • history-aware reply marker
  • async build_channel_directory (from upstream hotfix)

…arent_id REST fallback

Cherry-pick from origin/fix/feishu-card-content-and-text-parsing onto upstream/main:
- card_msg_content_type='user_card_content' for interactive message detail API
- Add 'text' tag to _collect_text_segments for card text extraction
- Increase action lines limit from 12 to 100
- Raise reply_to_text limit from 500 to 3000 chars with Chinese truncation marker
- session_id injection via event._session_id
- _fetch_message_detail REST fallback for missing parent_id
- History-aware reply marker

Also applied async build_channel_directory from stash@{0}:
- startup: await build_channel_directory
- reconnect: await build_channel_directory
- cron ticker: run_coroutine_threadsafe with 10s timeout
@resurgence resurgence closed this Apr 30, 2026
@resurgence
resurgence deleted the fix/feishu-card-v3 branch April 30, 2026 02:53
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery platform/feishu Feishu / Lark adapter P2 Medium — degraded but workaround exists labels Apr 30, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #10336 — same Feishu card/text/truncation fixes with identical title and scope.

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.

2 participants