Skip to content

Commit ef5330b

Browse files
committed
hide AgentExternal if feature is disabled
1 parent 5fe436d commit ef5330b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/modules/resources/AgentRow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const AgentRow: FC<AgentRowProps> = ({
5959
onUpdateAgent,
6060
initialMetadata,
6161
}) => {
62-
const { browser_only } = useFeatureVisibility();
62+
const { browser_only, workspace_external_agent } = useFeatureVisibility();
6363
const appSections = organizeAgentApps(agent.apps);
6464
const hasAppsToDisplay =
6565
!browser_only || appSections.some((it) => it.apps.length > 0);
@@ -296,7 +296,8 @@ export const AgentRow: FC<AgentRowProps> = ({
296296
)}
297297

298298
{isExternalAgent &&
299-
(agent.status === "timeout" || agent.status === "connecting") && (
299+
(agent.status === "timeout" || agent.status === "connecting") &&
300+
workspace_external_agent && (
300301
<AgentExternal
301302
isExternalAgent={isExternalAgent}
302303
agent={agent}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy