Repository navigation
fix(feishu): avoid 400s on topic reaction hydration - #117685
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 7:44 PM ET / 23:44 UTC. ClawSweeper reviewWhat this changesThe PR changes Feishu topic-session hydration to query the original reacted-message ID instead of the synthetic local reaction ID, with regression coverage for created and deleted reactions in both topic session scopes. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain The patch is a focused, source-supported repair for the linked Feishu reaction failure and has no blocking code-review finding. Current Priority: P2 Review scores
Verification
How this fits togetherFeishu reaction webhooks are converted into synthetic local turns so OpenClaw can deduplicate and route them without losing the original provider message facts. Topic-scoped group sessions may hydrate a missing native thread from Feishu before constructing the session route and sending the turn to the agent. flowchart LR
A[Feishu reaction webhook] --> B[Reaction event builder]
B --> C[Synthetic local reaction turn]
C --> D[Topic hydration decision]
D --> E[Feishu message lookup]
E --> F[Native topic session route]
F --> G[Agent turn and reply]
Decision needed
Why: Source and focused regression coverage support the patch, but only a completed after-fix Feishu run can establish the external API outcome required by repository policy. Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +67. Total +70 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the synthetic ID for OpenClaw-local deduplication and session routing, use the preserved reply target solely for the provider lookup, and attach completed redacted Feishu after-fix evidence before merging. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path: reaction events retain a synthetic Is this the best way to solve the issue? Yes—the patch fixes the provider-boundary consumer while retaining the synthetic identifier for the local deduplication and routing contract. Globally stripping or replacing reaction IDs would risk breaking that local ownership boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2f06ed30d8b1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
* fix(feishu): hydrate reaction topics with real ids Fixes openclaw#34528 * fix(feishu): scope topic hydration id for errors
Fixes #34528
What Problem This Solves
Fixes an issue where Feishu reactions in topic-scoped group sessions could still trigger an HTTP 400 when the reaction event did not already carry a
thread_id. The topic hydration lookup was using OpenClaw's local synthetic reaction ID instead of the real Feishu message ID.Why This Change Was Made
Reaction turns intentionally keep a unique synthetic ID for local deduplication and session routing. This change keeps that internal ID intact, while the one topic-hydration API call now consumes the explicit original reply target already carried by the reaction event; ordinary messages continue to use their own message ID.
User Impact
Feishu reaction-created and reaction-deleted events can stay in the correct topic for both
group_topicandgroup_topic_sendersession scopes without sending a:reaction:-suffixed ID to Feishu's message lookup API.Evidence
reply_target_message_idwhile retaining the synthetic:reaction:ID only for local deduplication;getMessageFeishuforwards its argument directly to the Feishuim.message.getpath parameter.86321dc602c:node scripts/run-vitest.mjs extensions/feishu/src/bot.test.ts -t "hydrates topic threads from the real message ID" --reporter=verbosepassed all four created/deleted ×group_topic/group_topic_sendercases. Each case asserts the lookup receives the original reacted message ID and the resolved route uses the hydrated native topic. Targetedoxfmt --checkalso passed.86321dc602cpassed in run 30723728551, includingcheck-prod-types,check-test-types,check-lint,check-additional-extension-package-boundary, changed Node shards, andbuild-artifacts.