Scope generation idempotency keys per user instead of globally #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
packages/db/prisma/schema.prismamakesGenerationRequest.idempotencyKeyglobally unique even though reuse checks inpackages/db/src/generation-store.tsare user-scoped.Why this matters
Two different users can collide on the same idempotency key and trigger a server error or cross-tenant contention on a field that should only be unique within a user scope.
Acceptance criteria