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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: auto-save WIP via Claude stop-hook safety net (2026-07-07 16:21)
Ruben Lütkeb2cdc9032c10
diff --git a/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx b/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsxindex cf1cb820a8..eda03cf882 100644--- a/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx+++ b/jarvis/ui/web/frontend/src/views/sub-agents/DepartureBoard.tsx@@ -71,8 +71,9 @@ function taskLabel(node: SubAgentNode): string {return node.utterance || node.context_hints.at(0) || node.prompts.at(0) || "-";}-function resultLabel(node: SubAgentNode): string {- if (node.error) return node.error;+function resultLabel(node: SubAgentNode, t: (key: string) => string): string {+ const failure = failureLabel(node, t);+ if (failure) return failure;const summary = [...node.prompts].reverse().find((p) => p.startsWith("[summary] "));if (summary) return summary.replace("[summary] ", "");if (node.status === "completed") return "Done";@@ -83,9 +84,11 @@ function resultLabel(node: SubAgentNode): string {interface Props {agents?: SubAgentNode[];snapshotError?: string | null;+ health?: SectionHealth | null;}-export function DepartureBoard({ agents = [], snapshotError = null }: Props) {+export function DepartureBoard({ agents = [], snapshotError = null, health = null }: Props) {+ const t = useT();const [nowMs, setNowMs] = useState(() => Date.now());const [expanded, setExpanded] = useState<Set<string>>(new Set());@@ -152,6 +155,27 @@ export function DepartureBoard({ agents = [], snapshotError = null }: Props) {</div></div>+ {health && (health.status === "needs_setup" || health.status === "error") && (+ <div+ className={cn(+ "mb-3 flex items-center gap-2 rounded-md border px-3 py-2 text-xs",+ health.status === "error"+ ? "border-destructive/30 bg-destructive/10 text-destructive"+ : "border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",+ )}+ >+ <CircleAlert className="h-4 w-4 shrink-0" />+ <span className="font-medium">+ {t(+ health.status === "error"+ ? "subagents_view.health_error"+ : "subagents_view.health_degraded",+ )}+ </span>+ <span className="opacity-80">{health.detail}</span>+ </div>+ )}+{snapshotError && (<div className="mb-3 flex items-center gap-2 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-xs text-destructive"><CircleAlert className="h-4 w-4" />diff --git a/tests/missions/workers/test_codex_auth_fallback.py b/tests/missions/workers/test_codex_auth_fallback.pyindex 8a952e32ea..4f01d63b4d 100644--- a/tests/missions/workers/test_codex_auth_fallback.py+++ b/tests/missions/workers/test_codex_auth_fallback.py@@ -34,17 +34,33 @@ from jarvis.missions.workers.provider_chain import _FallbackStep@pytest.fixture(autouse=True)def _reset_codex_auth_marker():- """The codex needs_reauth + claude quota-cooldown flags are process globals- — reset both around every test so a fallback test doesn't pollute the rest- of the suite."""+ """The codex needs_reauth + the claude/codex quota-cooldown flags are+ process globals — reset all three around every test so a fallback test+ doesn't pollute the rest of the suite."""from jarvis.claude_quota_state import clear_claude_quota_cooldownfrom jarvis.codex_auth_state import clear_codex_needs_reauth+ from jarvis.codex_quota_state import clear_codex_quota_cooldownclear_codex_needs_reauth()clear_claude_quota_cooldown()+ clear_codex_quota_cooldown()yieldclear_codex_needs_reauth()clear_claude_quota_cooldown()+ clear_codex_quota_cooldown()+++def _viable_claude_fallback(monkeypatch: pytest.MonkeyPatch):+ """Pin the codex->claude fallback gate to 'Claude IS viable'.++ The gate (2026-07-07 incident) consults binary presence + auth viability+ before the nested Claude spawn; tests that exercise the fallback must not+ depend on this machine's real ~/.claude state."""+ from jarvis.missions import init as mi++ monkeypatch.setattr(cdw_claude, "_resolve_claude_binary", lambda: "claude")+ monkeypatch.setattr(mi, "_claude_cli_auth_viable", lambda: True)# --- pure-unit: the crash-proofing helpers --------------------------------