Repository navigation
fix(slack): support Grid reaction and pin event listeners - #120944
Conversation
69d84f5 to
e3cdb9d
Compare
|
Codex review: found issues before merge. Reviewed August 9, 2026, 4:56 PM ET / 20:56 UTC. ClawSweeper reviewWhat this changesThe PR registers Slack Enterprise Grid reaction, pin, and membership listeners and carries workspace scope through lookup, routing, deduplication, tests, and setup documentation. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open: the revised head still drops Enterprise Grid reactions in the default Priority: P1 Review scores
Verification
How this fits togetherSlack’s monitor accepts Bolt event envelopes and converts authorized events into OpenClaw system events. Enterprise Grid events must retain their listener workspace identity through filtering, authorization, session routing, and deduplication. flowchart LR
A[Slack Grid event] --> B[Listener workspace scope]
B --> C[Reaction ownership filter]
C --> D[Authorization and lookup]
D --> E[Session routing and deduplication]
E --> F[OpenClaw system event]
Decision needed
Why: The exact per-listener identity source is a Bolt contract decision, and the PR carries a protected maintainer label plus an explicit non-merge marker. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +235, Tests +374, Docs +19. Total +628 across 18 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use a verified listener-scoped bot identity for the Do we have a high-confidence way to reproduce the issue? Yes, from source: an Enterprise install leaves the global bot identity empty, while the default own-mode reaction filter requires that identity and returns early. No live Grid run was supplied. Is this the best way to solve the issue? No: carrying workspace scope into lookup and routing is necessary, but the ownership decision still reads the process-wide identity that Enterprise setup deliberately leaves empty. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bff0494f33b2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
6562c78 to
cfc35b9
Compare
|
Real Slack end-to-end verification completed on 2026-08-09 (PDT).
The Slack UI action result and the bot listener result were checked separately; UI success alone was not treated as listener proof. All 12 event/target checks passed. |
* fix(slack): support Grid reaction and pin events * refactor(slack): isolate system event routing * test(slack): align Grid event scope fixture * refactor(slack): pass optional event scope directly * fix(slack): support Grid member events --------- Co-authored-by: Sarah Fortune <[email protected]>
* fix(slack): support Grid reaction and pin event listeners (#120944) * fix(slack): support Grid reaction and pin events * refactor(slack): isolate system event routing * test(slack): align Grid event scope fixture * refactor(slack): pass optional event scope directly * fix(slack): support Grid member events --------- Co-authored-by: Sarah Fortune <[email protected]> * test(slack): align Grid reaction event fixture --------- Co-authored-by: Sarah Fortune <[email protected]>
…20944) * fix(slack): support Grid reaction and pin events * refactor(slack): isolate system event routing * test(slack): align Grid event scope fixture * refactor(slack): pass optional event scope directly * fix(slack): support Grid member events --------- Co-authored-by: Sarah Fortune <[email protected]>
Summary
reaction_added,reaction_removed,pin_added, andpin_removedlisteners for Enterprise Grid org installsRelease base
This change is based on
sjf/openclaw-release-5-2026-08-04atd2605d9635539c32324b66b34b346d03c31977a2.Root cause
Enterprise installs returned from event registration immediately after the message listeners were installed. Reaction and pin listeners also lacked the validated per-event workspace scope required to safely resolve users, channels, sessions, and deduplication keys when raw Slack IDs overlap across workspaces.
Impact
Org-installed Slack apps can deliver inbound reaction and pin notifications from every authorized workspace without mixing workspace state. Workspace-scoped Slack installs retain their existing listener behavior.
Validation
node scripts/run-vitest.mjs ...: 7 Slack test files passed, 143 tests passedscripts/run-oxlint.mjs: passedscripts/run-tsgo.mjsgraphs: passednode scripts/format-docs.mjs --check: passed for 752 documentation files