Skip to content

Conversation

etraut-openai
Copy link
Collaborator

@etraut-openai etraut-openai commented Sep 14, 2025

This PR addresses an edge-case bug that appears in the VS Code extension in the following situation:

  1. Log in using ChatGPT (using either the CLI or extension). This will create an auth.json file.
  2. Manually modify config.toml to specify a custom provider.
  3. Start a fresh copy of the VS Code extension.

The profile menu in the VS Code extension will indicate that you are logged in using ChatGPT even though you're not.

This is caused by the get_auth_status method returning an auth_method: 'chatgpt' when a custom provider is configured and it doesn't use OpenAI auth (i.e. requires_openai_auth is false). The method should always return auth_method: None if requires_openai_auth is false.

The same bug also causes the NUX (new user experience) screen to be displayed in the VSCE in this situation.

@etraut-openai etraut-openai merged commit e5dd7f0 into main Sep 15, 2025
19 checks passed
@etraut-openai etraut-openai deleted the etraut/custom_provider branch September 15, 2025 01:27
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 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