Skip to content

Commit 30201c2

Browse files
committed
refactor(mobile): keep ACP identification fix in thread controls
1 parent ae7b724 commit 30201c2

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

‎apps/mobile/src/features/threads/thread-handoff-row.tsx‎

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ import { useMemo } from "react";
2525
import { Pressable, View, type ColorValue } from "react-native";
2626
import { AppText as Text } from "../../components/ui/AppText";
2727
import { SymbolView } from "../../components/ui/AppSymbol";
28-
import {
29-
ProviderIcon,
30-
ProviderInstanceIcon,
31-
providerInstanceNameLabel,
32-
} from "../../components/ProviderIcon";
28+
import { ProviderIcon, ProviderInstanceIcon } from "../../components/ProviderIcon";
3329
import { environmentThreadDetails } from "../../state/threads";
3430
import { serverEnvironment } from "../../state/server";
3531
import { 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

Comments
 (0)