Repository navigation
fix(slack): route Enterprise Grid messages by workspace - #120087
Conversation
45e594c to
4ab1c3e
Compare
|
Codex review: found issues before merge. Reviewed August 8, 2026, 2:43 PM ET / 18:43 UTC. ClawSweeper reviewWhat this changesThis PR carries Enterprise Grid workspace identity through Slack destinations, sessions, API clients, and deferred delivery so later operations use the correct workspace. Merge readinessKeep open: the Enterprise Grid action expansion exposes default-enabled operations whose required OAuth scopes are absent from both Enterprise manifests, while the updated docs say those operations remain unavailable. Priority: P2 Review scores
Verification
How this fits togetherThe Slack plugin converts inbound events into reusable destinations and later uses them for messages and Slack actions. Enterprise Grid needs the workspace retained so a queued or direct operation selects the correct team-scoped Slack client. flowchart LR
A[Enterprise Grid event] --> B[Qualified Slack destination]
B --> C[Session and delivery routing]
C --> D[Workspace-scoped Slack client]
D --> E[Messages and actions]
E --> F[Slack workspace]
Decision needed
Why: The branch, its PR body, and the edited documentation describe incompatible supported-action contracts, and that choice determines the manifest, upgrade path, and gates. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +290, Tests +968, Docs +7. Total +1265 across 40 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Choose the intended Enterprise Grid action set; if the full set is intended, add im:write, pins:read, pins:write, reactions:read, and emoji:read to both manifests, give existing org installs reauthorization guidance, align capability text, and prove fresh and upgraded two-workspace runs. Do we have a high-confidence way to reproduce the issue? Yes, from source: Enterprise accounts default-enable the newly reachable actions while both Enterprise manifests omit their required scopes. A redacted live Enterprise run is still needed to demonstrate the after-reauthorization upgrade path. Is this the best way to solve the issue? Unclear: carrying workspace identity in Slack-owned destinations is the right owner boundary, but the PR must first settle and consistently implement its supported Enterprise action 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 5e66d9ee6676. 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
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
f790c16 to
1ac8cbe
Compare
cb0542e to
70af40e
Compare
What Problem This Solves
Slack Enterprise Grid events identify the workspace that owns each conversation, but reusable message destinations did not retain that workspace. A later live, queued, or scheduled message therefore could not safely select the matching team-scoped Slack client.
Design
team:T123:channel:C123orteam:T123:user:U123.teamIdoption and partition cached clients by workspace.The destination remains opaque outside the Slack extension, so this adds no generic OpenClaw channel or queue parameter.
Scope
Validation
AI-assisted: yes. The workspace-routing and fail-closed boundaries were reviewed by a maintainer.