Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore: auto-save WIP via Claude stop-hook safety net (2026-07-10 16:21)

Ruben Lütkec32c9e69c9bf
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
index cd5e6a1af8..8a9a8c0644 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useState } from "react";
+import { useEffect, useRef, useState } from "react";
import { AlertCircle, Bot, Brain, Check, Copy, KeyRound, Loader2, LogIn, LogOut, Mic, Phone, PlugZap, Radio, SlidersHorizontal, Sparkles, Terminal, Volume2, Waypoints, XCircle } from "lucide-react";
import { ViewHeader } from "@/views/ChatsView";
import { AltCredentialNote } from "@/components/AltCredentialNote";
@@ -131,7 +131,12 @@ export function ApiKeysView() {
// The LIVE `[voice].mode` (+ cross-family availability) for the "Active"
// badge AND for gating the segment's own persistence (Feature A). See
// VoiceEngineMode / EngineModeSwitch above.
- const { mode: liveMode, realtimeAvailable, setMode: setVoiceMode } = useVoiceMode();
+ const {
+ mode: liveMode,
+ realtimeAvailable,
+ setMode: setVoiceMode,
+ isLoading: liveModeLoading,
+ } = useVoiceMode();
// Reset the selected tab to the mode's first tab whenever the mode changes,
// so switching Pipeline→Realtime never leaves `active` pointing at a tab
@@ -140,6 +145,16 @@ export function ApiKeysView() {
setActive(engineMode === "realtime" ? "realtime" : "brain");
}, [engineMode]);
+ // Open the view on the engine that is actually LIVE (once, when the mode
+ // query resolves) — a user whose voice runs on Realtime should not land on
+ // the Pipeline tab set. Later live-mode changes never yank the view.
+ const viewSyncedToLive = useRef(false);
+ useEffect(() => {
+ if (viewSyncedToLive.current || liveModeLoading) return;
+ viewSyncedToLive.current = true;
+ setEngineMode(liveMode === "realtime" ? "realtime" : "pipeline");
+ }, [liveMode, liveModeLoading]);
+
const modeTabs = engineMode === "realtime" ? REALTIME_TABS : PIPELINE_TABS;
return (
diff --git a/scripts/config-soll.json b/scripts/config-soll.json
index 46c742565a..9a08d1d898 100644
--- a/scripts/config-soll.json
+++ b/scripts/config-soll.json
@@ -65,7 +65,7 @@
"provider": "groq-api",
"model": "whisper-large-v3",
"bias_prompt": "Jarvis, OpenClaw, Codex, Gemini, Grok, Claude, Anthropic, OpenAI, OpenRouter, Whisper, a dictation app, Subagent, Sub-Agent, Mission-Manager, Critic-Loop, Critic, Worker, Router-Brain, Router, Kontrollierer, Voice-Pipeline, Wake-Word, Silero, VAD, TTS, STT, Telemetry, Transkript, Token, Provider, Plugin, Sprechblase, Orb, Mascot, Quip, Browser, Terminal, Repository, Branch, Commit, Push, Pull-Request, Issue, Merge, Refactor, Deployment, Screenshot, Debuggen, Workflow, Microservice, Container, Docker, Kubernetes, FastAPI, React, TypeScript, Python, JSON, Markdown, Logfile, Konfiguration, Endpoint, Webhook, API-Key, Service-Account, Cloud, Google Cloud, Vertex AI, BigQuery, GitHub, Twilio, ElevenLabs, OAuth, Credential Manager, Frontend, Backend, Skript, Daemon, Hangup, Auflegen, Denkpause, submitted, distanziert, erkennt",
- "language": "auto"
+ "language": "de"
},
"ack_brain": {
"enabled": true,