diff --git a/apps/shinkai-desktop/src/components/agent/agent-form.tsx b/apps/shinkai-desktop/src/components/agent/agent-form.tsx index 1728efee1..27ff4ea55 100644 --- a/apps/shinkai-desktop/src/components/agent/agent-form.tsx +++ b/apps/shinkai-desktop/src/components/agent/agent-form.tsx @@ -105,8 +105,6 @@ function AgentForm({ mode }: AgentFormProps) { const selectedFileKeysRef = useSetJobScope((state) => state.selectedFileKeysRef); const selectedFolderKeysRef = useSetJobScope((state) => state.selectedFolderKeysRef); const onSelectedKeysChange = useSetJobScope((state) => state.onSelectedKeysChange); - const setFileKey = useSetJobScope((state) => state.setFileKey); - const setFolderKey = useSetJobScope((state) => state.setFolderKey); const { data: agent } = useGetAgent({ agentId: agentId ?? '', @@ -194,7 +192,6 @@ function AgentForm({ mode }: AgentFormProps) { if (agent.scope?.vector_fs_items?.length || agent.scope?.vector_fs_folders?.length) { const selectedVRFilesPathMap = agent.scope.vector_fs_items.reduce>( (acc: Record, filePath: string) => { - setFileKey(filePath, filePath); acc[filePath] = { checked: true, }; @@ -205,7 +202,6 @@ function AgentForm({ mode }: AgentFormProps) { const selectedVRFoldersPathMap = agent.scope.vector_fs_folders.reduce>( (acc: Record, folderPath: string) => { - setFolderKey(folderPath, folderPath); acc[folderPath] = { checked: true, }; @@ -226,7 +222,7 @@ function AgentForm({ mode }: AgentFormProps) { }); } } - }, [agent, form, mode, onSelectedKeysChange, setFileKey, setFolderKey]); + }, [agent, form, mode, onSelectedKeysChange]); // Effect to handle drawer open/close useEffect(() => { diff --git a/apps/shinkai-desktop/src/routes/index.tsx b/apps/shinkai-desktop/src/routes/index.tsx index ecdb9cc30..131735204 100644 --- a/apps/shinkai-desktop/src/routes/index.tsx +++ b/apps/shinkai-desktop/src/routes/index.tsx @@ -1,7 +1,3 @@ -import { PlusIcon } from '@radix-ui/react-icons'; -import { useTranslation } from '@shinkai_network/shinkai-i18n'; -import { JobConfig } from '@shinkai_network/shinkai-message-ts/api/jobs/types'; -import { DEFAULT_CHAT_CONFIG } from '@shinkai_network/shinkai-node-state/v2/constants'; import { useGetLLMProviders } from '@shinkai_network/shinkai-node-state/v2/queries/getLLMProviders/useGetLLMProviders'; import { TooltipProvider } from '@shinkai_network/shinkai-ui'; import { listen } from '@tauri-apps/api/event';