fix(providers): auto-select single LiteLLM integration and preserve existing on update#246
Open
alezander86 wants to merge 1 commit intocodemie-ai:mainfrom
Open
fix(providers): auto-select single LiteLLM integration and preserve existing on update#246alezander86 wants to merge 1 commit intocodemie-ai:mainfrom
alezander86 wants to merge 1 commit intocodemie-ai:mainfrom
Conversation
8nevil8
reviewed
Apr 13, 2026
…xisting on update - Auto-select the integration when exactly one is configured for the project, eliminating the unnecessary manual selection prompt - Accept isUpdate parameter in getCredentials() to detect profile update flow - Preserve existing codeMieIntegration from active config when 0 integrations are returned during a profile update (fetch failure or transient API issue) - Keep prompt only when multiple integrations are available - Fix paths.js mock in statusline test to include getCodemieHome/getCodemiePath needed by ConfigLoader static initializer Generated with AI Co-Authored-By: codemie-ai <codemie.ai@gmail.com>
c90340a to
8b64199
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes EPMCDME-11736: LiteLLM project integration was not applied automatically in CLI when exactly one integration was configured. Users were forced to manually select it each time, and previously saved integrations were silently cleared on profile update failures.
Changes
isUpdate=true) and 0 integrations are returned (due to fetch failure or transient API issue), the existingcodeMieIntegrationfrom the active config is preserved and reusedpaths.jsmock inclaude.plugin.statusline.test.tsto includegetCodemieHome/getCodemiePathexports required byConfigLoaderstatic initializerImpact
Before: User always sees "Select LiteLLM integration (Optional)" prompt defaulting to "None", even when only one integration exists. A previously saved integration could be cleared after a failed fetch on subsequent
codemie setupruns.After: Single integration is auto-selected with a confirmation message
✓ Auto-selected LiteLLM integration: <alias>. On update with fetch failure, existing integration is reused withℹ️ Reusing saved LiteLLM integration: <alias>.Checklist