Repository navigation
fix(zalouser): route reactions through canonical conversation targets - #118536
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Zalouser reactions sent to prefixed group conversations or an ambient group could be dispatched as direct messages, selecting the wrong upstream Zalo API endpoint and identifier field. Prefixed target identifiers were also forwarded without canonical normalization.
Root Cause and Canonical Repair
The reaction adapter bypassed the existing Zalouser outbound target parser and defaulted group classification to false. Core action normalization can materialize the ambient conversation into params.to before the plugin sees it, so checking only whether a target was explicitly present is insufficient. The owner now reuses parseZalouserOutboundTarget, preserves explicit isGroup overrides, trusts ambient group metadata only when both the provider and exact raw conversation target match, and returns the normalized conversation identity.
Verified Upstream Dependency Contract
Actual installed zca-js 2.1.2 source and types were inspected directly. User reactions use /api/message/reaction and a toid field; group reactions use /api/group/reaction and a grid field. Incorrect classification is therefore a concrete wrong-endpoint provider failure.
Exact-Head Real Authenticated Gateway Proof
The exact published head 7492c85 passed an actual ephemeral loopback Gateway using signed backend runtime-identity tokens, real WebSocket authentication, the actual registered Zalouser plugin, and genuine message.action RPC calls. Only the external Zalo transport was mocked, so no credentials, real account, or user conversation were touched.
Regression Evidence