fix(app): split connectivity into internet/core/backend channels (#1527) (#1727)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Steven Enamakel <enamakel@tinyhumans.ai>
This commit is contained in:
oxoxDev
2026-05-15 15:56:00 -07:00
committed by GitHub
co-authored by Claude Opus 4.7 Steven Enamakel
parent e052aadfe9
commit 9a73cb24c6
30 changed files with 1804 additions and 42 deletions
+18
View File
@@ -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');
}