Skip to content

fix: distinguish accounts by email and plan#3

Draft
ThWink wants to merge 1 commit into
mileson:mainfrom
ThWink:email-plan-account-identity
Draft

fix: distinguish accounts by email and plan#3
ThWink wants to merge 1 commit into
mileson:mainfrom
ThWink:email-plan-account-identity

Conversation

@ThWink

@ThWink ThWink commented Jun 4, 2026

Copy link
Copy Markdown

Summary

  • distinguish saved ChatGPT accounts by record_key first, then normalized email + plan type
  • allow the same email to keep separate Plus and Team archives instead of overwriting by email alone
  • include regression tests for same-email/different-plan and same-email/same-plan identity matching

Root Cause

The archive lookup fell back to matching only the email address when record_key was not available. That caused accounts using the same email but different plans, such as Plus and Team, to be treated as the same saved account.

Validation

  • python -m unittest discover -s . -p 'test_*.py'
  • python codex-switcher.py --help

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