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.

fix: resolve chat routing, Linux setup, voice fallback, and documentation gaps (#273)

Ruben Lütke5ff661c9134d
diff --git a/docs/authoring/public-docs-manifest.yaml b/docs/authoring/public-docs-manifest.yaml
index a4a12d6309..7e73d633d6 100644
--- a/docs/authoring/public-docs-manifest.yaml
+++ b/docs/authoring/public-docs-manifest.yaml
@@ -1,7 +1,7 @@
version: 1
language: en
content_root: docs/product
-page_count: 48
+page_count: 50
navigation_principle: reader-journey
authoring_contract:
audience: People using Personal Jarvis, including readers with no software background.
@@ -201,6 +201,7 @@ pages:
- jarvis-agents
- workflows-and-commands
- safety-and-approvals
+ - automations
reader_level: beginner
maturity: stable
@@ -1051,3 +1052,41 @@ pages:
- troubleshooting
reader_level: advanced
maturity: stable
+
+ - section: Everyday use
+ section_order: 2
+ order: 9
+ slug: automations
+ file: docs/product/everyday-use/automations.md
+ title: Automations
+ diataxis: howto
+ summary: Browse automation templates, control recurring work, and inspect schedules and run history.
+ authoritative_sources:
+ - jarvis/ui/web/frontend/src/views/AutomationsView.tsx
+ - jarvis/ui/web/frontend/src/views/automations/TemplateAddDialog.tsx
+ - jarvis/tasks/templates/__init__.py
+ related:
+ - tasks-and-reminders
+ - costs
+ - workflows-and-commands
+ - safety-and-approvals
+ reader_level: beginner
+ maturity: stable
+
+ - section: Everyday use
+ section_order: 2
+ order: 10
+ slug: costs
+ file: docs/product/everyday-use/costs.md
+ title: Spend & Tokens
+ diataxis: howto
+ summary: Understand recorded usage, compare providers, and trace spending to individual runs.
+ authoritative_sources:
+ - jarvis/ui/web/frontend/src/views/CostsView.tsx
+ - jarvis/ui/web/costs_routes.py
+ related:
+ - tasks-and-reminders
+ - automations
+ - providers-and-api-keys
+ reader_level: beginner
+ maturity: stable
diff --git a/docs/jarvis-cli.md b/docs/jarvis-cli.md
index dfc23e78be..31389cbdfb 100644
--- a/docs/jarvis-cli.md
+++ b/docs/jarvis-cli.md
@@ -24,7 +24,8 @@ The CLI is a **thin HTTP client over the REST API**, in two layers:
commands for the common domains: `brain`, `config`, `missions`, `wiki`,
`sessions`, `skills`, `outputs`, `board`, `costs`, `workflows`, `conductor`,
`contacts`, `telephony`, `marketplace`, `mcps`, `docs`, `frontier`,
- `local-models`, plus `auth`, `system`, `tasks`.
+ `local-models`, `clis`, `commands`, `computer-use`, `friends`, `ide`,
+ `permissions`, `socials`, plus `auth`, `system`, `tasks`.
Because the CLI only ever calls the same routes the WebUI calls, it inherits all
of Jarvis's safety machinery (risk tiers, the atomic config-write pipeline, the
diff --git a/docs/os-parity.md b/docs/os-parity.md
index bd56a74fe2..1b1e3867fc 100644
--- a/docs/os-parity.md
+++ b/docs/os-parity.md
@@ -1,5 +1,19 @@
# OS Feature Parity — macOS / Linux Gap Register
+## Linux CLI discovery and headless credentials (2026-10-01, T2)
+
+The Linux installer exposes `jarvis` and `jarvisctl` through symlinks in
+`~/.local/bin`, including headless installs and updates. Existing unrelated
+commands are preserved. When that directory is absent from `PATH`, the installer
+prints a shell-quoted export command and a profile hint. Windows and macOS skip
+this step. Covered by `tests/unit/install/test_cli_links.py` and the installer
+flow tests; a complete fresh installation on each OS is not implied.
+
+An absent OS credential store is an expected headless configuration, so its
+working file-store fallback logs at INFO. A previously available vault failing
+still logs a warning. Credential storage and recovery behavior remain covered
+by the headless-keyring, locked-keyring, and backend-recovery tests.
+
## Connected computers that run Windows (2026-09-30, T3)
This one is about the REMOTE side: the machine Jarvis connects to under
diff --git a/docs/product/everyday-use/automations.md b/docs/product/everyday-use/automations.md
new file mode 100644
index 0000000000..2871abebb4
--- /dev/null
+++ b/docs/product/everyday-use/automations.md
@@ -0,0 +1,176 @@
+---
+title: "Automations"
+slug: automations
+summary: "Browse automation templates, control recurring work, and inspect schedules and run history."
+section: "Everyday use"
+section_order: 2
+order: 9
+diataxis: howto
+status: active
+owner: maintainers
+last_reviewed: 2026-10-01
+phase: "-"
+audience: end-user
+tags: [automations, templates, schedules, tasks]
+related: [tasks-and-reminders, costs, workflows-and-commands, safety-and-approvals]
+---
+
+The **Automations** section brings together reusable recurring work, upcoming
+one-off schedules, completed runs, and a catalogue of templates. Depending on
+your navigation layout, scheduled work may appear under **Scheduled**.
+
+Use this section to answer three questions: what is enabled, what is due next,
+and what actually happened on the last run.
+
+## Choose the Right Starting Point
+
+| Your goal | Start here |
+|---|---|
+| Reuse an available pre-built routine | Catalogue |
+| Create your own recurring instruction | New automation or the custom catalogue tile |
+| Run one instruction later | Schedules |
+| Review a previous attempt | Runs |
+| Pause or inspect recurring work | Automations |
+
+A template saves form-filling. Once added, it creates a task with its own saved
+settings. Browsing a template alone does not create or run that task.
+
+For the detailed one-off task form, intervals, and task approval behavior, see
+[Tasks and Reminders](tasks-and-reminders).
+
+## Before You Add an Automation
+
+- Keep Personal Jarvis running when the automation is due.
+- Connect the services required by the intended task.
+- Check that the selected agent or model is available for that work.
+- Decide how often the result is useful before choosing its schedule.
+- Write inputs that make sense without the current chat conversation.
+
+Use the app's protected connection fields for credentials. Template inputs are
+task content, not a place to save API keys or passwords.
+
+## Browse the Catalogue
+
+Open **Catalogue** to see the templates available in your installation.
+Category filters reduce the list to the kind of work you need.
+
+Each card describes the automation and exposes its add action. Requirements and
+missing capabilities help explain why a template may not be ready to run.
+
+The custom tile opens the task editor when no template fits your purpose.
+An already-added template can offer a shortcut to its existing automation.
+
+An empty catalogue does not mean your saved schedules have disappeared. Templates
+and saved tasks are separate lists; check **Automations** and **Schedules**.
+
+## Add a Template
+
+1. Choose a template and select **Add**.
+2. Review its prefilled title and give it a recognizable name if needed.
+3. Complete the template's inputs, including all required fields.
+4. Review any missing-service or capability message.
+5. Choose the offered schedule kind, time, and weekday where applicable.
+6. Select **Add** to save the automation.
+7. Confirm that its row appears in **Automations**.
+
+The schedule dialog uses your browser's time zone. Review the saved schedule
+after adding it, especially when your device's time zone changes.
+
+An error in the dialog means the addition did not complete. Keep the dialog open,
+correct the indicated input or connection, and confirm a saved row before relying
+on the schedule.
+
+Adding an automation and completing its first run are separate events. Inspect
+the run result before relying on a new routine unattended.
+
+## Read the Automations Table
+
+Each row brings together the recurring task's identity, schedule, last run, and
+enabled state. The table gives an overview without opening every task.
+
+Open a row to see more detail, including the latest result and its step timeline
+when those records are available. A task that has never run has no result yet.
+
+The row's action menu exposes operations such as **Run now** and deletion.
+Actions that fail show an error notice; the existing row remains the reference
+for the task's actual saved state.
+
+## Arm or Pause Recurring Work
+
+The arm switch controls whether the recurring automation is enabled.
+
+1. Find the automation by name.
+2. Turn its switch off to pause future scheduled execution.
+3. Confirm the row shows the disabled state.
+4. Turn it back on when you want scheduled execution to resume.
+
+Pausing preserves the task and its settings. Deleting removes the task instead.
+Do not treat a switch change as proof that an already-running operation stopped;
+check the run's status separately.
+
+## Run Once on Demand
+
+Use **Run now** when you deliberately want an immediate attempt. This executes the
+task's configured work and may call its connected services or model.
+
+After requesting a run, open its details or the **Runs** tab. A successfully
+accepted request does not establish that every step finished successfully.
+
+If the task needs approval, handle the pending request through the app's normal
+approval surface. The catalogue does not grant blanket permission to its tasks.
+
+## Check One-Off Schedules
+
+**Schedules** lists one-off work waiting to fire. Its time and countdown help you
+confirm when an instruction is due.
+
+Use the schedule creation action for a new one-time task. After saving, verify
+the new item appears with the expected time.
+
+A schedule is a plan for future execution. Its outcome belongs in **Runs**, where
+you can check whether it completed, failed, or was cancelled.
+
+## Review Run History
+
+**Runs** shows previous attempts rather than only enabled recurring tasks.
+Use its status filters to find completed, failed, or otherwise relevant work.
+
+Open an entry to read the recorded result and inspect its step timeline.
+The timeline can show which part finished and where a problem occurred.
+
+When investigating a failure:
+
+1. Read the run's result or error.
+2. Check the required connection and model or agent availability.
+3. Correct the cause before requesting another attempt.
+4. Inspect the next run's result to confirm recovery.
+
+Avoid repeatedly selecting **Run now** while an earlier attempt is still active.
+Use the current run's state to decide what to do next.
+
+## Troubleshooting
+
+- **No catalogue:** the backend may not offer templates; existing tasks can still
+ be reviewed in the other tabs.
+- **No matching rows:** clear the search or status/category filter.
+- **Missing service:** connect the named service before expecting its steps to work.
+- **No latest result:** the task may not have completed a run yet.
+- **A run did not finish:** inspect its recorded error or pending approval.
+
+## How It Fits Together
+
+A template fills in a saved task. The scheduler watches enabled tasks and starts
+their configured work when due. Run records describe the resulting attempt;
+arming a task and completing a run are distinct states.
+
+## Check That It Works
+
+1. Open an existing automation and check its saved schedule.
+2. Compare the last-run status with its recorded result in **Runs**.
+3. If it has never run, confirm that the view shows no completed result.
+4. Check **Schedules** separately for upcoming one-off tasks.
+
+## Next Steps
+
+For the usage associated with scheduled activity, open
+[Spend & Tokens](costs) and filter to the relevant activity and period.
diff --git a/docs/product/everyday-use/costs.md b/docs/product/everyday-use/costs.md
new file mode 100644
index 0000000000..4eb0655a7a
--- /dev/null
+++ b/docs/product/everyday-use/costs.md
@@ -0,0 +1,171 @@
+---
+title: "Spend & Tokens"
+slug: costs
+summary: "Understand recorded usage, compare providers, and trace spending to individual runs."
+section: "Everyday use"
+section_order: 2
+order: 10
+diataxis: howto
+status: active
+owner: maintainers
+last_reviewed: 2026-10-01
+phase: "-"
+audience: end-user
+tags: [costs, tokens, providers, usage]
+related: [tasks-and-reminders, automations, providers-and-api-keys]
+---
+
+Open **Spend & Tokens** to see which recorded activity used tokens and how its
+cost was accounted for. The view brings together usage from voice sessions,
+missions, and agent chats, including supported Agentic IDE records.
+
+It reads the activity already stored by the app. It does not maintain a second
+ledger, change your provider account, or make a model request to measure usage.
+
+## Start with the Scope
+
+Before comparing totals, check the selected area, time range, and billing filter.
+They determine which records appear in every panel below them.
+
+1. Open **Spend & Tokens** from the app's navigation or profile menu.
+2. Choose the activity area you want to inspect.
+3. Select the last **7**, **30**, or **90** days, or the full available history.
+4. Keep the billing filter on all usage for an overview.
+5. Choose the displayed currency, **USD** or **EUR**.
+
+Changing currency changes the presentation of the same records. It does not
+convert a payment or change the currency used by your provider.
+
+The euro display uses the conversion rate available to the app. A provider's
+invoice may use a different exchange rate or include taxes and other charges.
+
+## Read the Headline Totals
+
+The summary tiles show spending, tokens, and recorded activity for the current
+scope. Read their supporting labels as well as the large number.
+
+Usage can have different billing treatments:
+
+| Treatment | How to interpret it |
+|---|---|
+| Billed usage | Recorded API usage with a monetary cost |
+| Subscription usage | Usage attributed to an existing subscription seat |
+| Local or unpriced usage | Activity that may have tokens without a known API price |
+
+Subscription-covered usage is separated from directly billed usage. A displayed
+usage value is not necessarily an additional charge on top of your subscription.
+
+A zero or missing cost is not proof that the operation consumed no resources.
+Some providers do not report enough information to price an operation.
+
+## Follow a Provider or Model
+
+The breakdown table is interactive. A row selects a filter that affects the
+totals, trend chart, model details, and line items together.
+
+1. Choose a breakdown dimension such as **Provider** or **Model**.
+2. Click the row you want to investigate.
+3. Check the active filter chips below the controls.
+4. Add another filter to narrow the result further.
+5. Remove a chip, or click the selected row again, to clear that choice.
+
+For example, select one provider and then one model to inspect that combination
+within your chosen date range. Compare the same date range when switching models.
+
+The breakdown can also group by role or activity surface. These answer different
+questions: which kind of work ran, and where in the app it originated.
+
+Switching the top-level activity area clears row-level filters that might belong
+only to the previous area. The time range and search query remain available.
+
+## Use the Trend Chart
+
+The chart shows how the selected usage changed over time. Hover a point or bar
+for its detail, and use the available chart controls to choose what to compare.
+
+Chart selections can narrow the same data shown in the tables. If a table looks
+unexpectedly small after using the chart, inspect the active filters first.
+
+An empty interval means no matching record was available to the view. It does
+not prove that another application or an unconnected provider account was idle.
+
+## Open a Day's Report
+
+The daily list groups recorded activity by local calendar day. Open a day to see
+its totals, breakdown, and the underlying entries together.
+
+Use the day report when a total increased unexpectedly:
+
+1. Find the day where the change occurred.
+2. Open its report.
+3. Compare the providers, models, and activity types for that day.
+4. Inspect the largest matching entries.
+5. Return to the overview before comparing a different period.
+
+The report follows the view's current filters. A provider filter can make a day
+look smaller than the all-provider total you saw earlier.
+
+## Inspect Individual Entries
+
+Line items let you move from an aggregate total to the recorded work behind it.
+Use search and the available sort choices to find recent, costly, or token-heavy
+activity. Load more entries when the first page does not contain the record.
+
+A line item can narrow the view to its associated work. Keep an eye on the filter
+chips so that later comparisons are made with the scope you intended.
+
+The source run or conversation remains the place to read what happened. This
+view focuses on usage and attribution rather than reproducing a transcript.
+
+## Understand Token Counts and Rates
+
+Input, cached-input, and output tokens have different meanings and may have
+different prices. Cached tokens can contribute to the total while costing less
+than newly processed input.
+
+Open the rates panel to inspect the pricing information available for recorded
+models. A known rate, an estimate, and an unknown rate should not be interpreted
+as equally precise measurements.
+
+Model names alone do not establish the final charge. Provider, billing treatment,
+cached usage, and the recorded price source all matter.
+
+The view is useful for comparing activity inside Personal Jarvis. Your provider's
+billing dashboard remains the authority for its invoice and account balance.
+
+## Troubleshooting
+
+- **No entries:** expand the date range and remove active filters.
+- **Tokens without cost:** check whether the price source is unknown or the work
+ ran locally or through a subscription.
+- **Unexpectedly low totals:** verify the selected activity area and billing filter.
+- **A recent run is absent:** refresh after the run finishes recording its usage.
+- **A provider invoice differs:** compare the same period and account, including
+ activity outside this app and charges not represented by model usage.
+
+Refresh reloads existing usage data. It does not send a paid test request.
+
+## How It Fits Together
+
+The view aggregates existing usage records, applies your filters, and presents
+the matching totals and entries. The underlying run history and provider
+connections remain the source of activity and pricing information.
+
+## Check That It Works
+
+1. Choose a date range containing a recorded run.
+2. Filter to its provider and confirm the filter chip appears.
+3. Open a matching entry or day report.
+4. Remove the filter and confirm the broader overview returns.
+
+This check only reads existing records; it does not require a new model call.
+
+## From a Terminal
+
+The `jarvis costs` command group reads the same running application's cost API.
+Use `jarvis costs --help` to discover the supported summaries and filters.
+
+## Next Steps
+
+For scheduled activity, see [Automations](automations). To create a specific
+one-off task, see [Tasks and Reminders](tasks-and-reminders).
diff --git a/docs/product/everyday-use/tasks-and-reminders.md b/docs/product/everyday-use/tasks-and-reminders.md
index b2b9f46daf..1c73c8c0e8 100644
--- a/docs/product/everyday-use/tasks-and-reminders.md
+++ b/docs/product/everyday-use/tasks-and-reminders.md
@@ -8,11 +8,11 @@ order: 3
diataxis: howto
status: active
owner: maintainers
-last_reviewed: 2026-07-30
+last_reviewed: 2026-10-01
phase: "-"
audience: end-user
tags: [tasks, reminders, scheduling, recurring, automation, approvals]
-related: [jarvis-agents, workflows-and-commands, safety-and-approvals]
+related: [jarvis-agents, workflows-and-commands, safety-and-approvals, automations]
---
Use **Tasks** when one instruction should run later or repeat. The saved card is
diff --git a/install/installer.py b/install/installer.py
index 8122695648..4454484ea1 100644
--- a/install/installer.py
+++ b/install/installer.py
@@ -41,6 +41,7 @@ import argparse
import json
import os
import platform
+import shlex
import shutil
import stat
import subprocess
@@ -799,7 +800,9 @@ def step_launch(*, headless: bool, dry_run: bool) -> None:
msg = "the Desktop App"
# └ closes the connected journey the Stage-1 shell opened with ┌.
- console.print(f"[muted]└[/] [brand]Launching {msg}[/] [muted]— the app takes over from here…[/]")
+ console.print(
+ f"[muted]└[/] [brand]Launching {msg}[/] [muted]— the app takes over from here…[/]"
+ )
hint = _relaunch_command(headless=headless)
if dry_run:
console.print(f"[muted] (dry-run) {' '.join(cmd)}[/]")
@@ -822,6 +825,43 @@ def step_launch(*, headless: bool, dry_run: bool) -> None:
console.print(f"[muted] If it doesn't open, run:[/] [brand]{hint}[/]")
+def step_cli_links(*, dry_run: bool) -> None:
+ """Expose Linux venv entry points without replacing unrelated commands."""
+ if not sys.platform.startswith("linux"):
+ return
+ bin_dir = Path.home() / ".local" / "bin"
+ for command in ("jarvis", "jarvisctl"):
+ target = repo_root() / ".venv" / "bin" / command
+ link = bin_dir / command
+ if dry_run:
+ note(f"(dry-run) CLI link: {rich_escape(str(link))} -> {rich_escape(str(target))}")
+ continue
+ try:
+ if not target.is_file():
+ note(f"CLI entry point missing: {rich_escape(str(target))}")
+ continue
+ if link.is_symlink() and link.resolve() == target.resolve():
+ continue
+ if link.exists() or link.is_symlink():
+ note(
+ f"Keeping existing {rich_escape(str(link))}; "
+ f"use {rich_escape(str(target))}"
+ )
+ continue
+ bin_dir.mkdir(parents=True, exist_ok=True)
+ link.symlink_to(target)
+ except OSError as exc:
+ note(
+ f"Could not create CLI link: {rich_escape(str(exc))}; "
+ f"use {rich_escape(str(target))}"
+ )
+ if str(bin_dir) not in os.environ.get("PATH", "").split(os.pathsep):
+ export = f"export PATH={shlex.quote(str(bin_dir))}:\"$PATH\""
+ note("To use jarvis / jarvisctl in this shell:")
+ console.print(export, markup=False, highlight=False, soft_wrap=True)
+ note("Add that line to your shell profile to keep the commands on PATH.")
+
+
def step_summary(*, no_launch: bool, update: bool, headless: bool) -> None:
"""The finale: a clack-style note box HANGING off the journey gutter.
@@ -847,7 +887,9 @@ def step_summary(*, no_launch: bool, update: bool, headless: bool) -> None:
if update:
rows.append(("Next", "your setup and settings are kept - no re-onboarding", "muted"))
elif headless or is_headless_linux():
- rows.append(("Next", f"open http://localhost:{_resolved_admin_port()} in your browser -", "muted"))
+ rows.append(
+ ("Next", f"open http://localhost:{_resolved_admin_port()} in your browser -", "muted")
+ )
rows.append(("", "the one-time setup guide (language, wake word,", "muted"))
rows.append(("", "API keys) runs there, once", "muted"))
else:
@@ -870,7 +912,7 @@ def step_summary(*, no_launch: bool, update: bool, headless: bool) -> None:
console.print(GUTTER)
console.print(f"[ok]◇[/] [ok.bold]{title}[/] [brand.deep]{top_dashes}╮[/]")
console.print(f"[brand.deep]│[/]{' ' * (inner_w + 5)}[brand.deep]│[/]")
- for (key, value, vstyle), p in zip(rows, plain):
+ for (key, value, vstyle), p in zip(rows, plain, strict=True):
pad = " " * (inner_w - len(p))
console.print(
f"[brand.deep]│[/] [muted]{key:<{key_w}}[/] "
@@ -943,6 +985,7 @@ def main(argv: list[str] | None = None) -> int:
run_noted(browser_cmd, label="preparing the agent browser", cwd=repo_root())
phase("6/6", "Finish & launch")
+ step_cli_links(dry_run=args.dry_run)
step_worker_cli(dry_run=args.dry_run)
if not step_desktop_integration(enabled=with_desktop, dry_run=args.dry_run):
sys.exit(4)
diff --git a/jarvis/agent_chat/service.py b/jarvis/agent_chat/service.py
index e7fda9c3e8..8fb6f4a205 100644
--- a/jarvis/agent_chat/service.py
+++ b/jarvis/agent_chat/service.py
@@ -552,22 +552,19 @@ class AgentChatService:
session = await self.bind_society_session(session_id, routine_run=routine_run)
selected_runner = None
if session.surface == "jarvis":
- from jarvis.core.model_selection import worker_selection
- from jarvis.core.runtime_refs import get_brain_manager
from jarvis.core.task_agent import subscription_seat_off_loop
- manager = get_brain_manager()
- selection = worker_selection(getattr(manager, "_config", None))
- if selection is not None:
- seat = await subscription_seat_off_loop(selection.provider)
- provider, selected_runner = seat or (selection.provider, "brain")
- if (session.provider, session.model) != (provider, selection.model or ""):
+ # The saved chat pick is authoritative. Global worker preferences
+ # supply defaults when creating chats, never replace a user's
+ # provider/model on send (#223). Resolve only that pick's seat.
+ seat = await subscription_seat_off_loop(session.provider)
+ if seat is not None:
+ provider, selected_runner = seat
+ if session.provider != provider:
session = replace(
session,
provider=provider,
- model=selection.model or "",
vendor_session=None,
- effort=selection.reasoning_effort,
)
self.store.reseat_session(session_id, provider=provider, model=session.model)
if (
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index dee0797da2..c3fcd0845a 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -5199,7 +5199,11 @@ def _install_file_cred_backend(reason: str, *, retain_platform_backend: bool = T
keyring.set_keyring(_FileKeyringBackend())
if not _FILE_BACKEND_ACTIVE:
- logging.getLogger(__name__).warning(
+ # A headless host normally has no platform vault. Keep that
+ # expected fallback out of every short CLI invocation, while a
+ # previously usable vault failing still deserves a warning.
+ logging.getLogger(__name__).log(
+ logging.WARNING if retain_platform_backend else logging.INFO,
"OS credential store unusable (%s) — API keys are stored in a local "
"0600 file under %s. Configure a Secret Service / Keychain for "
"OS-encrypted storage.",
diff --git a/jarvis/plugins/realtime/openai_realtime.py b/jarvis/plugins/realtime/openai_realtime.py
index 513ef0d4d2..d5d904c609 100644
--- a/jarvis/plugins/realtime/openai_realtime.py
+++ b/jarvis/plugins/realtime/openai_realtime.py
@@ -1683,10 +1683,10 @@ class LocalRealtimeProvider:
# and quietly routing a call into one the user did not pick is the opposite
# of what a local card is for.
implicit_usage_fallback_allowed = False
- # Keep the stack warm when selected as the primary voice provider. Merely
- # configuring it as a fallback must not reserve several GB of GPU/RAM.
- # A fallback can still start on demand through its normal open_session.
- eager_warm_as_fallback = False
+ # An explicitly configured local fallback must be ready when the primary
+ # fails. The supervisor still gates spawning on local-model enablement
+ # and available hardware; unselected providers are never warmed.
+ eager_warm_as_fallback = True
# Small self-hosted brains prefill the whole instruction block EVERY turn;
# the full ~24k-char profile cost 7.8 s of LLM time per answer against
# qwen2.5:7b (live 2026-08-07). The session builder honors this capability
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 3e79b4a4c0..798c5046cd 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -1413,7 +1413,17 @@
"title": "Run Inspector",
"subtitle": "Entwickler-Forensik pro Run: Umgebung, Entscheidungen, Latenz, Tool-Ein-/Ausgabe und der rohe Ereignisstrom.",
"empty": "Wähle einen Run zur Analyse.",
+ "empty_hint": "Wähle links einen Run, um seine Turns, Entscheidungen, Latenz und Rohereignisse zu sehen.",
+ "empty_title": "Noch keine Runs aufgezeichnet",
+ "empty_body": "Jede Sprach- oder Chat-Sitzung erscheint hier mit ihrem vollständigen Analyseverlauf.",
"unavailable": "Der Run-Recorder ist deaktiviert.",
+ "unavailable_body": "Aktiviere den Run-Recorder in den Einstellungen, um den Ablauf jeder Sitzung aufzuzeichnen.",
+ "search": "Runs suchen…",
+ "no_matches": "Kein Run entspricht dieser Suche.",
+ "no_turns": "Dieser Run enthält keinen abgeschlossenen Turn.",
+ "loading": "Runs werden geladen…",
+ "back": "Zurück",
+ "latency": "Latenz",
"export_raw": "Roh-Export (JSON)",
"full_transcript": "Gesamter Gesprächsverlauf",
"deep_dive": "Metriken & Deep-Dive",
@@ -1429,6 +1439,27 @@
"errors": "Fehler",
"events": "Ereignisse"
},
+ "tab": {
+ "turns": "Turns",
+ "environment": "Umgebung",
+ "metrics": "Metriken",
+ "errors": "Fehler",
+ "session_events": "Sitzungsereignisse"
+ },
+ "errors": {
+ "empty": "Keine Fehler aufgezeichnet."
+ },
+ "metrics": {
+ "think": "Denken",
+ "speak": "Sprechen",
+ "tokens_in": "Eingabe-Tokens",
+ "tokens_out": "Ausgabe-Tokens",
+ "interruptions": "Unterbrechungen",
+ "worst_latency": "Höchste Latenz",
+ "cost_by_provider": "Kosten nach Anbieter",
+ "recorded_events": "Aufgezeichnete Ereignisse",
+ "tool_usage": "Tool-Nutzung"
+ },
"environment": "Run-Umgebung",
"session_events": "Ereignisse auf Sitzungsebene",
"no_usage": "Verbrauch nicht gemessen",
@@ -1458,7 +1489,9 @@
"cache_hit": "Treffer",
"cache_miss": "kein Treffer",
"interrupted": "unterbrochen",
- "context": "Kontext"
+ "context": "Kontext",
+ "turns": "Turns",
+ "tokens": "Tokens"
},
"env": {
"mode": "Modus",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 4da57e11f7..1c7dac49c3 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1413,7 +1413,17 @@
"title": "Run Inspector",
"subtitle": "Análisis para desarrolladores por run: entorno, decisiones, latencia, E/S de herramientas y el flujo bruto de eventos.",
"empty": "Selecciona un run para analizar.",
+ "empty_hint": "Selecciona un run a la izquierda para ver sus turnos, decisiones, latencia y eventos sin procesar.",
+ "empty_title": "Aún no hay runs registrados",
+ "empty_body": "Cada sesión de voz o chat aparece aqué con su registro completo de análisis.",
"unavailable": "El grabador de runs está desactivado.",
+ "unavailable_body": "Activa el grabador de runs en Ajustes para registrar lo que hizo cada sesión.",
+ "search": "Buscar runs…",
+ "no_matches": "Ningún run coincide con esta búsqueda.",
+ "no_turns": "Este run no contiene ningún turno completado.",
+ "loading": "Cargando runs…",
+ "back": "Volver",
+ "latency": "latencia",
"export_raw": "Exportar bruto (JSON)",
"full_transcript": "Conversación completa",
"deep_dive": "Métricas y análisis",
@@ -1429,6 +1439,27 @@
"errors": "Errores",
"events": "Eventos"
},
+ "tab": {
+ "turns": "Turnos",
+ "environment": "Entorno",
+ "metrics": "Métricas",
+ "errors": "Errores",
+ "session_events": "Eventos de sesión"
+ },
+ "errors": {
+ "empty": "No se registraron errores."
+ },
+ "metrics": {
+ "think": "Pensar",
+ "speak": "Hablar",
+ "tokens_in": "Tokens de entrada",
+ "tokens_out": "Tokens de salida",
+ "interruptions": "Interrupciones",
+ "worst_latency": "Latencia máxima",
+ "cost_by_provider": "Coste por proveedor",
+ "recorded_events": "Eventos registrados",
+ "tool_usage": "Uso de herramientas"
+ },
"environment": "Entorno del run",
"session_events": "Eventos a nivel de sesión",
"no_usage": "consumo no medido",
@@ -1458,7 +1489,9 @@
"cache_hit": "acierto",
"cache_miss": "fallo",
"interrupted": "interrumpido",
- "context": "contexto"
+ "context": "contexto",
+ "turns": "turnos",
+ "tokens": "tokens"
},
"env": {
"mode": "Modo",
diff --git a/tests/unit/agent_chat/test_runner_brain.py b/tests/unit/agent_chat/test_runner_brain.py
index 95f19b9604..fe7aee5432 100644
--- a/tests/unit/agent_chat/test_runner_brain.py
+++ b/tests/unit/agent_chat/test_runner_brain.py
@@ -9,6 +9,7 @@ from __future__ import annotations
import asyncio
from pathlib import Path
+from types import SimpleNamespace
from typing import Any
import pytest
@@ -57,6 +58,51 @@ def no_cli(monkeypatch: pytest.MonkeyPatch):
monkeypatch.setattr(svc_mod, "_claude_cli_installed", lambda: False)
+ ("provider", "model", "expected_runner"),
+ [("ollama", "local-model", "brain"), ("openai-codex", "codex-model", "codex-cli")],
+)
+async def test_chat_pick_survives_a_different_global_worker(
+ tmp_path, monkeypatch, provider, model, expected_runner
+):
+ from jarvis.agent_chat import service as svc_mod
+ from jarvis.core import runtime_refs, task_agent
+
+ global_manager = SimpleNamespace(
+ _config=SimpleNamespace(brain=SimpleNamespace(worker=SimpleNamespace(
+ provider="claude-api", model="other-model", reasoning_effort="high"
+ )))
+ )
+ monkeypatch.setattr(runtime_refs, "get_brain_manager", lambda: global_manager)
+ probed = []
+
+ async def seat(selected):
+ probed.append(selected)
+ return None
+
+ monkeypatch.setattr(task_agent, "subscription_seat_off_loop", seat)
+ calls = []
+
+ async def run(handle, text, runner="brain", **kwargs):
+ calls.append((handle.session.provider, handle.session.model, runner))
+ await handle.emit(make_event("turn_finished", {
+ "turn_id": handle.turn_id, "status": "done", "usage": {},
+ }))
+
+ monkeypatch.setattr(svc_mod, "run_brain_turn", run)
+ monkeypatch.setattr(svc_mod, "run_cli_turn", run)
+ svc = _service(None)
+ session = _jarvis_session(svc, tmp_path, provider=provider, model=model, effort="")
+ q = svc.subscribe(session.session_id)
+ await svc.send(session.session_id, "hi")
+ events = await _drain(q, "turn_finished")
+ assert calls == [(provider, model, expected_runner)]
+ assert probed == [provider]
+ assert svc.store.get_session(session.session_id).provider == provider
+ started = next(e for e in events if e["kind"] == "turn_started")["payload"]
+ assert started["provider"] == provider
+
+
async def test_a_jarvis_turn_runs_on_the_brain_with_the_sessions_pick(
tmp_path: Path, monkeypatch: pytest.MonkeyPatch, no_cli
):
diff --git a/tests/unit/core/test_headless_keyring_fallback.py b/tests/unit/core/test_headless_keyring_fallback.py
index 2d68a0fe4e..5790a3fdd5 100644
--- a/tests/unit/core/test_headless_keyring_fallback.py
+++ b/tests/unit/core/test_headless_keyring_fallback.py
@@ -6,6 +6,7 @@ VPS downloader can paste a key in the UI and have it persist.
"""
from __future__ import annotations
+import logging
import os
import sys
import threading
@@ -16,6 +17,31 @@ import pytest
import jarvis.core.config as cfg
[email protected]("retain_platform_backend", [False, True])
+def test_file_backend_logs_expected_headless_fallback_without_warning(
+ monkeypatch, tmp_path, caplog, retain_platform_backend
+):
+ import keyring
+ from keyring.backends import fail
+
+ monkeypatch.setattr(keyring, "get_keyring", lambda: fail.Keyring())
+ monkeypatch.setattr(keyring, "set_keyring", lambda backend: None)
+ monkeypatch.setattr(cfg, "DATA_DIR", tmp_path)
+ monkeypatch.setattr(cfg, "_FILE_BACKEND_ACTIVE", False)
+ monkeypatch.setattr(cfg, "_PLATFORM_KEYRING_BACKEND", None)
+ with caplog.at_level(logging.INFO, logger=cfg.__name__):
+ assert cfg._install_file_cred_backend(
+ "test fallback", retain_platform_backend=retain_platform_backend
+ )
+ assert cfg._install_file_cred_backend(
+ "test fallback", retain_platform_backend=retain_platform_backend
+ )
+ messages = [r for r in caplog.records if "OS credential store unusable" in r.message]
+ assert len(messages) == 1
+ expected = logging.WARNING if retain_platform_backend else logging.INFO
+ assert messages[0].levelno == expected
+
+
def test_file_cred_store_roundtrip(tmp_path):
store = cfg._FileCredStore(path=tmp_path / "creds.json")
assert store.get("personal-jarvis", "groq_api_key") is None
diff --git a/tests/unit/install/test_cli_links.py b/tests/unit/install/test_cli_links.py
new file mode 100644
index 0000000000..a25e0f3ab3
--- /dev/null
+++ b/tests/unit/install/test_cli_links.py
@@ -0,0 +1,101 @@
+"""Linux installer CLI discovery, repeat installs, and collision protection."""
+
+from __future__ import annotations
+
+import importlib.util
+from pathlib import Path
+
+import pytest
+
+_spec = importlib.util.spec_from_file_location(
+ "cli_links_installer", Path(__file__).resolve().parents[3] / "install" / "installer.py"
+)
+installer = importlib.util.module_from_spec(_spec)
+_spec.loader.exec_module(installer)
+
+
+def symlinks_available(tmp_path):
+ probe = tmp_path / "symlink-probe"
+ try:
+ probe.symlink_to(tmp_path / "probe-target")
+ except OSError as exc:
+ pytest.skip(f"Host does not permit symlinks: {exc}")
+ probe.unlink()
+
+
+def linux_install(monkeypatch, tmp_path):
+ root = tmp_path / "installed app"
+ home = tmp_path / "user home"
+ for command in ("jarvis", "jarvisctl"):
+ target = root / ".venv" / "bin" / command
+ target.parent.mkdir(parents=True, exist_ok=True)
+ target.write_text("#!/bin/sh\nexit 0\n", encoding="utf-8")
+ monkeypatch.setattr(installer.sys, "platform", "linux")
+ monkeypatch.setattr(installer, "repo_root", lambda: root)
+ monkeypatch.setattr(installer.Path, "home", lambda: home)
+ monkeypatch.setenv("PATH", "/usr/bin")
+ return root, home / ".local" / "bin"
+
+
+def test_linux_links_both_commands_and_survives_reinstall(
+ linux_install, capsys, symlinks_available
+):
+ root, bin_dir = linux_install
+ installer.step_cli_links(dry_run=False)
+ installer.step_cli_links(dry_run=False)
+ for command in ("jarvis", "jarvisctl"):
+ assert (bin_dir / command).is_symlink()
+ assert (bin_dir / command).resolve() == root / ".venv" / "bin" / command
+ assert "export PATH=" in capsys.readouterr().out
+
+
[email protected]("symlink", [False, True])
+def test_linux_preserves_unrelated_command(
+ linux_install, tmp_path, capsys, symlink, symlinks_available
+):
+ _, bin_dir = linux_install
+ bin_dir.mkdir(parents=True)
+ link = bin_dir / "jarvis"
+ if symlink:
+ link.symlink_to(tmp_path / "missing-other-install")
+ original_target = link.readlink()
+ else:
+ link.write_text("unrelated command", encoding="utf-8")
+ installer.step_cli_links(dry_run=False)
+ assert "Keeping existing" in capsys.readouterr().out
+ if symlink:
+ assert link.readlink() == original_target
+ else:
+ assert link.read_text(encoding="utf-8") == "unrelated command"
+ assert (bin_dir / "jarvisctl").is_symlink()
+
+
+def test_linux_missing_entry_point_leaves_no_broken_link(linux_install, capsys):
+ root, bin_dir = linux_install
+ (root / ".venv" / "bin" / "jarvis").unlink()
+ installer.step_cli_links(dry_run=False)
+ assert not (bin_dir / "jarvis").is_symlink()
+ assert "CLI entry point missing" in capsys.readouterr().out
+
+
+def test_dry_run_never_creates_links(linux_install):
+ _, bin_dir = linux_install
+ installer.step_cli_links(dry_run=True)
+ assert not bin_dir.exists()
+
+
+def test_no_path_hint_when_bin_directory_is_already_present(linux_install, monkeypatch, capsys):
+ _, bin_dir = linux_install
+ monkeypatch.setenv("PATH", str(bin_dir))
+ installer.step_cli_links(dry_run=False)
+ assert "export PATH=" not in capsys.readouterr().out
+
+
[email protected]("platform", ["win32", "darwin"])
+def test_other_platforms_do_not_create_linux_links(linux_install, monkeypatch, platform):
+ _, bin_dir = linux_install
+ monkeypatch.setattr(installer.sys, "platform", platform)
+ installer.step_cli_links(dry_run=False)
+ assert not bin_dir.exists()
diff --git a/tests/unit/realtime/test_local_realtime.py b/tests/unit/realtime/test_local_realtime.py
index e8485546b0..2bed205c57 100644
--- a/tests/unit/realtime/test_local_realtime.py
+++ b/tests/unit/realtime/test_local_realtime.py
@@ -1097,9 +1097,9 @@ async def test_warm_transport_never_raises(monkeypatch) -> None:
# ── Boot-time prespawn (prespawn_transport capability) ───────────────────
-def test_local_realtime_does_not_load_models_for_an_unselected_fallback() -> None:
- """Local fallback configuration alone must not reserve the user's GPU/RAM."""
- assert LocalRealtimeProvider.eager_warm_as_fallback is False
+def test_local_realtime_warms_an_explicitly_configured_fallback() -> None:
+ """A failed cloud primary must not leave the selected fallback cold (#256)."""
+ assert LocalRealtimeProvider.eager_warm_as_fallback is True
async def test_prespawn_spawns_and_arms_the_monitor_without_waiting(