mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-22 06:38:14 +02:00
fix: full review pass (main process, voice pipeline, Hermes client, HUD) and e2e-validated local voice (v2.1.0.1)
Electron main - utility-process channel: sherpa output copied into V8 buffers (Electron rejects external buffers), audio exchanged as base64; worker restart on timeout, identity-safe exit handling, deterministic native unload by restart - webhook: loopback by default without secret, UTF-8-safe body assembly, clean restart, port validation - files IPC: realpath-based root check, openPath allow-list (reveal-only outside document folders), Windows reserved names; store: debounced async atomic writes with backup of corrupt files; logger: streaming writes with rotation; log message size cap - HTTP stream proxy: socket released on idle timeout / renderer destroyed, id validation - model manager: inactivity timeout, retrying rm/rename (Windows locks), engine stopped before replacing a model; WAV decoder handles float/24-bit; IPC payload validation - window: opaque rounded window on Windows, navigation lock-down, visibility events; Ctrl+Alt+Escape instead of the Task Manager shortcut; single-instance guard; EVEFLOW_USER_DATA Voice pipeline - abort semantics (SendHandle.aborted), abort before the stream opens, session id prefixes per transport - hands-free re-arm after replies without speech, start/stop race, no chime on auto re-arm, no silence shipped to STT (400 ms pre-roll), no transcription of empty manual stops - TTS: bounded prefetch, cancellable segments, non-interrupting notices, volume applied at play time - SSE CRLF split, usage in chat completions, finish_reason length, phonetic regex hoisted HUD - core renderer: no canvas shadows, cached colours, reusable spectrum buffer, theme read on change, 30 fps idle, stops when the window is hidden; ping flashes on send / tool / speech - deltas coalesced per animation frame; stable auto-scroll; narrow selectors everywhere - bundled fonts (offline), reduce-motion fix, error toasts, ops drawer below 1180 px, interim transcript and first-token latency in the core caption, Ctrl+K, dialog semantics, switch/aria roles, compact widget cleanup, Whisper small recommended for French - docs/ROADMAP.md: audit results, e2e results and the plan towards a real JARVIS Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Wn5VX9HNbJ7N54hR24u9Y
This commit is contained in:
55 files changed
+1181
-433
No files matched your search
+29
-11
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useEffect, useRef, useState } from 'react';
|
||||
import { AlertTriangle, X } from 'lucide-react';
|
||||
import type { WindowMode } from '../shared/ipc';
|
||||
import { bridge } from './lib/bridge';
|
||||
@@ -99,15 +99,23 @@ function useWindowMode(): WindowMode {
|
||||
return mode;
|
||||
}
|
||||
|
||||
function ErrorBanner() {
|
||||
/** Errors surface as a transient toast over the core instead of shifting the layout. */
|
||||
function ErrorToast() {
|
||||
const error = useChat((s) => s.error);
|
||||
const setError = useChat((s) => s.setError);
|
||||
useEffect(() => {
|
||||
if (!error) return;
|
||||
const timer = setTimeout(() => setError(null), 9000);
|
||||
return () => clearTimeout(timer);
|
||||
}, [error, setError]);
|
||||
if (!error) return null;
|
||||
return (
|
||||
<div className="error-banner">
|
||||
<AlertTriangle size={16} />
|
||||
<span>{error}</span>
|
||||
<button className="icon-btn" onClick={() => setError(null)}><X size={14} /></button>
|
||||
<div className="toast-stack">
|
||||
<div className="error-banner" role="alert">
|
||||
<AlertTriangle size={16} />
|
||||
<span>{error}</span>
|
||||
<button className="icon-btn" aria-label="Fermer" onClick={() => setError(null)}><X size={14} /></button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -118,15 +126,25 @@ export default function App() {
|
||||
const mode = useWindowMode();
|
||||
const showTelemetry = useSettings((s) => s.settings.ui.showTelemetry);
|
||||
const [showSettings, setShowSettings] = useState(false);
|
||||
const [showOps, setShowOps] = useState(false);
|
||||
const opsBadge = useChat((s) => s.activity.filter((a) => a.status === 'running').length) + useHermes((s) => s.jobRuns.filter((r) => !r.read).length);
|
||||
const showSettingsRef = useRef(false);
|
||||
const showOpsRef = useRef(false);
|
||||
showSettingsRef.current = showSettings;
|
||||
showOpsRef.current = showOps;
|
||||
|
||||
useEffect(() => {
|
||||
const onKey = (e: KeyboardEvent) => {
|
||||
if (e.key === 'Escape' && showSettings) setShowSettings(false);
|
||||
if (e.key === 'Escape') {
|
||||
if (showSettingsRef.current) setShowSettings(false);
|
||||
else if (showOpsRef.current) setShowOps(false);
|
||||
}
|
||||
if (e.key === ',' && (e.ctrlKey || e.metaKey)) setShowSettings((v) => !v);
|
||||
if (e.key.toLowerCase() === 'o' && (e.ctrlKey || e.metaKey) && e.shiftKey) setShowOps((v) => !v);
|
||||
};
|
||||
window.addEventListener('keydown', onKey);
|
||||
return () => window.removeEventListener('keydown', onKey);
|
||||
}, [showSettings]);
|
||||
}, []);
|
||||
|
||||
if (!loaded) {
|
||||
return (
|
||||
@@ -147,22 +165,22 @@ export default function App() {
|
||||
|
||||
return (
|
||||
<div className="hud-root">
|
||||
<TopBar onOpenSettings={() => setShowSettings(true)} />
|
||||
<TopBar onOpenSettings={() => setShowSettings(true)} onToggleOps={() => setShowOps((v) => !v)} opsBadge={opsBadge} />
|
||||
<div className="hud-body">
|
||||
<div className="hud-column">
|
||||
<ChatPanel />
|
||||
</div>
|
||||
<div className="hud-column">
|
||||
<ErrorBanner />
|
||||
<section className="panel bracket" style={{ flex: 1 }}>
|
||||
<CoreStage />
|
||||
</section>
|
||||
</div>
|
||||
<div className="hud-column ops-column">
|
||||
<div className={`hud-column ops-column${showOps ? ' open' : ''}`}>
|
||||
<OpsPanel />
|
||||
{showTelemetry && <Telemetry />}
|
||||
</div>
|
||||
</div>
|
||||
<ErrorToast />
|
||||
{showSettings && <SettingsDrawer onClose={() => setShowSettings(false)} />}
|
||||
<PendingRequests />
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user