You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes GitKraken AI model selection showing 'No models found' - fixes#4963
- Removes silent error swallowing in GitKrakenProvider.getModels() — errors now propagate so callers can handle them
- Checks for a valid auth token (getApiKey) before making the API request, returning [] early if unauthenticated
- Passes the access token explicitly to getGkHeaders() instead of relying on the internal lookup that threw AuthenticationRequiredError silently
- Adds null guard for result.data to handle missing/null API response fields
- Removes leftover debugger statement
- Catches getModels() errors in showAIModelPicker and shows 'Unable to load models' with the error description instead of the generic 'No models found'
- Adds defensive try/catch in getOrUpdateModel for getModels() call used to restore a previously configured model
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
12
12
13
13
### Fixed
14
14
15
+
- Fixes _GitKraken AI_ model selection showing 'No models found' when switching AI provider/model ([#4963](https://github.com/gitkraken/vscode-gitlens/issues/4963))
15
16
- Fixes provider id mismatch for cloud-connected self-hosted integrations ([#5031](https://github.com/gitkraken/vscode-gitlens/issues/5031))
16
17
- Fixes an issue where the _Launchpad_ would fail to show any pull requests when one integration provider had an authentication failure — now shows partial results with an error indicator ([#4492](https://github.com/gitkraken/vscode-gitlens/issues/4492))
0 commit comments