fix: suppress duplicate Telegram plugin approvals 🤖#89688
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 29, 2026, 11:04 PM ET / 03:04 UTC. Summary PR surface: Source +47, Tests +48. Total +95 across 3 files. Reproducibility: yes. at source level: current main exits fallback suppression on null Review metrics: 1 noteworthy metric.
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:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land a rebased Telegram-only fallback-suppression fix after proof shows exactly one Telegram approval prompt; if maintainers do not want the SDK helper option, replace it with a Telegram-local or session-aware suppression path. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main exits fallback suppression on null Is this the best way to solve the issue? Yes, conditionally: the Telegram-only opt-in is narrower than changing all channels and preserves sibling defaults. It is not merge-ready until maintainers accept the helper contract, the branch is refreshed, and live Telegram proof is supplied. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 54b09580f61b. Label changesLabel justifications:
Evidence reviewedPR surface: Source +47, Tests +48. Total +95 across 3 files. View PR surface stats
Acceptance criteria:
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
|
|
Updated the branch to address the ClawSweeper P1 shared-helper concern. Changes:
Local verification:
Note: the real Telegram behavior proof gate still needs live/redacted proof from a real setup or maintainer override; I did not add proof data. |
3349a12 to
89f520e
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Summary
turnSourceChannelas unknown instead of a channel mismatch when checking native-delivery fallback suppression.Fixes #75749
Real behavior proof
turnSourceChannel: null, Telegram target channel, and native delivery enabled for the resolved account, the helper now returnstrueto suppress forwarding fallback.src/plugin-sdk/approval-delivery-helpers.test.tsthat exercises the null-channel case and confirms the resolved account is still checked.Validation
pnpm exec vitest run src/plugin-sdk/approval-delivery-helpers.test.ts --reporter=dotpnpm exec oxlint src/plugin-sdk/approval-delivery-helpers.ts src/plugin-sdk/approval-delivery-helpers.test.tsgit diff --check