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
merge: integrate slash commands with current chat and browser features
rubenluetke10-beepf15027c25d25
diff --cc docs/os-parity.mdindex ba021db70b,532700428f..a0fa1747ba--- a/docs/os-parity.md+++ b/docs/os-parity.md@@@ -443,42 -459,23 +459,63 @@@ or provider account. Native macOS execurun remain release validation requirements; running this portable contract onone operating system does not establish those results.+ ## Routine trigger sources (2026-09-10, T3)++ Human, time, API, provider callbacks, streams, file polling and workflow chains+ share the same Python/SQLite implementation on Windows, macOS and headless Linux.+ The catalogue probes optional protocol clients without importing or connecting+ them. Missing clients and unreachable services have explicit in-app states.+ No Win32 event hook or other native watcher is required. File access remains+ subject to each host's permissions and available paths.++ Windows contract tests cover all seven groups, DST, source lifecycle, typed+ forms, queue durability, provider signatures and trusted workflow ancestry.+ Real Kafka, RabbitMQ, MQTT and Redis instances passed admission/acknowledgement+ checks. A fresh `python:3.11-slim` container installed the built wheel and all+ base dependencies, then used one Gemini key for actual model-driven chat creation+ and canonical agent-chat execution of a manually submitted routine. A duplicate+ input was suppressed. Provider account subscriptions were not created.+ Chrome checks cover the shared editor in light and dark mode. Native macOS+ execution and provider-account provisioning remain unverified; portable contract+ coverage is not a claim of physical hardware testing.+ See [source configuration and delivery limits](trigger-sources.md).+++## Chat slash commands and persistent goals (2026-09-10)++The Jarvis text chat and society cards share a command catalog, typed control+state, SQLite receipts and an independent goal supervisor. Windows, macOS and+Linux use the same implementation. Opening a menu performs no model call.+`/clear` and `/history` change browser presentation only; neither clears a+provider conversation, goal, archive or pending task.++| Capability | Windows | macOS | Linux / headless |+|---|---|---|---|+| Command API, state, receipts and search | Supported | Supported | Supported |+| API-backed goal execution and separate verification | Supported | Supported | Supported |+| Native Codex App Server goals | Runtime schema probe | Same probe | Same probe |+| Native Claude Code goals | Version and command probe | Same probe | Same probe |+| Plan-mode tool execution gate | Supported | Supported | Supported |+| Native CLI availability and permissions | Installed runner contract | Same contract | Same contract |++Only one goal engine owns a session. Native adapters reuse the selected account+and vendor conversation, never the ephemeral voice transport. Goal recovery+pauses work after an app restart, and clears residual native goal state before+an ordinary user message can resume that vendor conversation. A closed browser+does not stop backend work. `/stop` cancels work without rolling back effects.++Modes based only on a prompt are not advertised as an enforced read-only mode.+The current Kimi and DSH print runners therefore cannot run plan, review or+goal verification through this interface; their API-backed alternatives use the+portable implementation. Antigravity, Grok, OpenCode and Cursor use their native+plan flags for independent verification; Codex and Claude verifiers disable tools.++Contracts in `test_chat_controls.py` and `test_native_chat_goals.py` cover API and+SQL/TypeScript parity, evidence, idempotency, read-only execution, native terminal+states and final-output ordering. The OS cases emulate capability selection;+they do not claim physical macOS/Linux execution. Live native transport and+fresh-install checks are recorded separately from these portable contracts.++CLI access: `jarvis sessions control SESSION` reads state; `jarvis sessions+command SESSION goal --arguments "..." --request-id ID --yes` submits a durable+command. Reuse the request id after an uncertain response. The dynamic+`jarvis api agent-chat` group exposes the same mounted endpoints.diff --cc jarvis/core/protocols.pyindex 6f604c51ae,b1c8047026..bf52055276--- a/jarvis/core/protocols.py+++ b/jarvis/core/protocols.py@@@ -18,18 -18,9 +18,20 @@@ from uuid import UUIfrom .chat_turn import ChatCompletion as ChatCompletionfrom .chat_turn import ChatTurn as ChatTurnfrom .chat_turn import current_chat_turn as current_chat_turn+ from .trigger_context import RoutineDeferred as RoutineDeferred+ from .trigger_context import current_trigger_path as current_trigger_path++class ChatControlAdapter(Protocol):+ """One owner of a chat's native goal loop; absence falls back to Jarvis."""+ name: str++ async def available(self, session: Any) -> bool: ...+ async def run_goal(self, service: Any, session: Any, objective: str) -> dict[str, Any]: ...+ async def interrupt(self, session_id: str) -> None: ...+ async def clear_saved(self, service: Any, session: Any) -> None: ...++# ----------------------------------------------------------------------# Audio Data-Types# ----------------------------------------------------------------------diff --cc jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsxindex b052787095,ed39f10086..c30d95d2c9--- a/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/chat/AgentChatPanel.tsx@@@ -647,14 -638,10 +639,10 @@@ export function Transcript(const stamp = ts && ts - lastStamp > STAMP_GAP_MS ? ts : 0;if (stamp) lastStamp = ts;return (- <div key={item.id} className="flex flex-col gap-2">+ <div key={item.id} data-chat-item={item.id} className="flex flex-col gap-2">{stamp ? <TimeStamp ms={stamp} /> : null}{item.type === "internal" ? (- <InternalMessageBubble- item={item}- sender={roster.find((a) => a.agentId === item.message.sender_id) ?? null}- recipient={item.outgoing ? roster.find((a) => a.agentId === item.outgoing?.recipientId) : agent}- />+ <AgentMessageActivity item={item} roster={roster} />) : item.type === "user" ? (<UserBubble item={item} />) : item.type === "turn" ? (@@@ -880,13 -871,13 +873,15 @@@ function visibleUserText(text: string)}export function UserBubble({ item }: { item: UserItem }) {+ const t = useT();const choices = messageChoices(item);const text = visibleUserText(item.text);+ if (item.origin === "control") return <div className="self-start px-1 py-2 text-xs text-muted-foreground">{t("slash.control_turn")}{item.attachments.map((file) => <span key={file.name} className="ml-2">{file.name}</span>)}</div>;+ const task = routineTask(item.text);+ if (task !== null && item.attachments.length === 0) return <RoutineActivity task={task} original={item.text} />;return (- <div className="flex max-w-[85%] flex-col items-end gap-1 self-end">- <div className="rounded-2xl rounded-br-md bg-secondary px-3.5 py-2 text-sm leading-relaxed text-foreground">+ <div className="flex min-w-0 max-w-[min(85%,42rem)] flex-col items-end gap-1 self-end">+ <div className="min-w-0 rounded-2xl rounded-br-md bg-secondary px-4 py-2.5 text-sm leading-relaxed text-foreground [overflow-wrap:anywhere]"><MessageWithChips text={text} choices={choices} /></div>{item.attachments.length > 0 ? (@@@ -1055,9 -1041,29 +1050,21 @@@ export function Composer({ agent, menticonst submittedFolder = codingFolder;const selected = selectedTools;const text = draftText;- if (!text || busy || modelSaving) return;- if (text === "/clear" && onClear) {- onClear();- setValue("");- fieldRef.current?.clear();- setSelectedTools([]);- setMention(null);- setProblem(null);- return;- }+ if (await commands.execute(text)) return;+ if (!text || busy && !commands.canSteer || modelSaving) return;- const named = mentionsInText(text, catalog);+ const chosenIds = new Set((draft?.choices ?? []).map((row) => row.id));+ const chosen = [...chosenIds].map((id) => catalog.find((item) => item.key === id));+ if (chosen.some((item) => !item || !item.connected)) {+ setProblem(t("common.error_generic"));+ return;+ }+ // Chips hold stable catalog IDs, even if new entries have changed short tags.+ const chosenTags = new Set((draft?.choices ?? []).map((row) => choiceToken(row).toLowerCase()));+ const unselectedText = text.replace(/(^|\s)(@[^\s@]+)/g, (whole, space: string, token: string) =>+ chosenTags.has(token.toLowerCase()) ? space : whole,+ );+ const named = mentionsInText(unselectedText, catalog);+ named.pinIds = [...new Set([...named.pinIds, ...chosen.flatMap((item) => item?.pinIds ?? [])])];const lines: string[] = [];if (named.agents.length > 0 && surface === "society") {const teammates = named.agents.map((a) => `${JSON.stringify(a.name)} (id ${JSON.stringify(a.agentId)})`).join(", ");@@@ -1093,13 -1099,13 +1100,14 @@@}};- const pickerOpen = Boolean(mention) && (matches.length > 0 || (mention?.query.length ?? 0) > 0 || capabilities.isLoading || codingLoading);+ const pickerOpen = mentionOpen;return (- <div className="shrink-0 border-t border-border px-3 pb-3 pt-2">+ <div className="shrink-0 px-4 pb-4 pt-2 sm:px-6">+ <div className={CHAT_MEASURE}><ChatCommandPanel control={commands} /></div>{problem ? <p className="mb-1 px-1 text-xs text-destructive">{problem}</p> : null}{mentionOpen && codingError ? <button type="button" className="mb-1 text-xs text-destructive underline" onClick={() => setCodingRetry((n) => n + 1)}>{t("society.chat.coding_retry")}</button> : null}+ {mentionOpen && capabilities.inventoryError ? <button type="button" className="mb-1 text-xs text-destructive underline" onClick={capabilities.retryInventory}>{t("common.retry")}</button> : null}<div className={CHAT_MEASURE}><ChatAttachmentStrip attachments={attachments.attachments} analyzing={attachments.analyzing} onRemove={attachments.remove} /></div>