Repository navigation
fix(slack): keep private menu replies in their original thread - #128341
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 3:27 PM ET / 19:27 UTC. ClawSweeper reviewWhat this changesThe PR preserves a Slack thread timestamp when native argument-menu actions must use the private Web API fallback, with tests for threaded, top-level, container, and message payloads. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer merge review. The focused owner-boundary change appears correct with targeted sibling coverage, but this checkout cannot construct the current-main merge result or inspect the installed Slack Bolt types, and fresh GitHub reads are unavailable. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherNative Slack command menus invoke the Slack plugin’s action handler. When Slack provides no response URL, that handler sends ephemeral replies through the Web API and now carries the clicked message’s parent thread to that API call. flowchart LR
A[Slack menu click] --> B[Action handler]
B --> C{Response URL present?}
C -->|Yes| D[Response URL reply]
C -->|No| E[Ephemeral Web API reply]
E --> F[Parent thread timestamp]
F --> G[Private reply in original thread]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +36. Total +39 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the direct fallback-boundary propagation, then confirm the exact merge result and a redacted Slack interaction showing both authoritative parent-thread sources before landing. Do we have a high-confidence way to reproduce the issue? No executed current-main reproduction is available: the source and focused harness identify the fallback path, but this read-only checkout lacks pnpm and no real Slack setup is available. Is this the best way to solve the issue? Yes, conditionally: carrying the already-authoritative parent timestamp into the existing fallback is the narrowest owner-boundary repair and leaves response-URL behavior unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b3b33d24195d. 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 (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where Slack users clicking a native argument-menu button inside a message thread would receive private Web API fallback responses at the top of the channel when Slack did not provide an action responder.
Why This Change Was Made
The Slack action owner now preserves the authoritative parent-thread timestamp already present on the action container or message when calling Slack's native ephemeral-message API. The existing private action type is narrowed to the upstream Block Kit action contract; authorization, workspace validation, normal response URLs, generic slash-command fallbacks, and unthreaded replies are unchanged.
User Impact
Slack argument-menu errors and successful multi-part command replies remain in the conversation thread where the user clicked. Existing top-level replies and the normal Slack response-URL delivery path behave exactly as before.
Evidence
thread_tsfor container-provided and message-provided parent timestamps; the existing top-level case passed.d4e55093fba6e563ee757bd56dfc8d45c26abbce.