Repository navigation
Conversation
When agents add --bind "feishu:oc_xxx" is used, the value after the colon was always stored as accountId. For Feishu, oc_xxx is a chat_id (group conversation identifier), not a channel account. The router matches conversations by peer field, not accountId, so the binding was invisible. Fix: add resolveBindingPeerFromAccountId to the channel plugin setup adapter. When a channel plugin recognizes the explicit --bind value as a peer/conversation ID, it is stored in match.peer instead of match.accountId. Feishu implementation: oc_ prefix -> group peer, ou_ prefix -> direct peer. Co-Authored-By: openclaw[bot] <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs real behavior proof before merge. Reviewed June 26, 2026, 5:14 AM ET / 09:14 UTC. Summary PR surface: Source +58. Total +58 across 3 files. Reproducibility: yes. source-level: current main parses Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one compatibility-safe Feishu bind fix that keeps peer IDs out of account scope, documents or tests the chosen account/peer grammar, and adds SDK contract coverage if the hook remains. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main parses Is this the best way to solve the issue? No as submitted: the hook is a plausible owner-boundary fix, but the generated binding path can scope a peer ID as an account and the new plugin API lacks contract coverage. A safer fix keeps peer and account scopes unambiguous before merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ec737ee74d9b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +58. Total +58 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
When peerBinding is resolved from explicitAccountId, the accountId should still reflect the explicit binding — not be cleared. This preserves account-scoped Feishu binds that start with oc_ or ou_. Co-Authored-By: Claude (via Anthropic API) <[email protected]>
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
What Problem This Solves
agents add --bind "feishu:oc_xxx"stores the value after the colon inmatch.accountId. For Feishu, IDs starting withoc_are chat/group identifiers (chat_id), not channel account IDs. The routing engine matches conversations using thepeerfield, so the binding was invisible to the router and messages fell through to the default agent.Evidence
Fix: Added an optional
resolveBindingPeerFromAccountIdhook to the channel plugin setup adapter. When a plugin recognizes the explicit--bindvalue as a peer/conversation ID, it is stored inmatch.peerinstead ofmatch.accountId.Feishu implementation:
oc_*{ kind: "group", id }ou_*{ kind: "direct", id }Test matrix:
--bindvaluefeishu:oc_xxx{ accountId: "oc_xxx" }❌{ peer: { kind:"group", id:"oc_xxx" } }✅feishu:ou_xxx{ accountId: "ou_xxx" }❌{ peer: { kind:"direct", id:"ou_xxx" } }✅telegram:default{ accountId: "default" }✅ (unchanged){ accountId: "default" }✅Files changed: 3 files, +70 / -12 lines
src/channels/plugins/types.adapters.ts— New hook typeextensions/feishu/src/setup-core.ts— Feishu implementationsrc/commands/agents.bindings.ts—parseBindingSpecs()+buildChannelBindings()use the hookFormat check: All matched files use the correct format.