feat: US-004 - Preload ONNX model during boot sequence

This commit is contained in:
2026-02-15 17:58:41 +00:00
parent aa1774320a
commit 91f8dac261
2 changed files with 31 additions and 0 deletions
+5
View File
@@ -6,6 +6,7 @@ import { LoginScreen } from './components/LoginScreen'
import { DashboardLayout } from './components/DashboardLayout'
import { AccessibilityProvider } from './contexts/AccessibilityContext'
import { DetailPanelProvider } from './contexts/DetailPanelContext'
import { initModel } from './lib/embedding-model'
function SkipButton({ onSkip }: { onSkip: () => void }) {
const [visible, setVisible] = useState(false)
@@ -47,6 +48,10 @@ function App() {
const [phase, setPhase] = useState<Phase>('login')
const cursorPositionRef = useRef<{ x: number; y: number } | null>(null)
useEffect(() => {
initModel()
}, [])
const skipToLogin = () => setPhase('login')
return (