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.

docs(chat): the front page's chat says it is Jarvis — stage, composer, store and history docstrings

rubenluetke10-beep85a656798dfc
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
index c9371c17f7..48850013f9 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
@@ -24,7 +24,10 @@ import { fill, useT } from "@/i18n";
import { cn } from "@/lib/utils";
/**
- * The agent composer — the typed front page's one control.
+ * The composer — the front page's one control for talking to Jarvis by
+ * keyboard. What is typed here goes to the same assistant the microphone
+ * reaches; the picks under the text box decide what Jarvis runs on for this
+ * chat.
*
* One card (maintainer sketch, 2026-08-23): the text box on top and, under
* it, the four picks that decide who answers and how —
@@ -32,14 +35,16 @@ import { cn } from "@/lib/utils";
* Provider · Model · Reasoning effort │ Permission mode · Build | Plan
*
* — then dictation and Send on the right. The picks are the backend's
- * catalog, never a list typed here: the provider column is every sub-agent
- * the Agents tab knows (connected ones pickable, the rest greyed with a
- * "connect" hint), the model column is the provider's own list (live from
- * its catalog route, or the curated list for a CLI), the effort ladder and
- * the permission ladder are whatever that provider's runner accepts
- * (jarvis/agent_chat/effort.py, permissions.py). Build | Plan is the
- * permission ladder's `plan` entry drawn as a switch, shown only when the
- * runner has one.
+ * catalog for this surface, never a list typed here: the provider column is
+ * every sub-agent the Agents tab knows (connected ones pickable, the rest
+ * greyed with a "connect" hint), the model column is the provider's own list
+ * (live from its catalog route, or the curated list for a CLI), the effort
+ * ladder and the permission ladder are whatever the catalog delivers for
+ * that row (jarvis/agent_chat/effort.py, permissions.py) — on the front
+ * page one unified ladder for every provider (ask / accept-edits / plan /
+ * bypass), each step wearing its stance's glyph (permissionIcons.ts).
+ * Build | Plan is the permission ladder's `plan` entry drawn as a switch,
+ * shown only when the ladder has one.
*
* The provider list is grouped the way the Agents tab groups its cards — by
* what stands behind a row, never by whether it is connected: a coding CLI
diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
index 13de25e3f7..65cb018f76 100644
--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
@@ -11,14 +11,15 @@ import type { ApprovalDecision } from "@/lib/agentChatApi";
import { useT } from "@/i18n";
/**
- * The chat stage — the typed half of the front page.
+ * The chat stage — the typed half of the front page: Jarvis with a keyboard.
*
- * Since 2026-08-23 this is the AGENT chat (jarvis/agent_chat): a coding-agent
- * session on whichever sub-agent — Claude Code, Codex, Antigravity, Grok
- * Build, or an API-key provider — the composer picks, with the model, the
- * reasoning effort and the permission mode dialled in the composer itself.
- * The voice stage next door still talks to the voice brain; this stage does
- * not (AP-9: nothing here touches the voice path).
+ * What is typed here goes to the same assistant the microphone reaches —
+ * the same memory, the same tools, the same voice in the answers — carried
+ * by an agent-chat session on the `jarvis` surface (jarvis/agent_chat). The
+ * composer's picks — provider, model, reasoning effort, permission mode —
+ * decide what Jarvis runs on for THIS chat; they never reach the voice
+ * path (AP-9: nothing here touches it). The Agentic IDE lists its coding
+ * sessions on its own surface (`agent`), so none of them appear here.
*
* One centred column, like a document: the greeting and the composer sit
* in the middle of an empty page; once there are messages the column
diff --git a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
index a917973744..ae5c6b5ea7 100644
--- a/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/RecentChats.tsx
@@ -30,9 +30,12 @@ export const RECENT_CHATS_UNFOLDED = 15;
* An agent chat goes to the chat surface, where the session is read and
* continued by typing — on the provider and model it was using.
*
- * The classic brain's text threads are no longer listed: since the chat
- * surface became the agent chat there is nowhere to open them; the data
- * stays on disk.
+ * The typed rows are the front page's Jarvis chats (agent-chat sessions on
+ * the `jarvis` surface) — the same assistant as the voice rows, reached by
+ * keyboard. The Agentic IDE's coding sessions live on their own surface and
+ * are listed there, never here. The classic brain's text threads are no
+ * longer listed either: since the chat surface became the agent chat there
+ * is nowhere to open them; the data stays on disk.
*/
export function RecentChats() {
const t = useT();
diff --git a/jarvis/ui/web/frontend/src/components/home/chatRows.ts b/jarvis/ui/web/frontend/src/components/home/chatRows.ts
index 538e0cc63c..cac7e38739 100644
--- a/jarvis/ui/web/frontend/src/components/home/chatRows.ts
+++ b/jarvis/ui/web/frontend/src/components/home/chatRows.ts
@@ -9,11 +9,16 @@ import { transcriptFromMessages } from "@/lib/homeTranscript";
/**
* The one chat history the app has, and the one way to open a row of it.
*
- * Two backends feed it — the voice sessions (`/api/chats`) and the agent
- * chats (`/api/agent-chat/sessions`) — merged into one list sorted by when
- * each was last touched. The sidebar block and the "All chats" dialog both
+ * Two backends feed it — the voice sessions (`/api/chats`) and the typed
+ * Jarvis chats (`/api/agent-chat/sessions?surface=jarvis`, read through the
+ * front page's agent-chat store) — merged into one list sorted by when each
+ * was last touched. Both kinds are the same assistant, reached by voice or
+ * by keyboard; the Agentic IDE's coding sessions are on another surface and
+ * never enter this list. The sidebar block and the "All chats" dialog both
* read THIS, so the two can never disagree about what exists or about what
- * a click does.
+ * a click does. A typed row's kind is still called `"agent"` — that is the
+ * internal name of the agent-chat backend that carries it, not a claim
+ * about who answers.
*
* The rule a click follows (the bug this file was extracted to fix): the
* front page shows exactly ONE conversation, so opening a row must also
diff --git a/jarvis/ui/web/frontend/src/store/agentChat.ts b/jarvis/ui/web/frontend/src/store/agentChat.ts
index 06fccace86..b6f2430b41 100644
--- a/jarvis/ui/web/frontend/src/store/agentChat.ts
+++ b/jarvis/ui/web/frontend/src/store/agentChat.ts
@@ -25,7 +25,14 @@ import {
import { EMPTY_TIMELINE, reduceEvent, reduceEvents, type Timeline } from "@/components/agentchat/reduce";
/**
- * The agent chat's own store — the typed half of the front page.
+ * The agent chat's store — one per SURFACE (`createAgentChatStore`).
+ *
+ * The front page's store (`useAgentChatStore`, surface `jarvis`) is Jarvis
+ * with a keyboard: what is typed there goes to the same assistant the
+ * microphone reaches, and its sessions are the front page's chats. An
+ * Agentic IDE store (surface `agent`) holds coding sessions instead. Each
+ * store asks the backend for its own list and catalog, stamps its surface on
+ * the sessions it creates, and keeps its own socket and draft.
*
* One active session at a time: its timeline is fed by one WebSocket
* (snapshot, then live events, reconnect from the last seq). The composer's