From 8d04c026feaae95d13411cc3733217b2be31433c Mon Sep 17 00:00:00 2001
From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
Date: Thu, 27 Aug 2026 14:54:14 -0700
Subject: [PATCH] fix(settings): call getAgentLabel once per agent
Keeps the pane-agent-identity ratchet at two occurrences and avoids a
duplicate lookup for the tooltip label.
---
.../settings/NativeChatSupportedAgents.tsx | 27 ++++++++++---------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/renderer/src/components/settings/NativeChatSupportedAgents.tsx b/src/renderer/src/components/settings/NativeChatSupportedAgents.tsx
index 18d2bf9024a..d63353956c6 100644
--- a/src/renderer/src/components/settings/NativeChatSupportedAgents.tsx
+++ b/src/renderer/src/components/settings/NativeChatSupportedAgents.tsx
@@ -14,18 +14,21 @@ export function NativeChatSupportedAgents(): React.JSX.Element {
'Supported agents:'
)}
- {NATIVE_CHAT_SUPPORTED_AGENT_LIST.map((agent) => (
-
-
-
-
-
-
-
- {getAgentLabel(agent)}
-
-
- ))}
+ {NATIVE_CHAT_SUPPORTED_AGENT_LIST.map((agent) => {
+ const label = getAgentLabel(agent)
+ return (
+
+
+
+
+
+
+
+ {label}
+
+
+ )
+ })}
)