feat: show active provider + model in API config selector#11292
feat: show active provider + model in API config selector#11292roomote[bot] wants to merge 1 commit intomainfrom
Conversation
Display the model ID alongside the config name in the ApiConfigSelector trigger button (e.g. "default · claude-sonnet-4-20250514") so users can immediately see which model is active for the current mode without clicking anything. Also enhances the tooltip to show provider info when the trigger text is truncated. Closes #11290
Reviewed the changes. Clean, minimal implementation that correctly uses existing
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
| displayName: modelId ? `${configName} · ${modelId}` : configName, | ||
| tooltipContent: modelId | ||
| ? `${configName}${currentConfig?.apiProvider ? ` (${currentConfig.apiProvider})` : ""} · ${modelId}` | ||
| : configName, |
There was a problem hiding this comment.
When modelId is absent, tooltipContent is set to configName -- the same value as displayName. This makes the tooltip redundant (identical to the button label). It also prevents the || t("chat:selectApiConfig") fallback on line 1318 from ever triggering, so the original instructional tooltip text is lost for any config with a non-empty name. Setting this branch to "" would let the i18n fallback work correctly when there is no extra model info to display.
| : configName, | |
| : "", |
Fix it with Roo Code or mention @roomote and request a fix.
Related GitHub Issue
Closes: #11290
Description
This PR attempts to address Issue #11290 by showing the active model ID alongside the API config name in the bottom bar of the chat, so users can immediately see which model is active for the current mode without clicking into settings.
Changes:
ChatTextArea.tsx: Modified theuseMemothat computescurrentConfigIdanddisplayNameto also look up the current config'smodelIdfromlistApiConfigMetaand build a richer display string like"configName · modelId"(e.g.,"default · claude-sonnet-4-20250514").Tooltip enhancement: The tooltip on the
ApiConfigSelectortrigger now shows the full provider + model info (e.g.,"default (anthropic) · claude-sonnet-4-20250514") so that even when the trigger text is truncated, hovering reveals the complete info.No changes to
ApiConfigSelector.tsxitself were needed -- it already renders whateverdisplayNameit receives and usestitleas tooltip content. The enhanced data flows through naturally.This is a minimal, non-breaking change that:
listApiConfigMeta)Test Procedure
ChatTextArea.spec.tsx:modelIdis availablemodelIdis not availablePre-Submission Checklist
Documentation Updates
Additional Notes
Feedback and guidance are welcome.
Important
Enhances
ChatTextArea.tsxto display active model ID with API config name and updates tooltip, with tests inChatTextArea.spec.tsx.ChatTextArea.tsx: UpdatesuseMemoto includemodelIdindisplayNameandtooltipContentfor API config display.ChatTextArea.spec.tsx: Adds tests to verify display of model ID with config name and only config name whenmodelIdis unavailable.This description was created by
for 80b3d8c. You can customize this summary. It will automatically update as commits are pushed.