Repository navigation
refactor(slack): reuse canonical interactive block renderer - #128760
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 10:35 AM ET / 14:35 UTC. ClawSweeper reviewWhat this changesThe PR replaces Slack’s deprecated legacy interactive-block rendering loop with the existing canonical presentation renderer after converting the legacy reply shape. Merge readinessNo blocking source finding: the legacy Slack entry point now feeds an identity-preserving bridge into the already-canonical renderer. This maintainer-authored, maintainer-labeled PR should remain open for normal exact-head CI and explicit maintainer handling. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSlack reply assembly combines existing Slack blocks, portable presentation blocks, and legacy interactive replies into ordered Block Kit messages. Returned Slack interaction identifiers then select the appropriate approval, callback, question, or reply dispatch path. flowchart LR
A[Legacy interactive reply] --> B[SDK compatibility bridge]
B --> C[Canonical presentation renderer]
C --> D[Slack Block Kit message]
D --> E[Slack interaction payload]
E --> F[Typed action dispatch]
Decision needed
Why: The item carries the protected maintainer label and is authored by a repository member, so this workflow must leave the final merge decision to an explicit maintainer judgment. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -109, Tests +46, Other 0. Total -63 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land one canonical Slack rendering path once the exact PR head has completed its required CI, while retaining the deprecated helper as the narrow legacy-to-presentation adapter. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors an existing renderer rather than reporting a failing user flow; source inspection establishes the intended legacy-to-canonical mapping. Is this the best way to solve the issue? Yes: converting the three legacy block variants through the existing SDK bridge and retaining Slack-specific rendering in the canonical owner removes duplicate policy without adding a parallel compatibility path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b8d6e799a31d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Slack maintained two complete implementations for rendering the same text, button, and select controls. That duplication made action authorization, Slack limits, callback identities, and ordered delivery harder to keep consistent as interactive presentation evolved.
Why This Change Was Made
The shipped deprecated
buildSlackInteractiveBlockscompatibility function keeps its exact public name, signature, export, and behavior, but now adapts legacy values through the existing SDK bridge and delegates to Slack's canonical presentation renderer. This removes 109 production lines without changing any public SDK, configuration, authorization, or transport contract. The assertion-safety inventory is reduced by exactly one because the deleted implementation contained an obsolete unsafe cast.User Impact
Slack messages, approval prompts, question choices, callbacks, URLs, block ordering, control offsets, and platform size limits behave exactly as before. Existing integrations calling the deprecated public helper continue working unchanged.
Evidence