vscode-gitlens
vscode-gitlens copied to clipboard
Problem with AI status displaying after changing of the org settings
Description
In #4300 (specifically in #4398) it's became possible to refresh org settings without reloading the window. So, the current bug has been revealed.
Steps to reproduce
-
Enable AI for your org, enable OpenAI and Azure.
-
In GitLens sync settings, select OpenAI provider and its model.
-
Disable OpenAI
-
Sync your settings:
- OpenAI model stops being shown as selected, but it says just "AI" ⚠️
- the stars icon gets dimmed
-
Re-Launch GitLens (or reload window)
- Sometimes you see that OpenAI is visible and selected in the status (unfortunately it's not stable :-(
Expected result:
- in no.4 the message is different: instead of "AI" write "Select AI model to enable AI features"
- in no.5 you never see OpenAI (which is disabled) as selected after relaunch (if you can reproduce it, of course).