From 89ab133016b757c0e420a2922b447081cd5a8811 Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Tue, 23 Jun 2026 10:00:42 +0800 Subject: [PATCH 1/4] feat(web-ui): hide ComputerUse and DebugMode agents from overview Add 'debug' and 'ComputerUse' to STATIC_HIDDEN_AGENT_IDS so they no longer appear in the agent overview grid or filter counts. Backend registration and chat input mode selector remain unaffected. --- src/web-ui/src/app/scenes/agents/agentVisibility.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web-ui/src/app/scenes/agents/agentVisibility.ts b/src/web-ui/src/app/scenes/agents/agentVisibility.ts index 7fe3440da5..bdafd7254e 100644 --- a/src/web-ui/src/app/scenes/agents/agentVisibility.ts +++ b/src/web-ui/src/app/scenes/agents/agentVisibility.ts @@ -1,6 +1,8 @@ /** Agent IDs hidden from the Agents overview UI (not listed, not counted). */ export const STATIC_HIDDEN_AGENT_IDS = new Set([ 'Claw', + 'debug', + 'ComputerUse', ]); export const FALLBACK_REVIEW_HIDDEN_AGENT_IDS = new Set([ From 05f078c6f2281f0ef9f68e909f000ca181826bcd Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Wed, 24 Jun 2026 09:22:48 +0800 Subject: [PATCH 2/4] fix(flow-chat): restore AI disclaimer in dialog turn footer The aiDisclaimer span was removed during a merge/refactor. Re-add it as the first child of the footer so the disclaimer text shows again when a turn is complete. --- src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx index 6cbdacf6fb..b8b3bb396c 100644 --- a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx +++ b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx @@ -744,6 +744,9 @@ export const ModelRoundItem = React.memo( {isTurnComplete && isLastRound && hasContent && (
+ + {t('modelRound.aiDisclaimer', { defaultValue: '以上内容均由 AI 生成,仅供参考' })} + {usageMetaItems.length > 0 && (
Date: Wed, 24 Jun 2026 14:25:22 +0800 Subject: [PATCH 3/4] style(flow-chat): move AI disclaimer before last two footer icons Relocate the AI disclaimer to sit between the meta info and the ForkSession/Copy buttons (the last two footer icons), using its flex:1 to push them to the row end. Also drop the ExportImageButton that is no longer used. --- .../src/flow_chat/components/modern/ModelRoundItem.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx index b8b3bb396c..c3b7bb7dee 100644 --- a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx +++ b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.tsx @@ -19,7 +19,6 @@ import { isCollapsibleTool } from '../../tool-cards/toolCardMetadata'; import { useFlowChatContext } from './FlowChatContext'; import { FlowChatStore } from '../../store/FlowChatStore'; import { taskCollapseStateManager } from '../../store/TaskCollapseStateManager'; -import { ExportImageButton } from './ExportImageButton'; import { ForkSessionButton } from './ForkSessionButton'; import { buildModelRoundItemGroups, @@ -744,9 +743,6 @@ export const ModelRoundItem = React.memo( {isTurnComplete && isLastRound && hasContent && (
- - {t('modelRound.aiDisclaimer', { defaultValue: '以上内容均由 AI 生成,仅供参考' })} - {usageMetaItems.length > 0 && (
(
)} + + {t('modelRound.aiDisclaimer', { defaultValue: '以上内容均由 AI 生成,仅供参考' })} + + @@ -772,8 +772,6 @@ export const ModelRoundItem = React.memo( {copied ? : } - -
)}
From 044d2778b8b3ba9f93aeccb79675bf26ed00b5e3 Mon Sep 17 00:00:00 2001 From: SWangHash <88996709+SWangHash@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:41:07 +0800 Subject: [PATCH 4/4] style(flow-chat): reduce gap between AI disclaimer and footer buttons Replace flex:1 with a fixed 12px margin-right so the ForkSession and Copy buttons sit close to the disclaimer text instead of being pushed to the far right of the footer. --- src/web-ui/src/flow_chat/components/modern/ModelRoundItem.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.scss b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.scss index f4e9799634..1c77e28838 100644 --- a/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.scss +++ b/src/web-ui/src/flow_chat/components/modern/ModelRoundItem.scss @@ -103,7 +103,7 @@ } .model-round-item__ai-disclaimer { - flex: 1; + margin-right: 12px; font-size: var(--flowchat-font-size-xs); color: var(--color-text-muted); opacity: 0.55;