Skip to content

Commit 53cc68f

Browse files
committed
hide AgentExternal if feature is disabled
1 parent fd1d06f commit 53cc68f

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)