Skip to content

Conversation

@cameronmpalmer
Copy link

@cameronmpalmer cameronmpalmer commented Dec 22, 2025

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:
Screenshot 2025-12-22 at 11 50 44 AM

After:
(When "Haiku" is configured as default)

Screenshot 2025-12-22 at 11 52 55 AM

Changes

  • Modified modelPickerActionItem.ts to check model.metadata.isDefault property
  • Added "(Default)" text suffix to model label when isDefault is true
  • Enhanced tooltip to also show "(Default)" for consistency

Implementation Details

The implementation leverages the existing isDefault property 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:

const label = isDefault ? `${model.metadata.name} (Default)` : model.metadata.name;

Testing

Manually tested with:

  • Setting positron.assistant.models.preference.byProvider with various models
  • Switching between different defaults
  • Multiple providers with different defaults
  • Verified tooltip shows "(Default)" suffix

Screenshots attached showing the indicator in action.

Release Notes

New Features

  • Assistant model picker now shows a "(Default)" indicator next to the model configured as default for each provider

Add a "(Default)" text suffix to the model name in the model picker
dropdown to visually indicate which model is configured as the default
for each provider based on the positron.assistant.models.preference.byProvider
setting.

The indicator appears next to the model name (e.g., "Claude Haiku 4.5 (Default)")
and is also reflected in the tooltip. This helps users quickly identify their
configured default model when switching between models.

Fixes posit-dev#11166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assistant: provide visual indicator of default model in model picker

1 participant