Skip to content

Deduplicate clawtributor claim requests#10

Merged
thewilloftheshadow merged 2 commits into
openclaw:mainfrom
fuller-stack-dev:codex/claim-dedupe
May 18, 2026
Merged

Deduplicate clawtributor claim requests#10
thewilloftheshadow merged 2 commits into
openclaw:mainfrom
fuller-stack-dev:codex/claim-dedupe

Conversation

@fuller-stack-dev
Copy link
Copy Markdown
Contributor

Summary

  • Add a persistent claim_requests table with a unique (guild_id, user_id) constraint.
  • Block duplicate /claim runs and duplicate OAuth callback submissions once a claim exists.
  • Record accept/reject decisions against the claim record.
  • Add a Bun migration test covering the unique claim constraint.

Verification

  • bun run typecheck
  • bun test
  • git diff --check

Migration note

I could not run the remote D1 migration from this environment because Wrangler is not authenticated here and CLOUDFLARE_API_TOKEN is not set. Before deploy/release, run bun run db:apply:remote with production Cloudflare credentials.

Copy link
Copy Markdown
Member

@thewilloftheshadow thewilloftheshadow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix a couple things

@thewilloftheshadow thewilloftheshadow merged commit 33a9884 into openclaw:main May 18, 2026
2 checks passed
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.

2 participants