fix(webhooks): return empty 200 for Slack to close modals cleanly#3492
fix(webhooks): return empty 200 for Slack to close modals cleanly#3492waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Applies this behavior to both the normal success response path and the error handler in Written by Cursor Bugbot for commit 07822d1. Configure here. |
Greptile SummaryThis PR fixes a Slack webhook integration issue by returning an empty The change is applied in two places inside
The fix is well-scoped: Slack's Key points:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Slack
participant Webhook Route
participant queueWebhookExecution
participant Job Queue
Slack->>Webhook Route: POST /webhooks/trigger/{path}
Note over Webhook Route: handleSlackChallenge()<br/>(url_verification handled here)
Webhook Route->>queueWebhookExecution: foundWebhook, body, ...
alt Success path
queueWebhookExecution->>Job Queue: enqueue('webhook-execution', payload)
Job Queue-->>queueWebhookExecution: jobId
Note over queueWebhookExecution: provider === 'slack'
queueWebhookExecution-->>Slack: 200 (empty body)
Note over Slack: Modal closes cleanly ✓
else Error path (catch block)
queueWebhookExecution->>queueWebhookExecution: logger.error(...)
Note over queueWebhookExecution: provider === 'slack'
queueWebhookExecution-->>Slack: 200 (empty body)
Note over Slack: No error dialog shown to user
end
Last reviewed commit: a9e7f36 |
|
@greptile |
Summary
{"message": "Webhook processed"}view_submissionto close modals — a JSON body withoutresponse_actionis not a recognized format and causes errorsType of Change
Testing
Tested manually
Checklist