Repository navigation
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
There was a problem hiding this comment.
💡 Codex Review
https://github.com/openai/codex/blob/e1ecc81e88b12e0adc8dccfb3d97563bdfb07a31/codex-rs/tui/src/status/tests.rs#L114-L120
Update status tests for new account_info argument
The signature of new_status_output now takes an account_info parameter, but the tests still call it with the old six-argument form. For example, this call omits the new argument, so cargo test -p codex-tui will fail to compile. Add an explicit account_info argument (likely None for these tests) at each call site in this module.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
I have read the CLA Document and I hereby sign the CLA |
|
Thanks for the contribution. I noticed that you also changed the pinned version of some dependencies in |
|
Also, it looks like some of the CI tests are failing. Please address those failures. |
|
Hi @etraut-openai, thanks for reply. I fixed the failing issues. |
|
I took a closer look at your PR. I think there's a better way to fix this problem. I've prepared a separate PR here. The root problem here is that the code for the I'm going to close this PR in favor of the other one. I'll have one of my colleagues review my PR, but you're welcome to do so too. |
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](#6495). That approach was only a partial fix.
…6529) This PR addresses openai#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](openai#6495). That approach was only a partial fix.
…6529) This PR addresses openai#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](openai#6495). That approach was only a partial fix.
This PR addresses openai/codex#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](openai/codex#6495). That approach was only a partial fix.
…6529) This PR addresses openai#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](openai#6495). That approach was only a partial fix.
…6529) This PR addresses openai#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](openai#6495). That approach was only a partial fix.
This PR addresses openai/codex#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](openai/codex#6495). That approach was only a partial fix.
Currently the /status command reads account information from the global auth.json file. When using two accounts(or keys) with different session, the status command shows the recent account information.
This PR fixes /status command to displays session-specific account information instead of reading from the globally shared auth.json file.
Fixes #6360