@@ -25,11 +25,7 @@ import { useMemo } from "react";
2525import { Pressable , View , type ColorValue } from "react-native" ;
2626import { AppText as Text } from "../../components/ui/AppText" ;
2727import { SymbolView } from "../../components/ui/AppSymbol" ;
28- import {
29- ProviderIcon ,
30- ProviderInstanceIcon ,
31- providerInstanceNameLabel ,
32- } from "../../components/ProviderIcon" ;
28+ import { ProviderIcon , ProviderInstanceIcon } from "../../components/ProviderIcon" ;
3329import { environmentThreadDetails } from "../../state/threads" ;
3430import { serverEnvironment } from "../../state/server" ;
3531import { ThreadContextDivider } from "./thread-context-divider" ;
@@ -179,21 +175,10 @@ function HandoffEndpoint(props: {
179175 props . model ??
180176 ( provider ? resolveProviderInstanceDisplayName ( provider ) : props . instanceId ) ;
181177 const showBadge = provider !== undefined && shouldShowInstanceBadge ( provider , props . providers ) ;
182- const providerNameLabel =
183- provider === undefined
184- ? null
185- : providerInstanceNameLabel ( {
186- provider : provider . driver ,
187- iconUrl : provider . iconUrl ,
188- displayName : resolveProviderInstanceDisplayName ( provider ) ,
189- showBadge,
190- } ) ;
191- const visibleLabel =
192- providerNameLabel && providerNameLabel !== label ? `${ providerNameLabel } · ${ label } ` : label ;
193178 return (
194179 < Pressable
195180 accessibilityRole = "button"
196- accessibilityLabel = { visibleLabel }
181+ accessibilityLabel = { label }
197182 accessibilityHint = "Show provider account"
198183 className = "min-h-6 max-w-full flex-row items-center justify-center gap-1.5"
199184 hitSlop = { { top : 8 , bottom : 8 } }
@@ -222,7 +207,7 @@ function HandoffEndpoint(props: {
222207 />
223208 ) }
224209 < Text numberOfLines = { 1 } className = "shrink text-xs text-foreground-muted" >
225- { visibleLabel }
210+ { label }
226211 </ Text >
227212 </ Pressable >
228213 ) ;
0 commit comments