From 91423b3285b59e3b82203358752ca041ac2c8669 Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Wed, 17 Jun 2026 11:04:47 +0800 Subject: [PATCH] feat(web-ui): disable ComputerUse agent for HarmonyOS Comment out ComputerUse agent and computer-use skill group features: - Remove ComputerUse from CORE_AGENT_IDS - Remove computeruse from mode description mapping - Comment out computeruse capabilities enrichment - Comment out ComputerUse core agent metadata - Comment out computer-use skill group in AgentsScene and SkillsSuiteView This disables desktop automation features that are not applicable on HarmonyOS touch platform. --- src/web-ui/src/app/scenes/agents/AgentsScene.tsx | 15 ++++++++------- .../src/app/scenes/agents/agentVisibility.ts | 4 +++- src/web-ui/src/app/scenes/agents/utils.ts | 4 ++-- .../scenes/skills/components/SkillsSuiteView.tsx | 6 +++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/web-ui/src/app/scenes/agents/AgentsScene.tsx b/src/web-ui/src/app/scenes/agents/AgentsScene.tsx index 1fb2b45225..399cced601 100644 --- a/src/web-ui/src/app/scenes/agents/AgentsScene.tsx +++ b/src/web-ui/src/app/scenes/agents/AgentsScene.tsx @@ -109,8 +109,8 @@ function getSkillGroupLabel(groupKey: string, t: TFunction<'scenes/agents'>): st switch (groupKey) { case 'office': return t('agentsOverview.skillGroups.office'); - case 'computer-use': - return t('agentsOverview.skillGroups.computerUse'); + // case 'computer-use': // disabled for HarmonyOS + // return t('agentsOverview.skillGroups.computerUse'); case 'meta': return t('agentsOverview.skillGroups.meta'); case 'team': @@ -266,11 +266,12 @@ const AgentsHomeView: React.FC = () => { accentColor: '#14b8a6', accentBg: 'rgba(20,184,166,0.10)', }, - ComputerUse: { - role: t('coreAgentsZone.modes.computerUse.role'), - accentColor: '#f59e0b', - accentBg: 'rgba(245,158,11,0.10)', - }, + // ComputerUse disabled for HarmonyOS + // ComputerUse: { + // role: t('coreAgentsZone.modes.computerUse.role'), + // accentColor: '#f59e0b', + // accentBg: 'rgba(245,158,11,0.10)', + // }, }), [t]); const coreAgents = useMemo(() => allAgents.filter((agent) => CORE_AGENT_IDS.has(agent.id)), [allAgents]); diff --git a/src/web-ui/src/app/scenes/agents/agentVisibility.ts b/src/web-ui/src/app/scenes/agents/agentVisibility.ts index 34031091ab..7fe3440da5 100644 --- a/src/web-ui/src/app/scenes/agents/agentVisibility.ts +++ b/src/web-ui/src/app/scenes/agents/agentVisibility.ts @@ -19,7 +19,9 @@ export const HIDDEN_AGENT_IDS = new Set([ ]); /** Core mode agents shown in the top zone only; excluded from overview zone list and counts. */ -export const CORE_AGENT_IDS = new Set(['agentic', 'Cowork', 'ComputerUse']); +// ComputerUse disabled for HarmonyOS +// export const CORE_AGENT_IDS = new Set(['agentic', 'Cowork', 'ComputerUse']); +export const CORE_AGENT_IDS = new Set(['agentic', 'Cowork']); /** Agents that appear in the bottom overview grid (same pool as filter chip counts). */ export function isAgentInOverviewZone( diff --git a/src/web-ui/src/app/scenes/agents/utils.ts b/src/web-ui/src/app/scenes/agents/utils.ts index deceffd259..873bc0a09b 100644 --- a/src/web-ui/src/app/scenes/agents/utils.ts +++ b/src/web-ui/src/app/scenes/agents/utils.ts @@ -7,7 +7,7 @@ const MODE_DESCRIPTION_KEY_BY_ID: Record = { plan: 'Plan', debug: 'Debug', cowork: 'Cowork', - computeruse: 'ComputerUse', + // computeruse: 'ComputerUse', // disabled for HarmonyOS deepresearch: 'DeepResearch', }; @@ -95,7 +95,7 @@ function enrichCapabilities(agent: AgentWithCapabilities): AgentWithCapabilities if (id === 'plan') return { ...agent, capabilities: [{ category: 'analysis', level: 5 }, { category: 'docs', level: 3 }] }; if (id === 'debug') return { ...agent, capabilities: [{ category: 'coding', level: 5 }, { category: 'analysis', level: 3 }] }; if (id === 'cowork') return { ...agent, capabilities: [{ category: 'analysis', level: 4 }, { category: 'creative', level: 3 }] }; - if (id === 'computeruse') return { ...agent, capabilities: [{ category: 'ops', level: 5 }, { category: 'analysis', level: 3 }] }; + // if (id === 'computeruse') return { ...agent, capabilities: [{ category: 'ops', level: 5 }, { category: 'analysis', level: 3 }] }; // disabled for HarmonyOS if (id === 'deepresearch') return { ...agent, capabilities: [{ category: 'analysis', level: 5 }, { category: 'docs', level: 4 }] }; } diff --git a/src/web-ui/src/app/scenes/skills/components/SkillsSuiteView.tsx b/src/web-ui/src/app/scenes/skills/components/SkillsSuiteView.tsx index 6def77a3e7..9038c413e9 100644 --- a/src/web-ui/src/app/scenes/skills/components/SkillsSuiteView.tsx +++ b/src/web-ui/src/app/scenes/skills/components/SkillsSuiteView.tsx @@ -18,7 +18,7 @@ const UNGROUPED_SKILL_GROUP = '__ungrouped__'; const SKILL_GROUP_ORDER: Record = { meta: 0, - 'computer-use': 1, + // 'computer-use': 1, // disabled for HarmonyOS office: 2, gstack: 3, [UNGROUPED_SKILL_GROUP]: 99, @@ -66,8 +66,8 @@ function getSkillGroupLabel(groupKey: string, t: (key: string) => string): strin switch (groupKey) { case 'office': return t('suite.groups.office'); - case 'computer-use': - return t('suite.groups.computerUse'); + // case 'computer-use': // disabled for HarmonyOS + // return t('suite.groups.computerUse'); case 'meta': return t('suite.groups.meta'); case 'gstack':