Detail bug report: View on Detail
Closes #169
On the thread path (emitThreadActions in apps/worker/src/jobs/pr-surface.ts, used for comment.created and schedule.matched triggers), delivery payloads were attached only to webhook rows — discord rows were left without a payload. The execution loop also skipped only webhook rows, so discord rows fell through to toForgeAction, whose default: branch re-typed them as a block forge action. This meant:
REQUEST_CHANGES review ("Blocked. See the comment.") on the PR, and marked executed — so it would never be delivered.recorded with no payload, and the deliver-webhook cron permanently destroyed it as "malformed".The PR path (emitPrSurface) already handled both webhook and discord correctly; the thread path was never updated when Discord nodes were restored in a prior revert.
Mirrored the PR path inside emitThreadActions:
webhook and discord alike — both get a WebhookPayload attached.toForgeAction now throws on webhook/discord kinds instead of silently falling through to the default: block branch — so a future delivery kind can't quietly become a bogus review.I added a throw in toForgeAction for delivery kinds rather than just fixing the two loops. The loops are the real fix, but the default: branch accepting unknown kinds was the oversight that let this bug stay silent — making it loud prevents the next delivery kind from biting the same way. The throw is unreachable from the two existing call sites (both skip delivery kinds before calling toForgeAction), so it's purely a guard.
toForgeAction confirming webhook and discord rows throw (including with a live review id, which previously fell through to update-review).comment.created and schedule.matched): discord rows get a payload attached, are not mis-executed as a block, and are delivered by the deliver-webhook cron — with and without forge credentials. A guard test confirms non-delivery actions (e.g. lock) still execute, so the fix doesn't over-skip.deliver-webhook, schedule-tick, sweep-actions, review-lifecycle), typecheck, and biome all pass.Automatic Fixes PRs can be configured here.
The latest updates on your projects. Learn more about Unkey Deploy
| Name | Status | Preview | Inspect | Updated (UTC) |
|---|---|---|---|---|
| tripwire / web (preview) | Ready | Visit Preview | Inspect | Nov 7, 2026 6:54am |
@detail-app[bot], Tripwire blocked this change request.
Rate limit: You opened 56 change requests in a short time. Wait before you open another.
A new commit will not fix this.
If you think it should merge anyway, say so in a comment. A maintainer will decide.
Capy couldn't review this pull request because grim's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews.
Sign in to comment.