Skip to content

Commit

Permalink
- fix: added relaunch flow when change identity name (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Jun 6, 2024
1 parent 725d01a commit af426f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
UseQueryResult,
} from '@tanstack/react-query';
import { invoke } from '@tauri-apps/api';
import { relaunch } from '@tauri-apps/api/process';

import {
LogEntry,
Expand Down Expand Up @@ -179,7 +180,7 @@ export const useShinkaiNodeRespawnMutation = (options?: UseMutationOptions) => {
const response = useMutation({
mutationFn: async () => {
await invoke('shinkai_node_kill');
await invoke('shinkai_node_spawn');
await relaunch();
},
onSuccess: (...onSuccessParameters) => {
queryClient.invalidateQueries({
Expand Down

0 comments on commit af426f1

Please sign in to comment.