VSCode Codex Version 26.818.41509 unexpected status 401 Unauthorized
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the IDE extension are you using?
26.818.41509
What subscription do you have?
plus
Which IDE are you using?
VS Code 1.134.0
What platform is your computer?
Darwin 22.6.0 x86_64 i386
What issue are you seeing?
I get the following trying any prompt.
vscode -- output -- codex:
[error] [CodexMcpConnection] cli: message="codex_models_manager::manager: failed to refresh available models: unexpected status 401 Unauthorized: {"detail":"Unauthorized"}, url: https://chatgpt.com/backend-api/codex/models?client_version=0.149.0..."
What steps can reproduce the bug?
N/A
What is the expected behavior?
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VS Code CodexMcpConnection path shown in the log and trace the request to the chatgpt.com codex/models endpoint during model refresh. Reproduce the 401 if possible and determine what successful authentication and model refresh should look like; done means prompts no longer fail with this Unauthorized response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, vscode
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100