Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): disambiguate device names in project tooltips
daviddcaef13b20bb
diff --git a/apps/desktop/src/renderer/features/cc-agent/WorkingDirectoryTip.tsx b/apps/desktop/src/renderer/features/cc-agent/WorkingDirectoryTip.tsxindex 911f56139a..3215a30110 100644--- a/apps/desktop/src/renderer/features/cc-agent/WorkingDirectoryTip.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/WorkingDirectoryTip.tsx@@ -2,6 +2,7 @@ import type { ReactElement } from 'react';import { Tip } from '@/components/ui/tooltip';import { useDeviceLinkDeviceList } from '@/features/device-link/useDeviceLinkDeviceList';+import { deviceDisplayName } from '@/lib/deviceName';interface Props {path: string | null | undefined;@@ -15,7 +16,11 @@ export function WorkingDirectoryTip({ path, deviceId, deviceName, remoteHostId,const devices = useDeviceLinkDeviceList();// The directory belongs to the task's computer, even if its Agent runs elsewhere.const directoryDeviceName = deviceId- ? devices?.find((device) => device.deviceId === deviceId)?.name || deviceName || deviceId+ ? deviceDisplayName(+ deviceId,+ devices?.find((device) => device.deviceId === deviceId)?.name || deviceName,+ devices ?? [],+ ): null;return (