diff --git a/src/App.tsx b/src/App.tsx index e79df20dd..05c695206 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,6 @@ import { checkAllEnvConflicts, checkEnvConflicts } from "@/lib/api/env"; import { useProviderActions } from "@/hooks/useProviderActions"; import { useProxyStatus } from "@/hooks/useProxyStatus"; import { extractErrorMessage } from "@/utils/errorUtils"; -import { cn } from "@/lib/utils"; import { AppSwitcher } from "@/components/AppSwitcher"; import { ProviderList } from "@/components/providers/ProviderList"; import { AddProviderDialog } from "@/components/providers/AddProviderDialog"; @@ -72,7 +71,8 @@ function App() { }); const providers = useMemo(() => data?.providers ?? {}, [data]); const currentProviderId = data?.currentProviderId ?? ""; - const isClaudeApp = activeApp === "claude"; + // Skills 功能仅支持 Claude 和 Codex + const hasSkillsSupport = activeApp === "claude" || activeApp === "codex"; // 🎯 使用 useProviderActions Hook 统一管理所有 Provider 操作 const { @@ -297,6 +297,7 @@ function App() { setCurrentView("providers")} + initialApp={activeApp} /> ); case "mcp": @@ -484,21 +485,17 @@ function App() {
- + {hasSkillsSupport && ( + + )} {/* TODO: Agents 功能开发中,暂时隐藏入口 */} {/* {isClaudeApp && (