mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 23:14:37 +00:00
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
This commit is contained in:
co-authored by
Claude Opus 4.7
Steven Enamakel
parent
e052aadfe9
commit
9a73cb24c6
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Thin wrapper around the Tauri `restart_core_process` IPC command.
|
||||
*
|
||||
* Surfaced via the Home blocking screen's "Restart Core" button (#1527) so
|
||||
* the user has a one-click recovery when the local sidecar has crashed or
|
||||
* is stuck. Outside Tauri (web preview / Vitest harness) this is a no-op
|
||||
* that returns a friendly error string.
|
||||
*/
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
|
||||
import { isTauri } from '../utils/tauriCommands/common';
|
||||
|
||||
export async function restartCoreProcess(): Promise<void> {
|
||||
if (!isTauri()) {
|
||||
throw new Error('Restart Core is only available in the desktop app.');
|
||||
}
|
||||
await invoke('restart_core_process');
|
||||
}
|
||||
Reference in New Issue
Block a user