Repository navigation
fix(slack): prefer configured slash command - #104736
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 8:02 PM ET / July 12, 2026, 00:02 UTC. Summary PR surface: Source 0, Tests +17. Total +17 across 2 files. Reproducibility: yes. Current main deterministically chooses native registration first, leaving the explicitly configured Slack command without a Bolt listener when both modes resolve enabled; this matches the reported timeout. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Merge the focused branch-order fix after normal Slack owner review, preserving the documented mutually exclusive command modes and the regression test that locks configured-command precedence. Do we have a high-confidence way to reproduce the issue? Yes. Current main deterministically chooses native registration first, leaving the explicitly configured Slack command without a Bolt listener when both modes resolve enabled; this matches the reported timeout. Is this the best way to solve the issue? Yes. Reordering the two existing mutually exclusive branches is the narrowest maintainable fix and matches the documented single-command-versus-native-command contract without adding configuration or compatibility state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02dc25a1b51f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source 0, Tests +17. Total +17 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (5 earlier review cycles)
|
|
/review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review I removed the startup source-config/runtime-selector change. The live failure happened before the slash handler ran: native commands were enabled first, so the explicit tenant command was never registered or acknowledged. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* fix(slack): preserve resolved secrets for slash replies * fix(slack): register configured slash command with native commands * fix(slack): preserve slash config refresh semantics * refactor(slack): keep slash fix focused --------- Co-authored-by: Sarah Fortune <[email protected]>
What Problem This Solves
Fixes Slack slash commands timing out when an explicit tenant command is configured while native Slack commands are enabled.
Root Cause
The Slack monitor treated native commands and the configured tenant command as mutually exclusive, but checked native commands first:
Because native commands are enabled by default, an explicit command such as
/clawwas never registered. Slack routed the command to the app, but no Bolt handler acknowledged it, so users saw the generic "app did not respond" failure.Fix
Keep the command modes mutually exclusive, but let explicit tenant configuration win:
The regression test verifies that an enabled configured slash command registers its matcher and does not also register native
/usage.Why the Runtime-Config Change Was Removed
An earlier revision added startup source-config matching around
getRuntimeConfigSnapshot(). That was unnecessary and made the fix harder to reason about:The final patch restores the straightforward runtime lookup:
Evidence
/claw statusreturned Slack's generic "app did not respond" failure while Socket Mode and the app credentials were healthy./claw statusreturned an ephemeral operational status response./claw helpreturned the ephemeral help menu.92924d0; the later runtime-config experiment was removed, so final headd8f8522retains the already-proven registration behavior.