Repository navigation
Conversation
4783fdf to
c764406
Compare
|
Codex review: found issues before merge. Reviewed June 27, 2026, 2:57 AM ET / 06:57 UTC. Summary PR surface: Source +40, Tests +118, Docs +8. Total +166 across 3 files. Reproducibility: yes. source-level: current main and v2026.6.10 parse 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:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one compatibility-safe Feishu bind grammar that fixes the reported two-segment flow with an explicit account escape, or retarget this PR as additive syntax and keep the canonical bug open. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main and v2026.6.10 parse Is this the best way to solve the issue? No, not as a fix for the linked bug: the parser boundary is plausible for an explicit new syntax, but the reported two-segment Feishu command remains unchanged. The safer path is to fix that form or clearly keep it as separate canonical work. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fbfadbd806e1. Label changesLabel justifications:
Evidence reviewedPR surface: Source +40, Tests +118, Docs +8. Total +166 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
|
4783fdf to
2b88059
Compare
2b88059 to
4783fdf
Compare
4783fdf to
87785fe
Compare
Evidence updateUpdated this PR body with real behavior proof: What was added
cc @clawsweeper re-review |
|
Updated PR body to match the template format ( @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
…mat, but router only matches peer format
Add examples, format table row, and option references for the <channel>:<peer_kind>:<peer_id> syntax introduced in openclaw#95734 fix.
92db87b to
5a9cd33
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Closes #95734
What Problem This Solves
Fixes an issue where
openclaw agents add --bind "feishu:oc_test"generates bindings using theaccountIdfield, but the routing engine matches conversations using thepeerfield. Messages in Feishu groups fall through to the default agent instead of the bound agent.Users creating channel-specific agents (e.g., Feishu group bindings) had to manually edit
openclaw.jsonafter everyagents addcommand to convertaccountIdtopeerformat — otherwise group messages were silently routed to the default agent.Why This Change Was Made
The
parseBindingSpecsfunction insrc/commands/agents.bindings.tsonly recognized a 2-segment format<channel>:<account>which maps tomatch.accountId. However, route resolution (src/routing/resolve-route.ts) usesmatch.peeras the conversation-specific routing tier (checked at priority 1), whilematch.accountIdis a lower-priority tier (priority 7). This meansaccountId-based bindings were ignored for group chat routing.The fix introduces a new 3-segment binding format
<channel>:<peer_kind>:<peer_id>(e.g.,feishu:group:oc_test) that creates amatch.peer = { kind, id }binding, which the router matches at the highest conversation-specific tier.Key design decisions:
peer_kindis validated against theChatTypeenum (direct,group,channel) vianormalizeChatType()withdm→directalias support<channel>:<account>is preserved unchanged for backward compatibilityNon-goals:
accountId-format bindings inopenclaw.jsontopeerformat (users must update manually or re-runagents add)User Impact
Users can now run
openclaw agents add --bind 'feishu:group:oc_test'and the generated binding will usematch.peer = { kind: "group", id: "oc_test" }, which the routing engine correctly matches for Feishu group messages.Evidence
CLI command output
Generated binding in openclaw.json
{ "bindings": [ { "type": "route", "agentId": "test-agent", "match": { "channel": "feishu", "peer": { "kind": "group", "id": "oc_test" } } } ] }Parser-level proof (all edge cases)
Test results
Proof limitations