GeezerVison is showing github.com — Offer sign-in when a provider rejects its saved sign-in (0.0.99) by glenn-jocher · Pull Request #294 · ultralytics/lite
Conversation
glenn-jocher
commented
Nov 27, 2026
•
edited by UltralyticsAssistant
Loading
Uh oh!
There was an error while loading. Please reload this page.
When OpenAI revokes a Codex sign-in, `~/.codex/auth.json` stays on disk, so Lite still shows Codex as signed in, and the Usage tab only shows the raw 401 from the app server. Restarting can't fix it, because Codex reuses the same revoked token.
- Usage tab: a 401 from a sign-in provider now says the saved sign-in was rejected and offers Sign in again, which opens the same sign-in tab as Settings.
- Usage reload on restart: the Usage panel re-reads when the session starts again. Before, only reselecting the session from the sidebar remounted it, so the terminal's Restart button left the old error showing after a successful sign-in.
- Bump to 0.0.99.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
The Usage panel now offers a sign-in recovery action for provider errors containing 401 and reloads usage when the session’s running state changes.
📊 Key Changes
- Replaced matching
401 errors with a message identifying the session’s agent and a Sign in again button that opens the existing sign-in flow.
- Keyed the Usage panel by the session’s running state as well as its reload counter, so it remounts and rereads usage when that state changes.
- Bumped the app version from
0.0.98 to 0.0.99.
🎯 Purpose & Impact
- After a provider rejects a saved sign-in, users can start sign-in again from Usage; after restarting the session, the panel rereads usage instead of retaining its previous error.
📋 Skipped 1 file (lock files, generated, images, etc.)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
👋 Hello @glenn-jocher, thank you for submitting a ultralytics/lite 🚀 PR! This automated message confirms your contribution was received, and an Ultralytics engineer will assist with the review. To ensure a seamless integration of your work, please review the following checklist:
- ✅ Define a Purpose: Clearly explain the purpose of your fix or feature in your PR description, and link to any relevant issues. Ensure your commit messages are clear, concise, and adhere to the project's conventions.
- ✅ Synchronize with Source: Confirm your PR is synchronized with the
ultralytics/lite main branch. If it's behind, update it by clicking the 'Update branch' button or by running git pull and git merge main locally.
- ✅ Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. If any checks fail, please address the issues.
- ✅ Update Documentation: Update the relevant documentation for any new or modified features.
- ✅ Add Tests: If applicable, include or update tests to cover your changes, and confirm that all tests are passing.
- ✅ Sign the CLA: Please ensure you have signed our Contributor License Agreement if this is your first Ultralytics PR; the CLA check will comment with signing instructions if needed.
- ✅ Minimize Changes: Limit your changes to the minimum necessary for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee
For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔍 PR Review
Made with ❤️ by Ultralytics Actions
Reviewed the sign-in recovery UI, reload behavior, and version bump. The restart reload path looks sound, but the recovery prompt is hidden for standard OpenAI Codex sessions, so the primary reported scenario remains unresolved.
💬 Posted 1 inline comment
- ⚠️ HIGH
src/inspector.tsx:2104 Standard Codex sessions are created with session.provider === "openai" (new-session-dialog.tsx), so this condition hides the re-sign-in prompt for the PR’s main scenario: a 401 from a revoked Codex sign-in. Allow the OpenAI Codex provider here while continuing to exclude custom Codex providers.
📋 Skipped 1 file (lock files, generated, images, etc.)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
) : null}
|
|
|
</div>
|
|
|
{error ? (
|
|
|
{error && !session.provider && /\b401\b/.test(error) ? (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚠️ HIGH: Standard Codex sessions are created with session.provider === "openai" (new-session-dialog.tsx), so this condition hides the re-sign-in prompt for the PR’s main scenario: a 401 from a revoked Codex sign-in. Allow the OpenAI Codex provider here while continuing to exclude custom Codex providers.
Suggested change:
|
{error && !session.provider && /\b401\b/.test(error) ? ( |
|
{error && (!session.provider || (session.agent === "codex" && session.provider === "openai")) && /\b401\b/.test(error) ? ( |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
🎉 This PR has been merged—thank you, @glenn-jocher! The Usage panel now offers a direct way to restart sign-in after provider 401 errors and reloads usage when the session’s running state changes.
“If I have seen further it is by standing on the shoulders of giants.” — Isaac Newton
Building on the existing sign-in flow makes recovery more straightforward.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
bug
Something isn't working
fixed
Bug has been resolved
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|