Skip to content

fix(feishu): inspect original messages with typed mention identities - #37

Open
Entropy-Enthalpy wants to merge 1 commit into
BotHarness:mainfrom
Entropy-Enthalpy:fix/feishu-typed-source-inspection
Open

Entropy-Enthalpy wants to merge 1 commit into
BotHarness:mainfrom
Entropy-Enthalpy:fix/feishu-typed-source-inspection

Conversation

@Entropy-Enthalpy

Copy link
Copy Markdown

Feishu's exact-message GET returns Bot mentions as app_id when user_id_type=open_id is requested. The existing history reader only offers list scopes and normalizes every mention as an open_id, so an external consumer cannot use it to inspect the original message's typed Bot identities. A read from inside inbound acceptance also waits behind that same acceptance in the controller transition queue.

This adds historyChecked(..., { scope: 'message', limit: 1 }) on the existing checked read path. It validates the original route, rejects edited or unqualified sources, preserves typed mentions and explicit tenant metadata, and returns the one GET source without listing history. Read-only inspection checks the current account, runtime and consumer lease across the operation without holding the inbound transition queue. The public contract is documented in docs/checked-feishu-source.md.

Validation on Node 24.15.0:

  • 71 affected history, Feishu consumer and controller tests pass.
  • The official Lark SDK parser and HTTP client run against a loopback API fixture with two receiving applications, distinct cross-application Bot open IDs, typed GET results and a source read during first consumer acceptance. No history-list request occurs.
  • The current main fails the typed-source regression and its consumer callback cannot finish the nested read. The candidate completes both.
  • Original Host build, complete Host-module import and git diff --check pass.

Existing group/thread/nearby pagination remains available. Live platform delivery and user acceptance were not exercised by this source contribution.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 41b43f81-65b0-4f23-88dc-0b246c3dab71
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant