Repository navigation
fix(feishu): preserve self mentions in agent-facing group messages - #117906
clawsweeper[bot] wants to merge 2 commits into
Conversation
|
Codex review: needs changes before merge. What this changesPreserves Feishu bot mentions in agent-facing messages and supplies normalized text for command handling. Example: A user sends @bot A @bot B coordinate in a Feishu group.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep open: current main still loses self-mention context, but this PR has three command regressions and remains under an explicit maintainer pause. Priority: P1 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Feishu receiver parses events, classifies debounce and queue behavior, then dispatches separate agent-facing and command-facing text to core. flowchart TD
A[Feishu event] --> B[Registered receiver]
B --> C[Debounce classification]
C --> D[Queue lane selection]
D --> E[Message handler]
E --> F[Agent context]
E --> G[Command dispatch]
Technical reviewBest possible solution: Preserve complete mention context while using command projections that classify ingress correctly and retain command arguments. Do we have a high-confidence way to reproduce the issue? Source establishes self-mention removal on main and all three introduced command regressions; tests were inspected without execution, and the reported model NO_REPLY outcome was not reproduced live. Is this the best way to solve the issue? The separation of agent context from command handling is sound, but this patch is too narrow at ingress and too destructive when its broad probe output becomes command arguments. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0ff84839b2f4. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -12, Tests +59. Total +47 across 4 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (16 earlier review cycles; latest 8 shown)
Reviewed October 17, 2026, 12:14 PM ET / 16:14 UTC (Revision 17). |
9a5b84c to
722e5b0
Compare
|
@clawsweeper stop Blocking P1 on reviewed head
The latest repair only normalizes |
|
🦞✅ I added |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This automated repair was stopped by a maintainer with blocking command-handling regressions and has had no commits since August 2. A fresh fix for Feishu self-mention context can be opened against current main if still needed. If this change is still needed, please open a fresh PR against current |
|
Continued in #182441 (credited replacement built on this PR's commits) as part of an old-bug repair sweep. Thank you for the original work. |
Fixes #72504.
The Feishu inbound parser previously removed the receiving bot's own mention from the agent-facing body. In multi-bot groups, that could leave each bot without its own addressing context even when event metadata had already activated it.
This preserves all normalized
<at>markup for the agent and keeps group command handling separate:CommandBodyuses the command-only normalized probe, so@Bot /modelcontinues to dispatch as/model.Credit: this repair carries forward analysis from @AxelHu in #72532 and @Bojun-Vvibe in #72661. Their closed PRs are not reopened.
Release-note context: fixes Feishu multi-bot group messages where a receiving bot could lose its own mention context and incorrectly return no reply.