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.

feat(local-models): the local-models chat surface and the sidebar's health dot

rubenluetke10-beep780a52096c36
diff --git a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
index d1ff505b69..1117ce564b 100644
--- a/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
+++ b/jarvis/ui/web/frontend/src/components/layout/Sidebar.tsx
@@ -195,6 +195,12 @@ export function Sidebar({
// names let the tooltip say WHICH plugin, not just "something is off".
const pluginAttention = usePluginAttention();
const pluginsNeedReconnect = pluginAttention.count > 0;
+ // The Local models health monitor (D7) writes a `local_models` record; a
+ // failing or half-configured local setup gets the same amber dot — badge
+ // only, never a toast.
+ const localModelsHealth = sectionHealth.local_models;
+ const localModelsNeedAttention =
+ localModelsHealth?.status === "error" || localModelsHealth?.status === "needs_setup";
// Name the culprit(s) in the hover text so the dot stops being cryptic; the
// full plain-language banner + jump button live in the Plugins view itself.
const pluginWarnTitle = pluginAttention.names.length
@@ -439,8 +445,18 @@ export function Sidebar({
betaLabel={item.beta ? t("nav.agentic_ide_beta") : undefined}
alert={item.id === "apikeys" ? apikeysHasError : false}
alertTitle={t("sidebar.apikeys_alert")}
- warn={item.id === "skills" ? pluginsNeedReconnect : false}
- warnTitle={pluginWarnTitle}
+ warn={
+ item.id === "skills"
+ ? pluginsNeedReconnect
+ : item.id === "local-models"
+ ? localModelsNeedAttention
+ : false
+ }
+ warnTitle={
+ item.id === "local-models"
+ ? localModelsHealth?.detail || localModelsHealth?.reason || undefined
+ : pluginWarnTitle
+ }
// A plugin problem sends the "Skills & Tools" row straight into
// the Plugins tab (where the banner + jump button are), so one
// click lands on the fix instead of the default Skills tab.
diff --git a/jarvis/ui/web/frontend/src/hooks/useProviders.ts b/jarvis/ui/web/frontend/src/hooks/useProviders.ts
index 0dd4f7f68b..da9331c478 100644
--- a/jarvis/ui/web/frontend/src/hooks/useProviders.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useProviders.ts
@@ -463,6 +463,14 @@ export interface SectionHealth {
detail: string;
/** Exact provider/integration checked by the backend. */
subject_id: string | null;
+ /**
+ * Only on the `local_models` record (written by the health monitor,
+ * `jarvis/local_models/health_monitor.py`): when the current status began,
+ * the last time it was ok, and when the check ran — ISO or epoch seconds.
+ */
+ since?: string | number | null;
+ last_ok?: string | number | null;
+ checked_at?: string | number | null;
}
export interface SectionHealthResponse {
diff --git a/jarvis/ui/web/frontend/src/lib/agentChatApi.ts b/jarvis/ui/web/frontend/src/lib/agentChatApi.ts
index 64c107503f..6ff1694bed 100644
--- a/jarvis/ui/web/frontend/src/lib/agentChatApi.ts
+++ b/jarvis/ui/web/frontend/src/lib/agentChatApi.ts
@@ -52,11 +52,13 @@ export interface AgentChatCatalog {
/**
* Where a session lives: the front page's typed chat (`jarvis` — the same
- * assistant as the microphone, on a keyboard) or a coding session listed by
- * the Agentic IDE (`agent`). Each surface asks the backend for its own list
- * and catalog, so the two never mix in a sidebar.
+ * assistant as the microphone, on a keyboard), a coding session listed by
+ * the Agentic IDE (`agent`), or the Local models section's setup assistant
+ * (`local-models`). Each surface asks the backend for its own list and
+ * catalog, so they never mix in a sidebar. Mirrors `SURFACES` in
+ * `jarvis/agent_chat/store.py` (a parity test reads this union).
*/
-export type AgentChatSurface = "jarvis" | "agent";
+export type AgentChatSurface = "jarvis" | "agent" | "local-models";
export interface AgentChatSession {
session_id: string;