Assistant: Add default model indicator in model picker #11189
+11
−2
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.
Fixes #11166
Summary
Adds a visual indicator showing which model is configured as the default for each provider in the Assistant model picker dropdown.
When a user has configured
positron.assistant.models.preference.byProvider, the default model for each provider now displays with a "(Default)" text suffix next to the model name.Before:

After:
(When "Haiku" is configured as default)
Changes
modelPickerActionItem.tsto checkmodel.metadata.isDefaultpropertyisDefaultis trueImplementation Details
The implementation leverages the existing
isDefaultproperty that's already being set by the backend (extensions/positron-assistant/src/modelResolutionHelpers.ts) based on user preferences. No backend changes were needed.The frontend simply detects this property and adds the visual indicator:
Testing
Manually tested with:
positron.assistant.models.preference.byProviderwith various modelsScreenshots attached showing the indicator in action.
Release Notes
New Features