Skip to content

Fixed status output to use auth information from AuthManager - #6529

Merged
etraut-openai merged 2 commits into
mainfrom
etraut/status_auth
Nov 12, 2025
Merged

etraut-openai merged 2 commits into
mainfrom
etraut/status_auth

Conversation

@etraut-openai

@etraut-openai etraut-openai commented Nov 12, 2025 •

Copy link
Copy Markdown
Contributor

This PR addresses #6360. The root problem is that the TUI was directly loading the auth.json file to access the auth information. It should instead be using the AuthManager, which records the current auth information. The auth.json file can be overwritten at any time by other instances of the CLI or extension, so its information can be out of sync with the current instance. The /status command should always report the auth information associated with the current instance.

An alternative fix for this bug was submitted by @chojs23 in this PR. That approach was only a partial fix.

@etraut-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/status/helpers.rs Resolved
@etraut-openai

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. 👍

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@etraut-openai
etraut-openai merged commit ad09c13 into main Nov 12, 2025
@etraut-openai
etraut-openai deleted the etraut/status_auth branch November 12, 2025 18:26
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants