🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
💄 CC AskUserQuestion: fix selected-option color + bounce dock on approval (#16706)
Arvin Xu44664929c13b
diff --git a/packages/builtin-tool-claude-code/src/client/Intervention/AskUserQuestion/OptionCard.tsx b/packages/builtin-tool-claude-code/src/client/Intervention/AskUserQuestion/OptionCard.tsxindex 18e872d9934..94a5b962345 100644--- a/packages/builtin-tool-claude-code/src/client/Intervention/AskUserQuestion/OptionCard.tsx+++ b/packages/builtin-tool-claude-code/src/client/Intervention/AskUserQuestion/OptionCard.tsx@@ -8,7 +8,10 @@ import { memo } from 'react';const styles = createStaticStyles(({ css, cssVar }) => ({// Card sits inline with the chat — no surrounding panel chrome. Hover// tints the row so the stack reads as clickable; selection swaps to a- // filled `colorPrimaryBg` so the pick is visually weighty.+ // neutral filled row so the pick is visually weighty. We use `colorFill*`+ // rather than `colorPrimaryBg` because LobeHub's default primary is a+ // near-black neutral, which makes `colorPrimaryBg` render as a muddy black+ // block; the selection signal instead rides the filled row + the checkmark.option: css`cursor: pointer;@@ -54,10 +57,10 @@ const styles = createStaticStyles(({ css, cssVar }) => ({font-weight: 500;`,optionSelected: css`- background: ${cssVar.colorPrimaryBg};+ background: ${cssVar.colorFillSecondary};&:hover {- background: ${cssVar.colorPrimaryBgHover};+ background: ${cssVar.colorFill};}`,}));diff --git a/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts b/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.tsindex 6956e630a22..325567afe2a 100644--- a/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts+++ b/src/store/chat/slices/agentRun/actions/transports/hetero/heterogeneousAgentExecutor.ts@@ -44,6 +44,7 @@ import {reconstructUploadFilesFromQueue,} from '@/store/chat/slices/operation/types';import { type ChatStore, useChatStore } from '@/store/chat/store';+import { notifyDesktopHumanApprovalRequired } from '@/store/chat/utils/desktopNotification';import { messageMapKey } from '@/store/chat/utils/messageMapKey';import { buildRunLifecycle } from '../../lifecycle/buildRunLifecycle';@@ -1186,6 +1187,12 @@ export const executeHeterogeneousAgent = async (// so it's obvious from the topic list that this conversation is// blocked on the user, not still streaming.writeTopicStatus('waitingForHuman');+ // Parity with the homogeneous approval paths (client / gateway /+ // aiAgent): a CC AskUserQuestion now also bumps the dock badge and+ // bounces the macOS dock. The helper is desktop-guarded and only+ // requests attention while the window is hidden/unfocused, so it's+ // a no-op when the user is already looking at the approval.+ void notifyDesktopHumanApprovalRequired(get, context);} catch (err) {console.error('[HeterogeneousAgent] persist intervention pending failed:', err);}