Repository navigation
fix: gate ClickClack group replies on mentions - #115484
Conversation
a73e024 to
af6e08b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a73e0247fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: found issues before merge. Reviewed July 30, 2026, 10:07 AM ET / 14:07 UTC. ClawSweeper reviewWhat this changesThis PR adds optional ClickClack group-message mention gating, with account and per-channel policies, mention detection before inbound dispatch, plugin metadata, tests, and user documentation. Merge readinessKeep this PR open. The current head still manually adds ClickClack headings to the generated docs map, so the prior P2 blocker remains; the underlying opt-in delivery policy has useful proof and active maintainer involvement, but the public configuration direction and generated-docs cleanup need completion before merge. Priority: P2 Review scores
Verification
How this fits togetherClickClack is a bundled channel plugin: its gateway receives ClickClack events, resolves account and agent routing, decides whether inbound access permits dispatch, and sends accepted messages into the agent pipeline. The proposed policy adds a mention-based decision before agent dispatch for group messages while leaving direct messages outside that gate. flowchart LR
A[ClickClack message event] --> B[Gateway account]
B --> C[Route and access resolution]
C --> D[Mention and group policy]
D --> E{Dispatch allowed?}
E -->|Yes| F[Agent inbound pipeline]
E -->|No| G[Recorded skipped message]
F --> H[ClickClack outbound reply]
Decision needed
Why: The branch introduces new user-facing configuration and delivery policy rather than only repairing an established ClickClack behavior; active implementation work supports the direction, but permanent contract acceptance is a maintainer choice. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +363, Tests +637, Docs +57, Generated 0. Total +1057 across 18 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the opt-in, default-off ClickClack gating design only after removing the hand-authored generated-map entries or regenerating them through the supported docs-map workflow, then land the documented configuration as the accepted plugin contract. Do we have a high-confidence way to reproduce the issue? Yes for the remaining review finding: the current PR diff adds headings directly to Is this the best way to solve the issue? No: the present branch is not yet the best merge-ready solution because it hand-edits a generated documentation map. Removing those entries or regenerating them through the repository workflow is the narrower maintainable path; maintainers must also confirm the new plugin configuration contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 319fd692d1c8. LabelsLabel 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
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
b4ddbbd to
a256212
Compare
|
Following up on the multi-Agent testing collaboration I mentioned earlier: I now have a narrowly scoped external test ready for the NodeRooms |
56a929f to
2a5bc63
Compare
2a5bc63 to
ea82059
Compare
|
Merged. What changed after review:
Verification:
Landed on
Thanks @jjjhenriksen! |
clickclack inbound mention gating: #114388 (1ca60fb) made multi-agent fallback ownership explicit, so the #115484 fixture now declares its clickclack:default service-bot binding. policy CLI: #114388 (1ca60fb) removed ambient ownership from normalized multi-agent configs, so the #111087 routing-probe fixture uses the sole main agent and still reaches the intended findings exit. Teams and Zoom node invoke policy: #118451 (7d40666) added trusted audio backend, buffer size, and format forwarding; assert those fields alongside the configured commands. Teams node host: #118451 (7d40666) made default audio commands platform-dependent at import time after #111455 added the sox dedupe test; reset modules and mock Darwin before importing defaults.
Summary
Add opt-in ClickClack group mention gating so shared-workspace agents do not all respond to ordinary group traffic.
@handlementions and configured mention patterns.What Problem This Solves
When several enabled ClickClack accounts share one workspace, ordinary group traffic can activate every account because the adapter treated each group message as addressed to the bot. This change adds opt-in mention gating while preserving direct-message behavior and default group dispatch.
Evidence
Behavior
requireMentionis disabled unless configured. When enabled for a group:Group policy resolution uses normalized channel IDs with this precedence:
groups["*"]overrideNamed-account settings inherit missing fields from the top-level ClickClack configuration, including partial overrides for the same group key.
Verification
Blacksmith Testbox:
tbx_01kyrghk85vz125wdxn6pcx9vq: all 25 ClickClack test files passed, 306 tests total.tbx_01kyrk3p9frj7r0krbvt40yjdg: fullpnpm build, docs-map validation, and bundled-channel metadata validation passed.Additional proof:
git diff --checkpassed.A broad
pnpm test:changedrun continued beyond the complete passing ClickClack suite and encountered unrelated current-main failures.Thanks @jjjhenriksen for the original contribution.