Skip to content

[codex] add referral invites to /usage#30313

Draft
jayp-oai wants to merge 1 commit into
mainfrom
codex/tui-referral-invites
Draft

[codex] add referral invites to /usage#30313
jayp-oai wants to merge 1 commit into
mainfrom
codex/tui-referral-invites

Conversation

@jayp-oai

@jayp-oai jayp-oai commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a temporary client-owned referral invite flow under /usage
  • call the existing ChatGPT referral HTTP endpoints directly instead of adding app-server RPC/protocol endpoints
  • reuse the embedded app-server auth session, pin user/workspace identity and confirmed reward terms, and hide the flow when a referral client is unavailable
  • require email entry plus explicit confirmation, revalidate the offer immediately before send, and send the invite with a no-retry/no-redirect POST client

Scope

  • 24 files, 1,203 additions, 26 deletions
  • no new backend endpoint or public app-server API

Testing

  • cargo check -p codex-login -p codex-chatgpt -p codex-tui
  • just test -p codex-chatgpt (8 passed)
  • just test -p codex-tui referrals (7 passed)
  • just fix -p codex-login -p codex-chatgpt -p codex-tui
  • just fmt
  • git diff --check origin/main...HEAD
  • Autoreview: clean, no accepted/actionable findings

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