diff --git a/apps/shinkai-desktop/src/components/agent/add-agent.tsx b/apps/shinkai-desktop/src/components/agent/add-agent.tsx index f064971bd..d10db3e0f 100644 --- a/apps/shinkai-desktop/src/components/agent/add-agent.tsx +++ b/apps/shinkai-desktop/src/components/agent/add-agent.tsx @@ -93,7 +93,7 @@ function AddAgentPage() { custom_prompt: '', custom_system_prompt: '', other_model_params: {}, - use_tools: DEFAULT_CHAT_CONFIG.use_tools, + use_tools: true, }, llmProviderId: defaultAgentId, }, diff --git a/apps/shinkai-desktop/src/pages/chat/empty-message.tsx b/apps/shinkai-desktop/src/pages/chat/empty-message.tsx index 20d945b06..1883048ec 100644 --- a/apps/shinkai-desktop/src/pages/chat/empty-message.tsx +++ b/apps/shinkai-desktop/src/pages/chat/empty-message.tsx @@ -111,8 +111,8 @@ const EmptyMessage = () => { {[ { - text: 'Search in Perplexity', - prompt: 'Search in Perplexity for: ', + text: 'Search in DuckDuckGo', + prompt: 'Search in DuckDuckGo for: ', }, { text: 'Summarize a Youtube video', diff --git a/apps/shinkai-desktop/src/pages/layout/main-layout.tsx b/apps/shinkai-desktop/src/pages/layout/main-layout.tsx index cee899f44..60e08c815 100644 --- a/apps/shinkai-desktop/src/pages/layout/main-layout.tsx +++ b/apps/shinkai-desktop/src/pages/layout/main-layout.tsx @@ -183,8 +183,12 @@ const ResetConnectionDialog = ({ isOpen: boolean; onOpenChange: (open: boolean) => void; }) => { - const { mutateAsync: shinkaiNodeKill } = useShinkaiNodeKillMutation(); - const { mutateAsync: shinkaiNodeSpawn } = useShinkaiNodeSpawnMutation({ + const { mutateAsync: shinkaiNodeKill, isPending: isShinkaiNodeKillPending } = + useShinkaiNodeKillMutation(); + const { + mutateAsync: shinkaiNodeSpawn, + isPending: isShinkaiNodeSpawnPending, + } = useShinkaiNodeSpawnMutation({ onSuccess: async () => { if (!encryptionKeys) return; await submitRegistrationNoCode({ @@ -195,13 +199,20 @@ const ResetConnectionDialog = ({ }); }, }); - const { mutateAsync: shinkaiNodeRemoveStorage } = - useShinkaiNodeRemoveStorageMutation(); + const { + mutateAsync: shinkaiNodeRemoveStorage, + isPending: isShinkaiNodeRemoveStoragePending, + } = useShinkaiNodeRemoveStorageMutation(); const { setShinkaiNodeOptions } = useShinkaiNodeManager(); const { encryptionKeys } = useGetEncryptionKeys(); const setAuth = useAuth((state) => state.setAuth); const navigate = useNavigate(); + const isResetLoading = + isShinkaiNodeKillPending || + isShinkaiNodeRemoveStoragePending || + isShinkaiNodeSpawnPending; + const { mutateAsync: submitRegistrationNoCode } = useSubmitRegistrationNoCode( { onSuccess: (response, setupPayload) => { @@ -254,6 +265,8 @@ const ResetConnectionDialog = ({