Skip to content

Fix critical account deletion, payment, and chat billing bugs#9

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-e8f5
Draft

Fix critical account deletion, payment, and chat billing bugs#9
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-e8f5

Conversation

@cursor

@cursor cursor Bot commented Jun 23, 2026

Copy link
Copy Markdown

Summary

  • delete user-owned data explicitly for admin and self-service account deletion so SQLite/non-cascade deployments do not retain PII
  • validate PayPal payment ownership before executing/capturing payments and credit only the authenticated owner
  • fail chat turns when the required token ledger charge cannot be recorded, and require sufficient balance for the full platform-token cost

Validation

  • python3 -m unittest backend.tests.test_admin_service backend.tests.test_auth_service backend.tests.test_paypal_service backend.tests.test_chat_turn_service
Open in Web View Automation 

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.

1 participant