Just merge it.*

*After Zeus has run it.

Zeus checks out your pull request and runs it in a sandbox. It posts a review to GitHub with evidence from the run.

zeus reviewed just now PR #1842, a3f9c21, retry refunds after a provider timeout

⚡ Do not merge this pull request yet.

The retry can create a second refund.

apps/api/src/refunds.ts:142

The payment provider creates the refund, but its response times out. The retry starts without checking the saved refund ID.

Test: Zeus forced the response to time out after the first refund. It then ran the retry.

Zeus reproduced the problem in the sandbox.

$ npx tsx .zeus/probe-refund-retry.ts refund re_84h2 issued 201 provider timeout — retrying refund re_91m7 issued 201 FAIL expected 1 refund, found 2

Fix the issue before you merge the pull request.

Start with one repository for free.

Starter

$0No card is required.
  • One repository and one pull request author
  • 10 reviews each month
Start free

Team

$25for each active author each month
  • 25 reviews for each author
  • $1 for each additional review
Choose Team

Enterprise

Custom
  • Single sign-on (SSO)
  • Service level agreements
  • Private VPC deployment
  • Custom commercial terms
Contact us

Security

Isolated reviews

Each review runs in a separate microVM that is deleted when the review ends.

Secrets stay in the review

Secrets are decrypted only for the review. Zeus does not log them or save them to the microVM.

Encrypted secrets

Secrets are encrypted with AES 256 at rest and TLS in transit. The master key is stored separately from the database.