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
feat(chat): the front page's chat says it is Jarvis — folder hint, i18n parity
rubenluetke10-beepdafc62099562
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsxindex 48850013f9..3ee16707d6 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx@@ -388,7 +388,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {<buttontype="button"onClick={() => void onPickFolder()}- title={draft.cwd ? `${t("agent_chat.folder")}: ${draft.cwd}` : t("agent_chat.folder")}+ title={draft.cwd ? `${t("agent_chat.folder_hint")}: ${draft.cwd}` : t("agent_chat.folder")}aria-label={t("agent_chat.folder")}data-testid="composer-folder"className="inline-flex h-7 max-w-[160px] items-center gap-1.5 rounded-lg px-2 text-xs text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground"diff --git a/jarvis/ui/web/frontend/src/i18n/agent-chat-i18n-parity.test.ts b/jarvis/ui/web/frontend/src/i18n/agent-chat-i18n-parity.test.tsnew file mode 100644index 0000000000..981fa20158--- /dev/null+++ b/jarvis/ui/web/frontend/src/i18n/agent-chat-i18n-parity.test.ts@@ -0,0 +1,85 @@+/**+ * Every `agent_chat.*` / `all_chats.*` key the front page's chat asks for+ * must exist in en — and de/es must carry exactly the keys en carries in+ * those two blocks. The keys are read from the source files themselves, so+ * a composer or timeline string added without its translations fails here,+ * not in front of a person. Modelled on local-models-i18n-parity.test.ts.+ */+import { readFileSync, readdirSync } from "node:fs";+import { join } from "node:path";+import { describe, expect, it } from "vitest";+import en from "./locales/en.json";+import de from "./locales/de.json";+import es from "./locales/es.json";++const BLOCKS = ["agent_chat", "all_chats"] as const;+type Block = (typeof BLOCKS)[number];++function flatten(obj: Record<string, unknown>, prefix = ""): string[] {+ const out: string[] = [];+ for (const [k, v] of Object.entries(obj)) {+ const key = prefix ? `${prefix}.${k}` : k;+ if (v && typeof v === "object" && !Array.isArray(v)) {+ out.push(...flatten(v as Record<string, unknown>, key));+ } else {+ out.push(key);+ }+ }+ return out;+}++/** The keys of one block, prefixed with the block name (`agent_chat.send`). */+function blockKeys(loc: Record<string, unknown>, block: Block): Set<string> {+ const sub = loc[block];+ if (!sub || typeof sub !== "object") return new Set();+ return new Set(flatten(sub as Record<string, unknown>, block));+}++const SRC = join(__dirname, "..");+const AGENTCHAT_DIR = join(SRC, "components", "agentchat");+const SOURCE_FILES = [+ ...readdirSync(AGENTCHAT_DIR)+ .filter((f) => /\.tsx?$/.test(f) && !/\.test\.tsx?$/.test(f))+ .map((f) => join(AGENTCHAT_DIR, f)),+ join(SRC, "components", "home", "ChatStage.tsx"),+ join(SRC, "components", "home", "RecentChats.tsx"),+ join(SRC, "components", "home", "AllChatsDialog.tsx"),+ join(SRC, "components", "home", "chatRows.ts"),+];++/** Literal keys only; a template key would be covered by the parity check. */+function usedKeys(): Set<string> {+ const found = new Set<string>();+ for (const file of SOURCE_FILES) {+ const text = readFileSync(file, "utf8");+ for (const m of text.matchAll(/"((?:agent_chat|all_chats)\.[a-z0-9_.]+)"/g)) found.add(m[1]);+ }+ return found;+}++describe("agent chat i18n parity", () => {+ it("reads a non-trivial set of keys from the chat's source files", () => {+ expect(usedKeys().size).toBeGreaterThan(40);+ });++ it("every key the chat asks for exists in en", () => {+ const enKeys = new Set([...blockKeys(en, "agent_chat"), ...blockKeys(en, "all_chats")]);+ const missing = [...usedKeys()].filter((k) => !enKeys.has(k)).sort();+ expect(missing).toEqual([]);+ });++ for (const [lang, loc] of [+ ["de", de],+ ["es", es],+ ] as const) {+ for (const block of BLOCKS) {+ it(`${lang} has the same ${block} keys as en`, () => {+ const enKeys = blockKeys(en, block);+ const langKeys = blockKeys(loc, block);+ const missing = [...enKeys].filter((k) => !langKeys.has(k)).sort();+ const extra = [...langKeys].filter((k) => !enKeys.has(k)).sort();+ expect({ missing, extra }).toEqual({ missing: [], extra: [] });+ });+ }+ }+});diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 5be3009831..a96aa4bc86 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -605,12 +605,11 @@"build_hint": "Bau-Modus — der Agent darf Dateien ändern. Klick für Plan-Modus.","plan_hint": "Plan-Modus — der Agent liest und plant, ändert nichts. Klick für Bau-Modus.","folder": "Arbeitsordner",+ "folder_hint": "Jarvis arbeitet für diesen Chat in diesem Ordner","attach_drop_hint": "Dateien hier ablegen, um sie anzuhängen","attach_remove": "{name} entfernen","attach_working": "Wird angehängt…","attach_failed": "Diese Datei konnte nicht angehängt werden.",- "jarvis_tools": "Jarvis · {count} Tools",- "jarvis_tools_hint": "Dieser Chat steuert Jarvis: {count} Jarvis-Tools stehen ihm zur Verfügung — dieselben, die auch per Sprache laufen.","send": "Senden","stop": "Durchgang stoppen","hint_connect": "{provider} ist noch nicht verbunden.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 54a4040155..63376b2784 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -605,12 +605,11 @@"build_hint": "Build mode — the agent may change files. Click for Plan mode.","plan_hint": "Plan mode — the agent reads and plans, changes nothing. Click for Build mode.","folder": "Working folder",+ "folder_hint": "Jarvis works in this folder for this chat","attach_drop_hint": "Drop the files here to attach them","attach_remove": "Remove {name}","attach_working": "Attaching…","attach_failed": "That file could not be attached.",- "jarvis_tools": "Jarvis · {count} tools",- "jarvis_tools_hint": "This chat drives Jarvis: {count} Jarvis tools are available to it — the same ones the voice path uses.","send": "Send","stop": "Stop the turn","hint_connect": "{provider} is not connected yet.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex bfaf2b506c..155d69cdaa 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -605,6 +605,7 @@"build_hint": "Modo construir: el agente puede cambiar archivos. Clic para el modo planificar.","plan_hint": "Modo planificar: el agente lee y planifica, no cambia nada. Clic para el modo construir.","folder": "Carpeta de trabajo",+ "folder_hint": "Jarvis trabaja en esta carpeta para este chat","attach_drop_hint": "Suelta aquí los archivos para adjuntarlos","attach_remove": "Quitar {name}","attach_working": "Adjuntando…",