Skip to content

Recover OpenAI subscription authentication from Telegram - #22

Merged
philippgerard merged 1 commit into
mainfrom
codex/openai-telegram-recovery
Sep 22, 2026
Merged

philippgerard merged 1 commit into
mainfrom
codex/openai-telegram-recovery

Conversation

@philippgerard

Copy link
Copy Markdown
Owner

Expired or revoked OpenAI subscription credentials now produce actionable Telegram messages. The owner can run /login openai in a private chat, approve a device code in their browser, and resume using Lethe without CLI access or a restart. /login cancel and cached authentication status remain available without a working model.

The OAuth client serializes refreshes within the process, retries an unauthorized request once, atomically persists rotated credentials, and retains them after a temporary save failure. Background notices are throttled after successful delivery and release the interactive gate before backoff. Sign-in codes are omitted from reaction metadata, and cancellation distinguishes pending approval from credentials already saved.

Validation: 553 local Rust tests passed; release build, cargo fmt --check, and git diff --check passed. Loopback regressions cover refresh concurrency, credential rotation and persistence failures, bounded retries, device login, cancellation, and sign-in code redaction. Security and functional reviews reported no remaining concrete findings on the final source. Live OpenAI approval and Telegram recovery will require the owner's sign-in after deployment.

Operational assumptions: one Lethe process per token file, writable persistent credentials, and no nonempty OPENAI_AUTH_TOKEN override for browser renewal. Existing CI and release provenance gates remain unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T14:16:57.625940Z 854c264 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@philippgerard
philippgerard merged commit 70d129a into main Sep 22, 2026
5 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.

1 participant