Repository navigation
refactor(auto-reply): centralize delivery deduplication and routing - #119436
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 11:03 PM ET / August 5, 2026, 03:03 UTC. ClawSweeper reviewWhat this changesThis PR centralizes auto-reply message-tool duplicate suppression for primary and follow-up replies, while removing redundant route-resolution predicates. Merge readinessNo actionable regression was found: primary and follow-up reply delivery now share the same route-aware media-then-text dedupe path, and route-tier semantics remain intact. This maintainer-labeled PR should stay open for exact-head build completion and explicit maintainer approval. Priority: P3 Review scores
Verification
How this fits togetherAuto-reply turns agent output into channel reply payloads, then applies threading and duplicate suppression before delivery. Route resolution selects the target agent/session from channel, account, peer, and role bindings. flowchart LR
A[Agent output] --> B[Reply payload builder]
B --> C[Threading and route context]
C --> D[Shared duplicate suppression]
D --> E[Primary reply delivery]
D --> F[Follow-up delivery]
E --> G[Channel and transcript]
F --> G
H[Inbound channel route] --> I[Route tier index]
I --> B
Decision needed
Why: The protected maintainer label requires explicit maintainer handling even though direct review found no correctness defect. Before merge
Agent review detailsSecurityNone. PR surfaceSource -129, Tests 0. Total -129 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one internal route-aware dedupe helper for primary and follow-up reply owners, retain command delivery's intentionally distinct payload-preserving path, and approve only after the exact-head build succeeds. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors existing reply delivery and routing behavior rather than reporting a standalone failure. Is this the best way to solve the issue? Yes: centralizing the identical primary and follow-up filter sequence in the route-aware dedupe owner removes duplicate policy without changing the distinct command-delivery behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 22de30f99821. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
What Problem This Solves
Primary replies, follow-up delivery, and route selection independently repeated message-tool payload deduplication and redundant route-tier predicates. This is part of a maintainer-requested project-wide production LOC reduction campaign.
Why This Change Was Made
Use the canonical route-aware reply dedupe owner for primary/follow-up delivery, remove obsolete private re-export wrappers, and simplify routing buckets that already encode precedence.
User Impact
Reply visibility, threading, account routing, media ordering, source mirrors, and wildcard/exact precedence remain unchanged; removes 129 production lines.
Evidence
gpt-5.6-solwithxhighreasoning; no accepted or actionable findings.git diff --check, scoped formatting, and direct before/after behavioral equivalence checks passed.