@@ -33,6 +33,8 @@ import { useSync } from "@/context/sync"
3333import { FileIcon } from "@opencode-ai/ui/file-icon"
3434import { Button } from "@opencode-ai/ui/button"
3535import { Icon } from "@opencode-ai/ui/icon"
36+ import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
37+ import type { IconName } from "@opencode-ai/ui/icons/provider"
3638import { Tooltip , TooltipKeybind } from "@opencode-ai/ui/tooltip"
3739import { IconButton } from "@opencode-ai/ui/icon-button"
3840import { Select } from "@opencode-ai/ui/select"
@@ -1560,6 +1562,12 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
15601562 fallback = {
15611563 < TooltipKeybind placement = "top" title = "Choose model" keybind = { command . keybind ( "model.choose" ) } >
15621564 < Button as = "div" variant = "ghost" onClick = { ( ) => dialog . show ( ( ) => < DialogSelectModelUnpaid /> ) } >
1565+ < Show when = { local . model . current ( ) ?. provider ?. id } >
1566+ < ProviderIcon
1567+ id = { local . model . current ( ) ! . provider . id as IconName }
1568+ class = "size-4 shrink-0"
1569+ />
1570+ </ Show >
15631571 { local . model . current ( ) ?. name ?? "Select model" }
15641572 < Icon name = "chevron-down" size = "small" />
15651573 </ Button >
@@ -1569,6 +1577,12 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
15691577 < ModelSelectorPopover >
15701578 < TooltipKeybind placement = "top" title = "Choose model" keybind = { command . keybind ( "model.choose" ) } >
15711579 < Button as = "div" variant = "ghost" >
1580+ < Show when = { local . model . current ( ) ?. provider ?. id } >
1581+ < ProviderIcon
1582+ id = { local . model . current ( ) ! . provider . id as IconName }
1583+ class = "size-4 shrink-0"
1584+ />
1585+ </ Show >
15721586 { local . model . current ( ) ?. name ?? "Select model" }
15731587 < Icon name = "chevron-down" size = "small" />
15741588 </ Button >
@@ -1583,10 +1597,10 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
15831597 >
15841598 < Button
15851599 variant = "ghost"
1586- class = "text-text-base _hidden group-hover/prompt-input:inline-block"
1600+ class = "text-text-base _hidden group-hover/prompt-input:inline-block capitalize text-12-regular "
15871601 onClick = { ( ) => local . model . variant . cycle ( ) }
15881602 >
1589- < span class = "capitalize text-12-regular" > { local . model . variant . current ( ) ?? "Default" } </ span >
1603+ { local . model . variant . current ( ) ?? "Default" }
15901604 </ Button >
15911605 </ TooltipKeybind >
15921606 </ Show >
0 commit comments