Skip to content

Harden Slack team chat bridge delivery - #543

Draft
elie222 wants to merge 2 commits into
cursor/supersede-pr-536-slack-bridge-09defrom
cursor/harden-slack-team-chat-bridge-7bb4
Draft

Harden Slack team chat bridge delivery#543
elie222 wants to merge 2 commits into
cursor/supersede-pr-536-slack-bridge-09defrom
cursor/harden-slack-team-chat-bridge-7bb4

Conversation

@elie222

@elie222 elie222 commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Why

Supersedes fork PR #540 (Harden Slack team chat bridge delivery) from @wflanagan (William Flanagan / omalab/rakazo). That fork tip was unpushable (403 even with maintainerCanModify), so this re-hosts the work on elie222/rakazo onto the same #538 base (cursor/supersede-pr-536-slack-bridge-09de).

Greptile flagged a delivery-reservation race on the original hardening: reclaiming delivering without an exclusive lease could let two instances both send.

What changed

  • Cherry-picks William’s hardening (6ca8792): Slack workspace pinning, idempotencyKeyclient_msg_id, ambient promote-before-ignore, and delivery reservation.
  • Fixes reservation reclaim: exclusive runningdelivering with a ~2-minute nextAttemptAt lease; abandoned delivering rows are reclaimed only when nextAttemptAt is null or ≤ now, refreshing the lease in the same update so only one instance wins.
  • Regression tests: future lease does not send; past/null lease reclaims once.

Tested

  • pnpm exec vitest run apps/api/src/team-chat-bridge.test.ts packages/adapters/src/slack-team-chat.test.ts (26 passed)
  • pnpm exec biome check on touched files

No UI changes (no screenshots).

Credit: William Flanagan (@wflanagan). Do not merge until review is complete.

Open in Web Open in Cursor 

wflanagan and others added 2 commits September 3, 2026 11:00
(cherry picked from commit 6ca8792)
Claim running→delivering with a 2-minute lease, and reclaim abandoned
delivering rows only when nextAttemptAt is null or expired so concurrent
instances cannot both send.

Co-authored-by: William Flanagan <wflanagan@audienti.com>
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
rakazo-www Ready Ready Preview Sep 3, 2026 11:08am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Playwright screenshots

Feature frames for this PR:

Open screenshot gallery · Dashboard · CI run

Updated for commit a6d6deb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants