Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

350 B
Raw Blame
import { useEffect } from 'react'
import { isTauri } from '../api/backend'
import { useRemoteStore } from '../stores/remoteStore'

/** Recover native state on app mount, not only when Remote settings open. */
export function useRemoteRecovery(): void {
  useEffect(() => {
    if (isTauri()) void useRemoteStore.getState().refreshStatus()
  }, [])
}