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.

chore(release): prepare v1.2.2

rubenluetke10-beepb5d0812736a0
diff --git a/.gitignore b/.gitignore
index 9df3e7d9bd..a2418be958 100644
--- a/.gitignore
+++ b/.gitignore
@@ -257,7 +257,16 @@ jarvis/ui/web/dist._predockpolish/
# the video/ folder is a tracked Remotion source project, so only its rendered
# output is ignored here — not the whole folder.
.tmp_video_analysis/
-video/public/
+video/public/*
+# The tracked Voice composition depends on these reproducible source assets.
+!video/public/vo-voice/
+video/public/vo-voice/*
+!video/public/vo-voice/*.mp3
+!video/public/shot-voice-ptt-crop.png
+!video/public/shot-voice-handsfree-crop.png
+!video/public/shot-voice-polish-crop.png
+!video/public/shot-voice-translate-crop.png
+!video/public/shot-voice-stats-crop.png
video/out/
# Vertical social promo reel — a self-contained Remotion project kept entirely
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7469d62058..cb08c2ee3c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,58 @@ versioning per [SemVer](https://semver.org/).
---
+## [1.2.2] — 2026-08-03
+
+This release makes realtime subscription voice and the Agentic IDE more
+dependable while adding richer voice controls and knowledge-map views.
+
+### Added
+
+- Added native realtime voice transport with in-app readiness diagnostics,
+ input-level feedback, browser microphone controls, and a complete action path.
+- Added 3D UltraWiki memory maps with 2D/3D switching on both knowledge surfaces.
+- Added Agentic IDE chat-or-terminal workspace choices, voice-orb context, prompt
+ receipts, persistent terminal sizing, and clearer working/done state feedback.
+
+### Fixed
+
+- Prevented subscription voice from hearing itself, inventing user turns,
+ fragmenting replies, losing action responses, or going silent after teardown.
+- Preserved the beginning of deliberate push-to-talk and call-hotkey speech,
+ including quick follow-ups during the wake-word echo lock.
+- Kept screen-context questions out of Computer-Use and routed provider failures
+ across available families instead of leaving core paths silent.
+- Hardened Agentic IDE pane recovery, scrolling, writer failures, terminal links,
+ copy shortcuts, and live-tail switching.
+
+---
+
+## [1.2.1] — 2026-07-31
+
+This corrective release reconnects the public 1.2.0 line with the complete
+maintained source tree and closes the release, install, and UI verification
+gaps found after 1.2.0 was published.
+
+### Added
+
+- Added an experimental ChatGPT subscription path for realtime voice, with
+ honest capability checks and fallback behaviour.
+- Added the Agentic IDE chat view and a consistent coding-CLI picker when a
+ workspace or chat rail opens another agent pane.
+
+### Fixed
+
+- Restored the complete current implementation to the public release line,
+ including the UltraWiki Python package and its frontend source.
+- Preserved interrupted Agentic IDE pane recovery without mistaking the
+ restored pane's own repaint for new work.
+- Restored portable `[full]` dependency resolution across supported Python,
+ operating-system, and CPU combinations, including Windows on ARM64.
+- Fixed the README's package-page asset URL and aligned stale frontend tests
+ with the shipped UI.
+
+---
+
## [1.2.0] — 2026-07-30
This is the first public release since 1.1.5 and it is a large one: a
diff --git a/desktop-ttu-latest.json b/desktop-ttu-latest.json
index 4643fca390..054d6598bd 100644
--- a/desktop-ttu-latest.json
+++ b/desktop-ttu-latest.json
@@ -3,31 +3,35 @@
"runs": 1,
"python": "C:\\Program Files\\Python311\\python.exe",
"vault_pages": 84,
- "median_wall_ms": 1196.7,
- "median_boot_ready_ms": 146.2,
- "median_bind_wall_ms": 805.2,
- "median_voice_ready_wall_ms": 7974.7,
+ "median_wall_ms": 1229.7,
+ "median_boot_ready_ms": 112.1,
+ "median_bind_wall_ms": 695.2,
+ "median_voice_ready_wall_ms": 6263.1,
"voice_ready_wall_ms_runs": [
- 7974.7
+ 6263.1
],
- "median_voice_usable_wall_ms": 8431.0,
+ "median_voice_usable_wall_ms": 6912.7,
"voice_usable_wall_ms_runs": [
- 8431.0
+ 6912.7
],
- "median_app_interactive_wall_ms": 8466.6,
+ "median_app_interactive_wall_ms": 6764.8,
"app_interactive_wall_ms_runs": [
- 8466.6
+ 6764.8
],
"wall_ms_runs": [
- 1196.7
+ 1229.7
],
"boot_ready_ms_runs": [
- 146.2
+ 112.1
],
"phase_medians_ms": {
- "db_app_interactive": 2773.9,
- "db_pre_webserver": 1267.7,
- "db_webserver_ctor": 3765.9
+ "db_app_interactive": 2142.2,
+ "db_pre_webserver": 1131.2,
+ "db_webserver_ctor": 2908.4,
+ "flight_recorder": 0.5,
+ "mission_stack": 44.7,
+ "screenshot_retention": 0.5,
+ "uvicorn_serve": 0.0
},
"anchor": "spawn -> /api/health responds 200 (= DesktopApp._wait_for_backend success = window creation point)",
"secondary_anchor": "median_bind_wall_ms = spawn -> BOOT_READY print (bootstrap bind; may precede a responsive health endpoint)",
diff --git a/jarvis/__init__.py b/jarvis/__init__.py
index cc43de3c00..595de11be6 100644
--- a/jarvis/__init__.py
+++ b/jarvis/__init__.py
@@ -1,3 +1,3 @@
"""Personal Jarvis — a voice-driven, cross-platform meta-orchestrator."""
-__version__ = "1.2.0"
+__version__ = "1.2.2"
diff --git a/jarvis/agentic_ide/activity.py b/jarvis/agentic_ide/activity.py
index 93a0d10327..33e7bad851 100644
--- a/jarvis/agentic_ide/activity.py
+++ b/jarvis/agentic_ide/activity.py
@@ -319,7 +319,7 @@ def _has_current_instruction(term: Any) -> bool:
return int(getattr(term, "submit_generation", -1)) == int(
getattr(term, "process_generation", 0)
)
- except (TypeError, ValueError):
+ except (TypeError, ValueError): # Malformed legacy counters mean no matching run.
return False
diff --git a/jarvis/agentic_ide/intent.py b/jarvis/agentic_ide/intent.py
index 56341b949c..e121c943b0 100644
--- a/jarvis/agentic_ide/intent.py
+++ b/jarvis/agentic_ide/intent.py
@@ -908,8 +908,8 @@ def detect_all(
# it the branch a merely SIMILAR word can win, and the names are short
# enough for ordinary speech to score close: measured against the
# shipping pool "unten" reaches "Hunter" and "dann" reaches "Dana"; the
- # live 2026-07-26 session had "keine" reaching "Kai" and briefing a # i18n-allow: quoted transcript tokens
- # second agent nobody had named. So here — and only here — the name has
+ # "keine" once reached "Kai" and briefed an unnamed agent. # i18n-allow: transcript tokens
+ # So here — and only here — the name has
# to be exact (or fold to the same sound, which is what carries a
# garbled transcript). An addressing shape, being independent evidence,
# still admits a fuzzy call-sign in the branches above.
@@ -1070,7 +1070,8 @@ def _looks_like_instruction(text: str) -> bool:
# "Open N more terminals" #
# --------------------------------------------------------------------------- #
# A second, narrower request shape: the user asking for MORE PANES rather than
-# addressing an existing one ("spawne fünf neue Claude Code Terminals"). # i18n-allow: quoted spoken input
+# addressing an existing one ("spawne fünf neue Claude Code # i18n-allow: quoted spoken input
+# Terminals").
#
# Why it needs its own detector instead of a router tool: the sentence opens
# with the very word the force-spawn heuristic reads as "dispatch a background
@@ -1079,9 +1080,10 @@ def _looks_like_instruction(text: str) -> bool:
# deterministic too, and it deliberately claims the turn BEFORE the
# vehicle-naming stand-down (see ``owns_turn``).
#
-# The safety margin is one mandatory word: a TERMINAL NOUN. "Spawne fünf # i18n-allow: quoted spoken input
-# Terminals" is a workspace request; "spawne fünf Agenten" stays a background # i18n-allow: quoted spoken input
-# mission. A false positive here silently withholds a mission the user wanted,
+# The safety margin is one mandatory word: a TERMINAL NOUN.
+# "Spawne fünf Terminals" is a workspace request; # i18n-allow: quoted spoken input
+# "spawne fünf Agenten" stays a background mission. # i18n-allow: quoted spoken input
+# A false positive here silently withholds a mission the user wanted,
# which is invisible; a false negative just costs one clearer sentence.
# Nouns that mean "a pane of the coding workspace". "Fenster"/"ventana"
@@ -1092,6 +1094,33 @@ _PANE_NOUN_RE = re.compile(
re.IGNORECASE,
)
+# ``tab`` is shared vocabulary: inside the coding workspace it can mean a pane,
+# but beside an explicit browser surface it means a browser tab. The workspace
+# must never win that collision merely because it happens to be open. This is a
+# context veto rather than deleting ``tab`` from the pane vocabulary, so the
+# established shorthand "open three more tabs" keeps working.
+_BROWSER_TAB_CONTEXT_RE = re.compile(
+ r"\b(?:browser|chrome|firefox|safari|microsoft\s+edge|web\s*site|webpage|"
+ r"incognito|private|guest|"
+ r"webseite|internetseite|inkognito|privat|gast|" # i18n-allow: input vocab
+ r"navegador|sitio\s+web|p[aá]gina\s+web|" # i18n-allow: input vocab
+ r"inc[oó]gnit\w*|privad\w*)\b", # i18n-allow: input vocab
+ re.IGNORECASE,
+)
+
+
+def _pane_nouns(text: str) -> list[re.Match[str]]:
+ """Return coding-pane nouns, excluding tabs owned by a named browser."""
+ browser_owns_tabs = _BROWSER_TAB_CONTEXT_RE.search(text) is not None
+ return [
+ match
+ for match in _PANE_NOUN_RE.finditer(text)
+ if not (
+ browser_owns_tabs
+ and match.group(0).casefold() in {"tab", "tabs"}
+ )
+ ]
+
# Verbs that ask for something to be opened, plus the additive markers that
# carry the same request without a verb ("noch drei Terminals").
_OPEN_VERB_RE = re.compile(
@@ -1108,18 +1137,34 @@ _OPEN_VERB_RE = re.compile(
re.IGNORECASE,
)
_ADDITIVE_RE = re.compile(
- r"\b(?:noch|weitere\w*|zus[aä]tzlich\w*|mehr|another|more|extra|" # i18n-allow: German input vocabulary
+ r"\b(?:noch|weitere\w*|zus[aä]tzlich\w*|mehr|another|" # i18n-allow: input vocab
+ r"more|"
+ r"extra|"
r"otr[oa]s?|m[aá]s)\b",
re.IGNORECASE,
)
-# An utterance that OPENS with a question word is asking about terminals, not
-# asking for them ("wie viele Terminals kann ich öffnen?"). A polite request # i18n-allow: quoted spoken input
-# that merely ends in a question mark ("kannst du 5 Terminals öffnen?") is NOT # i18n-allow: quoted spoken input
-# excluded — that is a real request, and the filler prefix above strips its
-# politeness for the composer anyway.
+# An utterance that OPENS with an information-question shape is asking about
+# terminals, not asking for them.
+# This includes prepositional questions ("with which shortcut …") and
+# first-person modals ("can I …"); neither is an order to the assistant. A
+# polite request that merely ends in a question mark is not excluded: it is a
+# real request, and the filler prefix above strips its politeness for the
+# composer anyway.
_QUESTION_OPENER_RE = re.compile(
- r"^(?:"
+ r"^\s*[¿]?(?:"
+ # A preposition can legitimately precede the interrogative. Without this,
+ # "with which shortcut can I open a browser tab" opened an IDE pane.
+ r"(?:mit|in|auf|an|von|zu|unter|[uü]ber|f[üu]r|durch)" # i18n-allow: input vocab
+ r"\s+welche\w*|" # i18n-allow: input vocab
+ r"(?:with|in|on|at|from|to|under|for|by|through)\s+which|"
+ r"(?:con|en|de|a|para|por)\s+(?:qu[eé]|cu[aá]les?)|" # i18n-allow: input vocab
+ # First-person and impersonal modals ask about possibility or advice. Keep
+ # second-person forms out: "can you open …" remains a polite command.
+ r"(?:kann|k[oö]nnte|soll(?:te)?|muss|darf|d[üu]rfte)" # i18n-allow: input vocab
+ r"\s+(?:ich|man)|" # i18n-allow: input vocab
+ r"(?:can|could|should|must|may|would|do)\s+i|"
+ r"(?:puedo|podr[ií]a|debo|se\s+puede)|" # i18n-allow: input vocab
r"wie|was|wieso|warum|wo|wann|welche\w*|wieviel\w*|"
r"how|what|why|where|when|which|"
r"c[oó]mo|qu[eé]|cu[aá]nt\w*|por\s+qu[eé]|d[oó]nde|cu[aá]ndo"
@@ -1130,9 +1175,12 @@ _QUESTION_OPENER_RE = re.compile(
# Number words per locale. Capped at the workspace maximum: past it the count is
# clamped anyway, so spelling out "twenty" buys nothing.
_NUMBER_WORDS: dict[str, int] = {
- # German — "ein/eine/einen" doubles as the article, which is exactly right # i18n-allow: names the German number words below
+ # German number words double as articles here. # i18n-allow: context for matching data
# here ("mach noch ein Terminal auf" = one). # i18n-allow: quoted spoken input
- "ein": 1, "eine": 1, "einen": 1, "eins": 1, # i18n-allow: German number words (input vocabulary)
+ "ein": 1, # i18n-allow: German number word input vocabulary
+ "eine": 1, # i18n-allow: German number word input vocabulary
+ "einen": 1, # i18n-allow: German number word input vocabulary
+ "eins": 1, # i18n-allow: German number word input vocabulary
# Both ASCII spellings of every umlaut word: a transcript may drop the
# umlaut ("funf") or transliterate it ("fuenf"), and only the first was
# covered — so "starte fünf Agenten" fell back to a count of one whenever
@@ -1461,7 +1509,8 @@ def _spoken_count(text: str) -> int:
#: drift into different clauses of the sentence.
_COUNT_AGENT_RE = re.compile(
r"\b(?P<count>\d{1,3}|[a-zäöüñ]+)\s+" # i18n-allow: input vocab
- r"(?:(?:neue|weitere|zus[aä]tzliche|more|new|extra|additional|de|del|" # i18n-allow: input vocab
+ r"(?:(?:neue|weitere|zus[aä]tzliche|more|new|extra|" # i18n-allow: input vocab
+ r"additional|de|del|"
r"otros|otras|m[aá]s|terminals?|terminales|panes?|tabs?)\s+){0,2}"
rf"(?P<agent>{_AGENT_ALTERNATION})\b",
re.IGNORECASE,
@@ -1586,7 +1635,7 @@ def _spoken_groups(text: str) -> tuple[SpawnGroup, ...]:
# A count that no CLI name claimed, sitting in front of the pane noun, is a
# group of its own: "two terminals and one Codex" is three panes, and the
# two that were not given a name inherit one.
- for match in _PANE_NOUN_RE.finditer(text):
+ for match in _pane_nouns(text):
index = next(
(
i
@@ -1744,10 +1793,16 @@ _CLI_NEAR_MISS_FLOOR = 0.55
#: every one of them would be held up as "did you mean Claude Code?".
_CLI_POSITION_NOISE = frozenset(
{
- "neue", "neuen", "weitere", "weiteren", "zusätzliche", "zusaetzliche", # i18n-allow: input vocab
+ "neue", # i18n-allow: input vocab
+ "neuen", # i18n-allow: input vocab
+ "weitere", # i18n-allow: input vocab
+ "weiteren", # i18n-allow: input vocab
+ "zusätzliche", # i18n-allow: input vocab
+ "zusaetzliche", # i18n-allow: input vocab
"new", "more", "extra", "additional", "other", "another",
"otros", "otras", "más", "mas", "nuevos", "nuevas", # i18n-allow: input vocab
- "de", "del", "von", "vom", "of", "the", "a", "an", "und", "and", "y", # i18n-allow: input vocab
+ "de", "del", "von", "vom", "of", "the", "a", "an", # i18n-allow: input vocab
+ "und", "and", "y", # i18n-allow: input vocab
"bitte", "please", "por", "favor", "mir", "me", "uns", "us", # i18n-allow: input vocab
}
)
@@ -1800,7 +1855,7 @@ def _uncertain_clis(text: str) -> tuple[UncertainCli, ...]:
acting path owns it.
"""
counts = _count_tokens(text)
- pane_nouns = [(m.start(), m.end()) for m in _PANE_NOUN_RE.finditer(text)]
+ pane_nouns = [(m.start(), m.end()) for m in _pane_nouns(text)]
known = [
(m.start(), m.end())
for m in _AGENT_RE.finditer(text)
@@ -1891,7 +1946,7 @@ def _spawn_span(text: str) -> _SpawnSpan | None:
"""The bounded clause that genuinely asks for panes to be opened."""
for clause_match in _CLAUSE_RE.finditer(text):
clause = clause_match.group(0)
- panes = list(_PANE_NOUN_RE.finditer(clause)) + _counted_agent_mentions(clause)
+ panes = _pane_nouns(clause) + _counted_agent_mentions(clause)
actors = _open_verbs(clause) + list(_ADDITIVE_RE.finditer(clause))
if not panes or not actors:
continue
@@ -2142,7 +2197,8 @@ _CLOSE_PARTICLE_RE = re.compile(
re.IGNORECASE,
)
_ALL_PANES_RE = re.compile(
- r"\b(?:alle[nr]?|s[aä]mtliche[nr]?|jede[nr]?|all|every|each|todos?|todas?)\b", # i18n-allow: input vocab
+ r"\b(?:alle[nr]?|s[aä]mtliche[nr]?|jede[nr]?|all|every|" # i18n-allow: input vocab
+ r"each|todos?|todas?)\b",
re.IGNORECASE,
)
_CLOSE_STATE_QUESTION_RE = re.compile(
@@ -2200,7 +2256,7 @@ def _closes_the_fleet(clause: str) -> bool:
that is right there; a false one kills every coding agent in the workspace
with no confirmation and no undo — so every ambiguous shape stands down.
"""
- for pane in _PANE_NOUN_RE.finditer(clause):
+ for pane in _pane_nouns(clause):
if _CLOSE_BRIEFING_RE.search(clause, 0, pane.start()) is not None:
continue
# The German separable verb wraps AROUND the panes it closes ("mach
diff --git a/jarvis/agentic_ide/session.py b/jarvis/agentic_ide/session.py
index 3a081cc48c..da35752029 100644
--- a/jarvis/agentic_ide/session.py
+++ b/jarvis/agentic_ide/session.py
@@ -1512,6 +1512,12 @@ class Registry:
# rewrite the same config file eight times — and that file grows to tens
# of kilobytes on a heavy user (see jarvis.workspace.trust).
self._pre_trusted: set[tuple[str, str]] = set()
+ # One async gate per redirected account. Waiting here consumes no
+ # default-executor thread; only the task that owns the gate enters the
+ # synchronous setup lock in ``_prepare_spawn``. This prevents a restore
+ # burst for one account from starving unrelated ``asyncio.to_thread``
+ # work (BUG-043).
+ self._account_prepare_locks: dict[str, asyncio.Lock] = {}
# Admits a few agent cold starts at a time (see COLD_START_LIMIT).
# Created on first use rather than here: a semaphore belongs to the loop
# it is first awaited on, and the registry is also built in tests that
@@ -2595,9 +2601,22 @@ class Registry:
# on the second subscription keeps its transcripts in that account's
# directory, and asking the default one would report "no conversation"
# for a conversation that is right there.
+ # Off the event loop, because it is a directory walk and not a stat: the
+ # check searches the CLI's history BY ID across every project folder it
+ # has ever written (`agent_sessions._claude_conversation_exists`), which
+ # on a long-lived install is hundreds of folders — measured here at
+ # 9 ms per pane over 541 of them. Run inline it froze the whole server
+ # for that long, once per restored pane, at the one moment the loop is
+ # busiest: a restore mounts every pane in one commit, so a dozen panes
+ # meant a dozen stalls interleaved with their own spawns. It only ever
+ # runs on a pane that HAS a handle, which is why the restore path was
+ # the only one that ever felt it. `_mark_restored_continuations` already
+ # takes the same call to a thread for the same reason.
home = account_home(term.agent, term.account)
continuing = resume_argv(term.agent, term.resume)
- if continuing is not None and not has_conversation(term.agent, term.resume, home):
+ if continuing is not None and not await asyncio.to_thread(
+ has_conversation, term.agent, term.resume, home
+ ):
logger.info(
"Agentic IDE: {} has no conversation to continue — starting fresh",
term.name,
@@ -2710,15 +2729,37 @@ class Registry:
for viewer in _exit_viewers(term):
await viewer(code)
- # One of a few starts at a time (see COLD_START_LIMIT). The wait covers
- # the account preparation too: that is filesystem work on the same
- # directory every pane of an account shares, so letting eight of them
- # queue on its lock while eight CLIs boot is the same pile-up one step
- # earlier.
- async with self._cold_start_slot():
- # Off the event loop: getting the pane's account ready is filesystem
- # work (a few stat calls once it is in place — see `_prepare_spawn`).
+ # BEFORE the slot, not inside it — and that ordering is the whole point.
+ #
+ # Off the event loop either way: getting the pane's account ready is
+ # filesystem work (a few stat calls once it is in place — see
+ # `_prepare_spawn`). But it also takes that account's setup lock, and
+ # every pane of one account shares one config dir and therefore one
+ # lock. Held inside the slot, a pane that is merely QUEUED on that lock
+ # still occupies one of the few cold-start slots while doing nothing —
+ # so a workspace of panes on the same account collapsed a gate meant to
+ # admit COLD_START_LIMIT starts at once down to roughly one, and the
+ # restore came back one terminal at a time.
+ #
+ # Serializing here is not the pile-up the gate exists to prevent. That
+ # pile-up is coding CLIs BOOTING — plugins, hooks, an `npx` process tree
+ # per MCP server. The account gate is async so waiters do not occupy the
+ # shared executor while one thread owns the filesystem setup lock.
+ redirected_home = _redirected_home(term)
+ if redirected_home is None:
env = await asyncio.to_thread(self._prepare_spawn, term, session.folder)
+ else:
+ account_key = os.path.normcase(str(redirected_home))
+ account_gate = self._account_prepare_locks.setdefault(
+ account_key, asyncio.Lock()
+ )
+ async with account_gate:
+ env = await asyncio.to_thread(
+ self._prepare_spawn, term, session.folder
+ )
+
+ # One of a few starts at a time (see COLD_START_LIMIT).
+ async with self._cold_start_slot():
try:
pty_session = await manager.spawn(
shell_argv=argv,
diff --git a/jarvis/agentic_ide/ui_prefs.py b/jarvis/agentic_ide/ui_prefs.py
index 89709b67cb..04ee218073 100644
--- a/jarvis/agentic_ide/ui_prefs.py
+++ b/jarvis/agentic_ide/ui_prefs.py
@@ -51,7 +51,7 @@ def _load_raw() -> dict[str, Any]:
path = _store_path()
try:
data = json.loads(path.read_text(encoding="utf-8"))
- except FileNotFoundError:
+ except FileNotFoundError: # A first run has no preferences file by design.
return {}
except (OSError, ValueError) as exc:
logger.warning("Agentic IDE: unreadable UI preferences, using defaults: {}", exc)
@@ -84,7 +84,7 @@ def clamp_font_size(value: Any) -> int:
"""
try:
size = int(value)
- except (TypeError, ValueError):
+ except (TypeError, ValueError): # Invalid stored input falls back to the safe default.
return FONT_DEFAULT
return max(FONT_MIN, min(FONT_MAX, size))
@@ -128,7 +128,7 @@ def reset() -> None:
path = _store_path()
try:
path.unlink()
- except FileNotFoundError:
+ except FileNotFoundError: # Clearing an already-empty store is idempotent.
return
except OSError as exc:
logger.warning("Agentic IDE: could not clear UI preferences: {}", exc)
diff --git a/jarvis/audio/capture.py b/jarvis/audio/capture.py
index 0517c63771..48053fe32a 100644
--- a/jarvis/audio/capture.py
+++ b/jarvis/audio/capture.py
@@ -72,7 +72,7 @@ def _remember_input_latency(stream: Any) -> None:
raw = raw[0] if raw else None
try:
latency = float(raw) # type: ignore[arg-type]
- except (TypeError, ValueError):
+ except (TypeError, ValueError): # Unknown host latency is represented by the zero floor.
latency = 0.0
if not (latency > 0.0):
latency = 0.0
@@ -232,7 +232,7 @@ def _fallback_input_devices(primary_idx: int) -> list[int]:
try:
devices = sd.query_devices()
hostapis = sd.query_hostapis()
- except Exception:
+ except Exception: # Device enumeration is an optional compatibility probe.
return []
if not (0 <= primary_idx < len(devices)):
return []
@@ -530,7 +530,7 @@ def _default_input_sample_rate(device: int | str | None) -> int:
try:
try:
info = sd.query_devices(device, "input")
- except TypeError:
+ except TypeError: # Older sounddevice releases lack the kind argument.
info = sd.query_devices(device)
return int(info.get("default_samplerate", 0) or 0)
except Exception: # noqa: BLE001 - device query is advisory
@@ -821,7 +821,7 @@ class MicrophoneCapture:
if self._loop and not self._loop.is_closed():
try:
self._loop.call_soon_threadsafe(self._safe_put, chunk)
- except RuntimeError:
+ except RuntimeError: # The event loop closed between the guard and handoff.
self._drops += 1
def _safe_put(self, chunk: AudioChunk) -> None:
@@ -845,11 +845,11 @@ class MicrophoneCapture:
# stays anchored to real wall-clock, not delivered-frame count.
try:
self._queue.get_nowait()
- except asyncio.QueueEmpty:
+ except asyncio.QueueEmpty: # A concurrent consumer already freed the slot.
pass
try:
self._queue.put_nowait(chunk)
- except asyncio.QueueFull:
+ except asyncio.QueueFull: # A concurrent producer won the replacement slot.
pass
self._drops += 1
@@ -951,7 +951,7 @@ class MicrophoneCapture:
# outer candidate loop only sees the exception.
try:
opened.close()
- except Exception: # noqa: BLE001, S110
+ except Exception: # noqa: BLE001, S110 - preserve the original open failure
pass
raise
return opened
@@ -1157,7 +1157,7 @@ class MicrophoneCapture:
watchdog.cancel()
try:
await watchdog
- except asyncio.CancelledError:
+ except asyncio.CancelledError: # Cancellation is the successful watchdog teardown.
pass
except Exception as exc: # noqa: BLE001
_log.debug("Mic-Watchdog cleanup swallow: {}", exc)
diff --git a/jarvis/brain/ack_brain/config.py b/jarvis/brain/ack_brain/config.py
index c3ab4682df..8264ede355 100644
--- a/jarvis/brain/ack_brain/config.py
+++ b/jarvis/brain/ack_brain/config.py
@@ -18,7 +18,7 @@ from __future__ import annotations
from typing import Literal
-from pydantic import BaseModel, ConfigDict, Field, field_validator
+from pydantic import BaseModel, ConfigDict, Field
# Providers accepted in the [ack_brain].provider field. Adding a new
# provider means: add an entry here, add an entry_point in pyproject.toml,
@@ -71,7 +71,11 @@ class OllamaAckProviderConfig(_ProviderBase):
class _ProvidersBundle(BaseModel):
"""Container for all provider-specific sub-configs."""
- model_config = ConfigDict(extra="forbid")
+ # Ack generation is optional and must never stop the whole application from
+ # booting when a newer install has persisted a provider sub-table that this
+ # version does not know yet. The factory capability-checks REGISTRY entries
+ # before use, so retaining forward-compatible data is safe here.
+ model_config = ConfigDict(extra="allow")
gemini: GeminiAckProviderConfig = Field(
default_factory=lambda: GeminiAckProviderConfig(model="gemini-3.1-flash")
@@ -236,12 +240,3 @@ class AckBrainConfig(BaseModel):
# jarvis/brain/ack_brain/spawn_announcement.py.
spawn_announcements: bool = Field(default=True)
providers: _ProvidersBundle = Field(default_factory=_ProvidersBundle)
-
- @field_validator("provider")
- @classmethod
- def _provider_must_be_supported(cls, v: str) -> str:
- if v not in SUPPORTED_PROVIDERS:
- raise ValueError(
- f"unknown provider {v!r}; supported: {SUPPORTED_PROVIDERS}"
- )
- return v
diff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.py
index 39f0e4e942..d9191f8567 100644
--- a/jarvis/brain/model_catalog.py
+++ b/jarvis/brain/model_catalog.py
@@ -538,7 +538,7 @@ REALTIME_MODELS: dict[str, list[ModelInfo]] = {
# gemini-live: verified 2026-07-10 against the Live API capabilities guide,
# which now permits the complete 30-voice Gemini prebuilt roster.
REALTIME_VOICES: dict[str, list[ModelInfo]] = {
- # Codex app-server realtime v1 voices. ``cove`` is the v1 default, so it
+ # Codex app-server ChatGPT-Live v3 voices. ``cove`` is the v3 default, so it
# leads the picker just as each realtime model catalog leads with its
# adapter default.
"codex-subscription-realtime": _ids(
@@ -868,7 +868,7 @@ def model_capabilities(provider: str, model_id: str) -> dict[str, bool | None]:
"vision": ("image" in inp) if isinstance(inp, list) else None,
"tools": ("tools" in params) if isinstance(params, list) else None,
}
- except Exception: # noqa: BLE001 — missing/corrupt cache → unknown (capable)
+ except Exception: # noqa: BLE001, S110 — missing/corrupt cache means unknown
pass
return {"vision": None, "tools": None}
diff --git a/jarvis/cli_ctl/safety.py b/jarvis/cli_ctl/safety.py
index 805f2c7e96..96822b3503 100644
--- a/jarvis/cli_ctl/safety.py
+++ b/jarvis/cli_ctl/safety.py
@@ -10,8 +10,8 @@ surface, so the CLI adds defense in depth on the client side:
In an interactive TTY the user is prompted; when piped/non-interactive the
command **fails closed** unless ``--yes`` / ``-y`` (or ``JARVIS_CLI_ASSUME_YES``)
is set.
-* **dangerous** (every ``DELETE`` plus an explicit path denylist — restart, place
- a call, dispatch a mission, …): always require an explicit ``--yes``; an
+* **dangerous** (every ``DELETE`` plus an explicit path denylist — restart,
+ place an outbound call, dispatch a mission, …): always require an explicit ``--yes``; an
interactive ``[y/N]`` prompt alone does not authorize them.
``--dry-run`` short-circuits any command: it prints the exact request that would
@@ -39,7 +39,6 @@ _MUTATING_METHODS = frozenset({"POST", "PUT", "PATCH", "DELETE"})
# Kept deliberately small and explicit; extend as curated commands are added.
_DANGEROUS_MARKERS: tuple[str, ...] = (
"/restart",
- "/call",
"/outbound",
"/dispatch",
"/rerun",
diff --git a/jarvis/codex_app_server.py b/jarvis/codex_app_server.py
index 1f8a297f2e..29fa2fe802 100644
--- a/jarvis/codex_app_server.py
+++ b/jarvis/codex_app_server.py
@@ -38,7 +38,10 @@ from collections.abc import AsyncIterator, Mapping, Sequence
from contextlib import suppress
from dataclasses import dataclass
from pathlib import Path
-from typing import Any, Final, Literal
+from typing import TYPE_CHECKING, Any, Final, Literal, get_args
+
+if TYPE_CHECKING:
+ pass
from jarvis import __version__
from jarvis.core.process_tree import ProcessTree, make_process_tree
@@ -881,7 +884,8 @@ def _prepare_subscription_login_home() -> Path:
create=True, require_marker=False
)
break
- except CodexSubscriptionUnavailable as exc: # Retried: Windows delete-pending briefly blocks the recreate.
+ except CodexSubscriptionUnavailable as exc:
+ # Windows delete-pending can briefly block the recreate.
last_error = exc
time.sleep(0.2)
else:
@@ -2084,8 +2088,7 @@ class CodexAppServerClient:
b"Connection: close\r\n\r\n"
)
await writer.drain()
- except (ConnectionError, OSError):
- # The diagnostic sink peer may close before its reply.
+ except (ConnectionError, OSError): # Diagnostic peer may close before reply.
pass
finally:
writer.close()
@@ -3989,7 +3992,8 @@ def _delete_codex_subscription_auth_locked() -> tuple[bool, str | None]:
# AND clears the invalid state in one explicit user action.
try:
_rebuild_invalid_subscription_home()
- except CodexSubscriptionUnavailable as exc: # The honest failure text returns as the route's 409 detail.
+ except CodexSubscriptionUnavailable as exc:
+ # The route returns this honest failure as its 409 detail.
return False, str(exc)
return True, None
auth_file = home / "auth.json"
diff --git a/jarvis/core/child_lifeline.py b/jarvis/core/child_lifeline.py
index 4c972f9ec5..7adef14b3f 100644
--- a/jarvis/core/child_lifeline.py
+++ b/jarvis/core/child_lifeline.py
@@ -18,7 +18,7 @@ from collections.abc import Sequence
def _kill_process_group() -> None:
try:
os.killpg(os.getpgrp(), signal.SIGKILL)
- except (AttributeError, OSError):
+ except (AttributeError, OSError): # Hard exit is the containment fallback on this host.
os._exit(137)
@@ -26,7 +26,7 @@ def _watch_parent(lifeline_fd: int, completed: threading.Event) -> None:
try:
while os.read(lifeline_fd, 1):
pass
- except OSError:
+ except OSError: # A closed lifeline is the parent-death signal this thread waits for.
pass
if not completed.is_set():
_kill_process_group()
@@ -47,13 +47,13 @@ def run(lifeline_fd: int, command: Sequence[str]) -> int:
try:
child = subprocess.Popen(list(command), close_fds=True) # noqa: S603
return int(child.wait())
- except (OSError, ValueError):
+ except (OSError, ValueError): # Exit 127 is the supervisor-visible spawn failure signal.
return 127
finally:
completed.set()
try:
os.close(lifeline_fd)
- except OSError:
+ except OSError: # The descriptor may already be closed by parent teardown.
pass
@@ -64,7 +64,7 @@ def main(argv: Sequence[str] | None = None) -> int:
return 2
try:
lifeline_fd = int(args[0])
- except ValueError:
+ except ValueError: # Invalid internal argv is reported by the documented exit code.
return 2
return run(lifeline_fd, args[2:])
diff --git a/jarvis/dictation/local_preview.py b/jarvis/dictation/local_preview.py
index c436f7ea42..27c42e0209 100644
--- a/jarvis/dictation/local_preview.py
+++ b/jarvis/dictation/local_preview.py
@@ -307,7 +307,7 @@ class LocalPreviewTranscriber:
guard.release()
try:
done.result()
- except asyncio.CancelledError:
+ except asyncio.CancelledError: # Cancellation is the contained worker teardown.
pass
except Exception as exc: # noqa: BLE001 — detached worker is contained
log.debug("Detached dictation preview failed: %s", exc)
diff --git a/jarvis/dictation/segment.py b/jarvis/dictation/segment.py
index b244c74e39..f1523a9112 100644
--- a/jarvis/dictation/segment.py
+++ b/jarvis/dictation/segment.py
@@ -80,7 +80,7 @@ def quietest_cut(
try:
samples = np.frombuffer(pcm[:limit], dtype=np.int16).astype(np.float32)
- except (ValueError, TypeError):
+ except (ValueError, TypeError): # An incomplete PCM tail uses the aligned boundary.
return _align(limit)
if samples.size == 0:
return _align(limit)
@@ -242,7 +242,7 @@ def speech_runs(
samples = np.frombuffer(
pcm[: len(pcm) - (len(pcm) % BYTES_PER_SAMPLE)], dtype=np.int16
).astype(np.float32)
- except (ValueError, TypeError):
+ except (ValueError, TypeError): # Invalid PCM cannot yield trustworthy speech spans.
return []
if samples.size == 0:
return []
@@ -299,7 +299,7 @@ def segment_energy(pcm: bytes) -> tuple[float, float]:
return 0.0, 0.0
try:
samples = np.frombuffer(pcm, dtype=np.int16)
- except (ValueError, TypeError):
+ except (ValueError, TypeError): # Invalid PCM has no measurable signal level.
return 0.0, 0.0
if samples.size == 0:
return 0.0, 0.0
diff --git a/jarvis/plugins/stt/fwhisper.py b/jarvis/plugins/stt/fwhisper.py
index 6b377d27b6..22e378ee28 100644
--- a/jarvis/plugins/stt/fwhisper.py
+++ b/jarvis/plugins/stt/fwhisper.py
@@ -300,7 +300,7 @@ def ensure_cuda_libraries_findable() -> None:
try:
# Lets the loaded libraries find their own dependencies by name.
directory_handle = add_dll_directory(str(directory))
- except OSError:
+ except OSError: # Explicit DLL preloads below remain the portable fallback.
pass
loaded: list[str] = []
library_handles: list[Any] = []
diff --git a/jarvis/plugins/tool/run_shell.py b/jarvis/plugins/tool/run_shell.py
index ddd38a8a94..38b1137018 100644
--- a/jarvis/plugins/tool/run_shell.py
+++ b/jarvis/plugins/tool/run_shell.py
@@ -20,6 +20,7 @@ own quoting and provides the builtins.
from __future__ import annotations
import asyncio
+import os
import shlex
import sys
from typing import Any
@@ -27,6 +28,41 @@ from typing import Any
from jarvis.core.process_utils import NO_WINDOW_CREATIONFLAGS
from jarvis.core.protocols import ExecutionContext, ToolResult
+_CMD_PATH_LIMIT = 8191
+
+
+def _windows_subprocess_env() -> dict[str, str]:
+ """Return an environment whose PATH remains usable by ``cmd.exe``.
+
+ Windows accepts an environment block containing a PATH longer than the
+ legacy command-processor limit, but ``cmd.exe`` then exposes an empty PATH
+ to the command it launches. Desktop integrations commonly append the same
+ native-runtime directories repeatedly, so remove duplicates while keeping
+ the original lookup order. Other platforms never use this helper.
+ """
+ env = dict(os.environ)
+ path_key = next((key for key in env if key.lower() == "path"), "PATH")
+ entries = env.get(path_key, "").split(os.pathsep)
+ deduplicated: list[str] = []
+ seen: set[str] = set()
+ for entry in entries:
+ if not entry:
+ continue
+ identity_source = os.path.expandvars(entry.strip().strip('"'))
+ identity = os.path.normcase(os.path.normpath(identity_source))
+ if identity in seen:
+ continue
+ seen.add(identity)
+ deduplicated.append(entry)
+ compact_path = os.pathsep.join(deduplicated)
+ if len(compact_path) > _CMD_PATH_LIMIT:
+ raise ValueError(
+ "Windows PATH remains too long for cmd.exe after deduplication "
+ f"({len(compact_path)} characters; limit {_CMD_PATH_LIMIT})."
+ )
+ env[path_key] = compact_path
+ return env
+
class RunShellTool:
name: str = "run_shell"
@@ -68,6 +104,7 @@ class RunShellTool:
stderr=asyncio.subprocess.PIPE,
cwd=cwd,
creationflags=NO_WINDOW_CREATIONFLAGS,
+ env=_windows_subprocess_env(),
)
else:
proc = await asyncio.create_subprocess_exec(
diff --git a/jarvis/realtime/webrtc_transport.py b/jarvis/realtime/webrtc_transport.py
index 3cfa5a3028..b1fdd8c6c6 100644
--- a/jarvis/realtime/webrtc_transport.py
+++ b/jarvis/realtime/webrtc_transport.py
@@ -126,7 +126,7 @@ def _build_sender_track(base: Any) -> Any:
while len(self._residue) < needed:
try:
chunk = self.queue.get_nowait()
- except asyncio.QueueEmpty:
+ except asyncio.QueueEmpty: # The current audio frame is intentionally padded below.
break
self._residue += chunk
if len(self._residue) >= needed:
diff --git a/jarvis/screen_context/redaction.py b/jarvis/screen_context/redaction.py
index 10d40488ed..edcd564a06 100644
--- a/jarvis/screen_context/redaction.py
+++ b/jarvis/screen_context/redaction.py
@@ -75,7 +75,7 @@ def validate_pattern_source(source: str) -> str | None:
)
try:
re.compile(source, re.IGNORECASE)
- except re.error as exc:
+ except re.error as exc: # Returning the parser message is the validation result.
return str(exc)
return None
diff --git a/jarvis/screen_context/service.py b/jarvis/screen_context/service.py
index b96d5b9419..44383a5fef 100644
--- a/jarvis/screen_context/service.py
+++ b/jarvis/screen_context/service.py
@@ -902,7 +902,7 @@ class ScreenContextService:
)
try:
loop = asyncio.get_running_loop()
- except RuntimeError:
+ except RuntimeError: # Non-async callers use the equivalent timer fallback.
timer = threading.Timer(
delay_s,
self._expire_handle,
diff --git a/jarvis/screen_context/uitext.py b/jarvis/screen_context/uitext.py
index f52cc598a8..052acb7c3d 100644
--- a/jarvis/screen_context/uitext.py
+++ b/jarvis/screen_context/uitext.py
@@ -282,7 +282,7 @@ def ocr_supplement_with_regions(image: Any) -> OcrSupplement:
int(data.get("par_num", [0] * len(texts))[index]),
int(data.get("line_num", list(range(len(texts))))[index]),
)
- except (IndexError, KeyError, TypeError, ValueError):
+ except (IndexError, KeyError, TypeError, ValueError): # OCR rows can be sparse.
continue
if width <= 0 or height <= 0:
continue
diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.py
index 9967ad0e0e..c8c434cfba 100644
--- a/jarvis/speech/pipeline.py
+++ b/jarvis/speech/pipeline.py
@@ -382,7 +382,10 @@ _BRAIN_UNAVAILABLE_PHRASE: dict[str, str] = {
# user into silence (the "Jarvis listens forever, never answers" bug,
# 2026-05-25). Short, bilingual, TTS-clean (``_speak`` does not scrub).
_STT_UNAVAILABLE_PHRASE: dict[str, str] = {
- "de": "Entschuldige, ich habe dich akustisch gerade nicht verstanden. Sag es bitte noch einmal.",
+ "de": (
+ "Entschuldige, ich habe dich akustisch gerade nicht verstanden. "
+ "Sag es bitte noch einmal."
+ ),
"en": "Sorry, I didn't catch that just now. Could you say it again?",
"es": "Perdona, no te he entendido bien ahora mismo. ¿Puedes repetirlo, por favor?",
}
@@ -429,7 +432,10 @@ _REALTIME_UNAVAILABLE_PHRASE: dict[str, str] = {
# language decision via ``_resolve_timeout_phrase`` below (CLAUDE.md §1 — no
# per-layer language re-derivation).
_TIMEOUT_TOOL_STALL_PHRASE: dict[str, str] = {
- "de": "Ich habe rechtzeitig keine Antwort bekommen. Ein Tool, auf das ich gewartet habe, hat nicht reagiert.",
+ "de": (
+ "Ich habe rechtzeitig keine Antwort bekommen. Ein Tool, auf das ich "
+ "gewartet habe, hat nicht reagiert."
+ ),
"en": "I couldn't get an answer in time. A tool I was waiting on didn't respond.",
"es": "No pude obtener una respuesta a tiempo. Una herramienta que esperaba no respondió.",
}
@@ -863,6 +869,11 @@ _DICTATION_FINAL_RETRY_MAX_S = 2.0
# be reached by something that is genuinely stuck.
_DICTATION_TRANSCRIBE_TIMEOUT_PER_AUDIO_S = 2.0
+# A CUDA model load + first decode measured ~11 s on the reference desktop.
+# Joining longer than this means the post-ready warmer itself is unhealthy;
+# abandon its whole provider instance rather than racing its native session.
+_DICTATION_WARMUP_JOIN_TIMEOUT_S = 20.0
+
def _dictation_retry_worthwhile(exc: BaseException | None) -> bool:
"""Whether re-sending the SAME audio to this provider could work.
@@ -1626,7 +1637,9 @@ def _is_likely_partial_correction(
if incoming_words[: len(current_words)] == current_words:
return True
shared_prefix = 0
- for current_word, incoming_word in zip(current_words, incoming_words):
+ for current_word, incoming_word in zip(
+ current_words, incoming_words, strict=False
+ ):
if current_word != incoming_word:
break
shared_prefix += 1
@@ -1641,7 +1654,10 @@ def _is_likely_repeated_tail(
return False
suffix = current_words[-len(incoming_words):]
matches = sum(
- 1 for current_word, incoming_word in zip(suffix, incoming_words)
+ 1
+ for current_word, incoming_word in zip(
+ suffix, incoming_words, strict=False
+ )
if current_word == incoming_word
)
return matches >= max(2, len(incoming_words) - 1)
@@ -1756,7 +1772,10 @@ class SpeechPipeline:
tts: GeminiFlashTTS | None = None,
wake: OpenWakeWordProvider | None = None,
brain_callback: BrainCallback | None = None,
- vad_silence_ms: int = 1500, # User-Feedback 2026-04-22 (2): 350ms schnitt bei Denkpausen ab. 2026-06-08: 1200→1500ms ("1,5-Sekunden-Pause-Regel") — gibt mehr Luft für Denkpausen und reduziert das Zerstückeln langer Anweisungen in Fragmente. Kurze Commands wie 'auflegen' bleiben schnell, weil HANGUP_RE vor dem Brain-Call greift.
+ # Raised from 350 to 1500 ms so natural thinking pauses do not fragment
+ # long instructions. Short hang-up commands remain fast because the
+ # detector runs before the brain call.
+ vad_silence_ms: int = 1500,
stt_final_timeout_s: float = 8.0,
# No-PROGRESS (stall) window for a streaming brain turn — NOT a total
# wall-clock cap. The deadline resets every time the turn makes progress
@@ -2628,6 +2647,13 @@ class SpeechPipeline:
# 7-24 s starved warm-up (see ``_warmup_phase_a``). Kept on the instance
# so a graceful shutdown can cancel + await it.
self._deferred_warmup_task: asyncio.Task | None = None
+ # Prompt-free dictation STT is a separate provider from voice/wake STT.
+ # It is warmed only after honest readiness and tracked for shutdown.
+ self._dictation_warmup_task: asyncio.Task | None = None
+ self._dictation_warmup_provider: Any = None
+ self._dictation_warmup_succeeded_provider: Any = None
+ self._dictation_warmup_reschedule = False
+ self._dictation_warmup_shutdown = False
self._audio_topology_task: asyncio.Task | None = None
# ContinuationBuffer (Spec docs/superpowers/specs/
@@ -2780,6 +2806,7 @@ class SpeechPipeline:
# Dictation owns a prompt-free instance and a separate fallback chain;
# both must be rebuilt from the new provider on the next key press.
self._reset_dictation_stt()
+ self._schedule_dictation_warmup()
log.info(
"STT live switch applied: %s -> %s (dictation cache invalidated).",
type(previous).__name__ if previous is not None else "none",
@@ -2842,6 +2869,7 @@ class SpeechPipeline:
# transcribing in the previous recognition language for the rest of the
# process — a setting that appears to apply and silently does not.
self._reset_dictation_stt()
+ self._schedule_dictation_warmup()
log.info(
"STT-Live-Switch: recognition language is now %r (%s)",
language,
@@ -3474,7 +3502,7 @@ class SpeechPipeline:
# The RAW decode, deliberately. This probe asks "did anything get
# said in the tail?" and answers with text LENGTH plus the
# hallucination markers. A provider-cleaned string breaks both:
- # a tail of pure hesitation ("ähm ...") cleans down to nothing and # i18n-allow: quoted input
+ # a tail of hesitation ("ähm ...") cleans to nothing, # i18n-allow: input
# would read as silence, so Jarvis would cut off the one person
# who is visibly still thinking.
raw_text = (
@@ -4679,7 +4707,7 @@ class SpeechPipeline:
suppress_ms = int(
getattr(cfg_ack, "suppress_if_brain_faster_than_ms", suppress_ms)
)
- except Exception: # noqa: BLE001
+ except Exception: # noqa: BLE001, S110 — retain the safe default
pass
if suppress_ms > 0:
@@ -5176,7 +5204,8 @@ class SpeechPipeline:
for t in tasks_to_cancel:
try:
await t
- except (asyncio.CancelledError, Exception):
+ except (asyncio.CancelledError, Exception): # noqa: S110
+ # Shutdown has already cancelled these owned tasks.
pass
if self._vision_provider is not None:
try:
@@ -5218,10 +5247,12 @@ class SpeechPipeline:
into ``_ack_pcm`` / ``_task_ack_pcm`` after a live TTS-provider switch
already cleared them. Guarded so shutdown never raises.
"""
+ self._dictation_warmup_shutdown = True
for attr in (
"_warmup_background_task",
"_warmup_ready_cue_task",
"_deferred_warmup_task",
+ "_dictation_warmup_task",
"_audio_topology_task",
):
task = getattr(self, attr, None)
@@ -5238,7 +5269,8 @@ class SpeechPipeline:
log.warning(
"Warm-up background task %s did not stop within 2s.", attr
)
- except (asyncio.CancelledError, Exception): # noqa: BLE001 — shutdown swallow
+ except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
+ # Shutdown is best-effort after the bounded wait above.
pass
setattr(self, attr, None)
@@ -5461,6 +5493,10 @@ class SpeechPipeline:
self._audio_topology_task.add_done_callback(
self._log_audio_topology_done
)
+ # Warming voice/wake STT above does not warm dictation's separate,
+ # prompt-free provider. Start it only AFTER honest readiness so its
+ # model load + first CUDA decode can never delay boot (AP-26).
+ self._schedule_dictation_warmup()
finally:
# Never orphan the concurrently-started TTS init: if this deferred
# task is cancelled (desktop shutdown) before the ``await tts_task``
@@ -5473,7 +5509,8 @@ class SpeechPipeline:
tts_task.cancel()
try:
await tts_task
- except (asyncio.CancelledError, Exception): # noqa: BLE001 — shutdown swallow
+ except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
+ # Preserve the original cancellation after owned-task cleanup.
pass
async def _warmup_phase_b(self) -> None:
@@ -7732,6 +7769,21 @@ class SpeechPipeline:
return 0.0
return min(_REALTIME_OUTPUT_LATENCY_CAP_S, max(0.0, latency))
+ def _reported_input_latency_s() -> float:
+ try:
+ from jarvis.audio.capture import ( # noqa: PLC0415
+ last_input_latency_s,
+ )
+
+ return max(0.0, float(last_input_latency_s()))
+ except Exception: # noqa: BLE001 - a missing figure only costs margin
+ log.debug(
+ "Capture latency unavailable; echo tail keeps its fixed "
+ "margin only",
+ exc_info=True,
+ )
+ return 0.0
+
def _clear_tail_pending() -> None:
nonlocal tail_pending_bytes
tail_pending.clear()
@@ -7752,21 +7804,6 @@ class SpeechPipeline:
)
assistant_transcript_parts.clear()
elif was_audible:
- def _reported_input_latency_s() -> float:
- try:
- from jarvis.audio.capture import ( # noqa: PLC0415
- last_input_latency_s,
- )
-
- return max(0.0, float(last_input_latency_s()))
- except Exception: # noqa: BLE001 - a missing figure only costs margin
- log.debug(
- "Capture latency unavailable; echo tail keeps its fixed "
- "margin only",
- exc_info=True,
- )
- return 0.0
-
self._touch_assistant_speech_activity()
if preserve_echo_tail:
output_latency_s = _reported_output_latency_s()
@@ -8675,11 +8712,51 @@ class SpeechPipeline:
the wake listener never inherits it.
"""
stop_event.set()
+
+ def _retrieve_late_result(done: asyncio.Task) -> None:
+ if done.cancelled():
+ return
+ try:
+ exc = done.exception()
+ except asyncio.CancelledError:
+ return
+ if exc is not None:
+ log.debug("Detached PTT live transcript failed: %s", exc)
+
+ async def _cancel_bounded(label: str) -> None:
+ task.cancel()
+ try:
+ await asyncio.wait_for(asyncio.shield(task), timeout=0.25)
+ except TimeoutError:
+ log.warning(
+ "%s ignored cancellation for 250 ms; continuing without it.",
+ label,
+ )
+ task.add_done_callback(_retrieve_late_result)
+ except asyncio.CancelledError:
+ current = asyncio.current_task()
+ if current is not None and current.cancelling():
+ raise
+ # The child task itself acknowledged cancellation.
+ except Exception as exc: # noqa: BLE001 — cosmetic failure is contained
+ log.debug("%s failed while stopping: %s", label, exc)
+
if task.done():
try:
- await task
- except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
+ task.result()
+ except asyncio.CancelledError:
pass
+ except Exception as exc: # noqa: BLE001 — cosmetic failure is contained
+ log.debug("PTT live transcript ended with an error: %s", exc)
+ return
+
+ # A sleeping probe or a local-preview call is purely cosmetic and does
+ # not own the authoritative STT provider. Cancel it immediately on the
+ # endpoint edge instead of adding its remaining preview timeout to the
+ # user's release-to-text latency. Only a provider call marked by
+ # ``inference_active`` needs the AP-24 quiescence wait below.
+ if not inference_active.is_set():
+ await _cancel_bounded("Cosmetic PTT probe")
return
timed_out = False
@@ -8698,14 +8775,11 @@ class SpeechPipeline:
self._stt_final_timeout_s,
)
except asyncio.CancelledError:
- task.cancel()
- try:
- await task
- except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
- pass
+ await _cancel_bounded("PTT live transcript")
raise
- except Exception: # noqa: BLE001 — cosmetic probe failure is contained
+ except Exception as exc: # noqa: BLE001 — cosmetic probe failure is contained
if task.done():
+ log.debug("PTT live transcript ended with an error: %s", exc)
return
if inference_active.is_set():
@@ -8724,11 +8798,7 @@ class SpeechPipeline:
"PTT live-transcript provider has no recovery hook; "
"cancelling the timed-out probe before final STT."
)
- task.cancel()
- try:
- await task
- except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
- pass
+ await _cancel_bounded("PTT live transcript")
async def _ptt_live_transcribe(
self,
@@ -9259,6 +9329,137 @@ class SpeechPipeline:
self._dictation_stt_instance = instance
return instance
+ async def _warm_dictation_provider(self, provider: Any) -> None:
+ """Prime one dictation provider off-path; never make boot depend on it."""
+ warm = getattr(provider, "warm_up", None)
+ if not callable(warm):
+ return
+ started = time.monotonic()
+ try:
+ await asyncio.to_thread(warm)
+ except asyncio.CancelledError:
+ raise
+ except Exception as exc: # noqa: BLE001 — lazy final STT still gets a chance
+ log.warning("Dictation STT warm-up failed; using lazy load: %s", exc)
+ else:
+ self._dictation_warmup_succeeded_provider = provider
+ log.info(
+ "Dictation STT warm-up done in %.0f ms.",
+ (time.monotonic() - started) * 1000.0,
+ )
+
+ def _schedule_dictation_warmup(self, provider: Any = None) -> None:
+ """Start one tracked post-ready warm-up for the current provider."""
+ if getattr(self, "_dictation_warmup_shutdown", False):
+ return
+ try:
+ asyncio.get_running_loop()
+ except RuntimeError:
+ return
+ provider = provider if provider is not None else self._dictation_stt()
+ if provider is None or not callable(getattr(provider, "warm_up", None)):
+ return
+ if getattr(self, "_dictation_warmup_succeeded_provider", None) is provider:
+ return
+ current = getattr(self, "_dictation_warmup_task", None)
+ current_provider = getattr(self, "_dictation_warmup_provider", None)
+ if current is not None and not current.done():
+ if current_provider is provider:
+ return
+ # A live provider switch must not race two native warm-ups. Once the
+ # old task settles, warm whichever provider is current at that time.
+ if not getattr(self, "_dictation_warmup_reschedule", False):
+ self._dictation_warmup_reschedule = True
+
+ def _schedule_current(_done: asyncio.Task) -> None:
+ self._dictation_warmup_reschedule = False
+ self._schedule_dictation_warmup()
+
+ current.add_done_callback(_schedule_current)
+ return
+ # Do not retain a previous provider (and its GPU model) after a live
+ # switch. The active task/provider fields below become the sole owner.
+ if getattr(self, "_dictation_warmup_succeeded_provider", None) is not provider:
+ self._dictation_warmup_succeeded_provider = None
+ self._dictation_warmup_provider = provider
+ self._dictation_warmup_task = asyncio.create_task(
+ self._warm_dictation_provider(provider),
+ name="dictation-stt-warmup",
+ )
+
+ async def _join_dictation_warmup(self, provider: Any) -> Any:
+ """Join matching warm-up before authoritative STT, returning its provider.
+
+ A timeout abandons the entire provider instance, never its native model
+ in place: its worker may still be constructing or decoding. The caller
+ receives a fresh instance with a fresh engine and lock (AP-24).
+ """
+ task = getattr(self, "_dictation_warmup_task", None)
+ warmup_provider = getattr(self, "_dictation_warmup_provider", None)
+ if task is not None and warmup_provider is not provider:
+ # A live provider switch may arrive while the old native model is
+ # still loading. Join that generation before scheduling or calling
+ # the replacement so two native engines do not contend at once.
+ try:
+ await asyncio.wait_for(
+ asyncio.shield(task), timeout=_DICTATION_WARMUP_JOIN_TIMEOUT_S
+ )
+ except TimeoutError:
+ log.warning(
+ "Previous dictation STT warm-up did not stop within %.0fs; "
+ "abandoning that provider instance before the live switch.",
+ _DICTATION_WARMUP_JOIN_TIMEOUT_S,
+ )
+ task.cancel()
+ except asyncio.CancelledError:
+ current = asyncio.current_task()
+ if current is not None and current.cancelling():
+ raise
+ if getattr(self, "_dictation_warmup_task", None) is task:
+ self._dictation_warmup_task = None
+ self._dictation_warmup_provider = None
+ self._schedule_dictation_warmup(provider)
+ task = getattr(self, "_dictation_warmup_task", None)
+ if (
+ task is None
+ or getattr(self, "_dictation_warmup_provider", None) is not provider
+ ):
+ return provider
+ try:
+ await asyncio.wait_for(
+ asyncio.shield(task), timeout=_DICTATION_WARMUP_JOIN_TIMEOUT_S
+ )
+ return provider
+ except TimeoutError:
+ log.warning(
+ "Dictation STT warm-up did not finish within %.0fs; replacing "
+ "the provider instance before transcription.",
+ _DICTATION_WARMUP_JOIN_TIMEOUT_S,
+ )
+ task.cancel()
+ if getattr(self, "_dictation_stt_instance", None) is provider:
+ self._dictation_stt_instance = None
+ fresh = self._dictation_stt()
+ self._dictation_warmup_succeeded_provider = None
+ self._dictation_warmup_provider = None
+ self._dictation_warmup_task = None
+ return fresh
+ except asyncio.CancelledError:
+ current = asyncio.current_task()
+ if current is not None and current.cancelling():
+ raise
+ log.warning(
+ "Dictation STT warm-up was cancelled independently; replacing "
+ "the provider instance before transcription."
+ )
+ if getattr(self, "_dictation_stt_instance", None) is provider:
+ self._dictation_stt_instance = None
+ fresh = self._dictation_stt()
+ self._dictation_warmup_succeeded_provider = None
+ self._dictation_warmup_provider = None
+ self._dictation_warmup_task = None
+ return fresh
+
def _reset_dictation_stt(self) -> None:
"""Drop every cached STT fallback so the next use resolves them again.
@@ -9276,6 +9477,7 @@ class SpeechPipeline:
moment; what it clears is "the caches a provider swap invalidates".
"""
self._dictation_stt_instance = None
+ self._dictation_warmup_succeeded_provider = None
self._voice_stt_fallback_chain = None
self._voice_stt_fallback_instances = {}
@@ -9365,6 +9567,7 @@ class SpeechPipeline:
)
)
return
+ self._schedule_dictation_warmup(stt)
# ``getattr`` defaults keep pipelines built via ``__new__`` working —
# a widely used pattern in this repo's unit tests, which bypass
# ``__init__`` entirely.
@@ -9612,7 +9815,7 @@ class SpeechPipeline:
"""
# ``stt_failures`` is appended to, never rebound, so it needs no
# ``nonlocal`` — the list object itself is the shared state.
- nonlocal stt_error, stt_error_detail, session_language
+ nonlocal stt, stt_error, stt_error_detail, session_language
nonlocal stt_calls, stt_latency_ms
ceiling = max(
float(getattr(self, "_stt_final_timeout_s", 8.0) or 8.0),
@@ -9623,6 +9826,10 @@ class SpeechPipeline:
ask_for = resolve_recognition_language(
pinned=dictation_language, session_language=session_language
)
+ # Startup/live-switch warm-up and this call share one native task.
+ # Joining it avoids both an 11 s cold final decode and a concurrent
+ # model call that would return TranscribeBusy (AP-24).
+ stt = await self._join_dictation_warmup(stt)
inference_active.set()
call_started = time.perf_counter()
try:
@@ -9865,6 +10072,13 @@ class SpeechPipeline:
)
if stop_event.is_set():
return
+ # An installed local engine owns the cosmetic preview
+ # lane even while it is warming, busy, or rebuilding.
+ # ``None`` means "keep the previous line", not "send the
+ # same throwaway tail to the paid provider". Falling
+ # through here was the source of repeated 402 -> local
+ # fallback decodes during one dictation.
+ want_preview = False
# The reading this preview took from the AUDIO. Free —
# the decoder produced it either way — and the only
# reading a cloud provider's translated words cannot
@@ -9928,7 +10142,6 @@ class SpeechPipeline:
)
if local_text is not None:
tail_text = local_text
- want_preview = False # served without touching the quota
# Cloud preview only where no local engine can run (a base or
# headless install), and then strictly within its budget so
# it can never again outbid the transcript for requests.
@@ -10382,7 +10595,8 @@ class SpeechPipeline:
for t in (drain_task, stop_task, hangup_task):
try:
await t
- except (asyncio.CancelledError, Exception): # noqa: BLE001
+ except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
+ # These probe tasks were explicitly cancelled above.
pass
# The microphone lease is now closed on EVERY end path — key
@@ -10576,7 +10790,8 @@ class SpeechPipeline:
source_layer="speech.dictation", text="", is_final=True
)
)
- except Exception: # noqa: BLE001
+ except Exception: # noqa: BLE001, S110
+ # The primary failure is already logged; this event is optional.
pass
finally:
# Terminal-event guarantee. Consumers open on ``DictationStarted``
@@ -12754,7 +12969,11 @@ class SpeechPipeline:
# Enforce the fragment cap: drop the oldest entry if over limit.
while len(pending) > max_frags:
dropped = pending.pop(0)
- log.info("Pending-buffer cap (%d) exceeded — dropped oldest: %r", max_frags, dropped)
+ log.info(
+ "Pending-buffer cap (%d) exceeded — dropped oldest: %r",
+ max_frags,
+ dropped,
+ )
combined_for_ui = " ".join(pending).strip()
# Publish incomplete transcript for UI (reuses existing wire format —
# no new enum, spec §8 / BUG-008 avoidance).
@@ -12915,7 +13134,8 @@ class SpeechPipeline:
finally:
try:
await self._set_turn_state(TurnTakingState.LISTENING)
- except Exception: # noqa: BLE001
+ except Exception: # noqa: BLE001, S110
+ # The dispatch failure above is already logged with its traceback.
pass
async def _emit_completeness_signal(
@@ -13178,9 +13398,10 @@ class SpeechPipeline:
# ``allow_voice_confirm=True``: this is a conversational voice
# turn, so a consequential ask-tier tool is deferred into a spoken
# yes/no confirmation instead of blocking on a UI approval no voice
- # user can give (forensic 2026-06-18). Graduated fallback: a brain
- # that accepts ``on_progress`` but NOT ``allow_voice_confirm`` (older
- # builds, test fakes) must still receive the stall-guard heartbeat —
+ # user can give (forensic 2026-06-18). Graduated fallback drops the
+ # newest attachment keyword first, preserving voice confirmation on
+ # pre-attachment adapters. Older adapters that accept only
+ # ``on_progress`` must still receive the stall-guard heartbeat —
# dropping straight to the bare call here loses ``on_progress`` and
# the no-first-frame ceiling would behead the working turn (BUG-032).
try:
@@ -13195,10 +13416,16 @@ class SpeechPipeline:
stream = self._brain.generate_stream(
text,
on_progress=self._mark_brain_progress,
- consume_pending_voice_attachments=True,
+ allow_voice_confirm=True,
)
except TypeError:
- stream = self._brain.generate_stream(text)
+ try:
+ stream = self._brain.generate_stream(
+ text,
+ on_progress=self._mark_brain_progress,
+ )
+ except TypeError:
+ stream = self._brain.generate_stream(text)
async for chunk in stream:
if not chunk:
continue
@@ -13335,7 +13562,8 @@ class SpeechPipeline:
for t in (produce_task, play_task, barge_task, hangup_task, *synth_tasks):
try:
await t
- except (asyncio.CancelledError, Exception): # noqa: BLE001
+ except (asyncio.CancelledError, Exception): # noqa: BLE001, S110
+ # Owned playback tasks were explicitly cancelled above.
pass
# Drop any buffered-but-unplayed sentence channels so a cancelled
# turn can never replay ghost audio on the next turn.
@@ -14395,14 +14623,15 @@ class SpeechPipeline:
# else: watchdog already aborted the wedged device + logged.
self._player.stop()
except Exception as exc: # noqa: BLE001
- log.exception("Playback-Fehler: %s", exc)
+ log.exception("Playback failure: %s", exc)
finally:
for t in (play_task, barge_task, hangup_task):
if not t.done():
t.cancel()
try:
await t
- except (asyncio.CancelledError, Exception):
+ except (asyncio.CancelledError, Exception): # noqa: S110
+ # Owned playback tasks were explicitly cancelled above.
pass
if (
play_task.done()
@@ -14593,10 +14822,11 @@ async def _main() -> None:
)
print()
print("=" * 64)
- print(" Personal Jarvis — Speech-Pipeline")
+ print(" Personal Jarvis — Speech pipeline")
print("=" * 64)
print(" CALL : say your wake word | Ctrl+RightAlt+J | F3+F4")
- print(" HANG UP : say 'auflegen' | F1+F2") # i18n-allow: quoted German hangup trigger phrase
+ # i18n-allow: quoted German hang-up trigger phrase
+ print(" HANG UP : say 'auflegen' | F1+F2")
print(" QUIT : Ctrl+C in the terminal")
print()
print(" When Jarvis hears you: chime + a short spoken ack back.")
diff --git a/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.test.tsx b/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.test.tsx
index 6eed6da3ab..d28d278336 100644
--- a/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.test.tsx
@@ -1,4 +1,4 @@
-import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { act, cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
// Identity translator so rendered text equals the i18n key — matches the
@@ -62,19 +62,22 @@ async function openVoicePanel() {
return trigger;
}
+/** Open the model picker panel via its trigger button. */
+async function openModelPanel() {
+ const trigger = await screen.findByLabelText("apikeys_view.realtime_model_label");
+ fireEvent.click(trigger);
+ return trigger;
+}
+
describe("RealtimeOptionsControl", () => {
- it("renders a MODEL dropdown and a VOICE picker, populated from getRealtimeOptions", async () => {
+ it("renders app-styled MODEL and VOICE pickers populated from the backend", async () => {
getRealtimeOptions.mockResolvedValue(OPTIONS);
render(<RealtimeOptionsControl providerId="openai-realtime" />);
- const modelSelect = (await screen.findByLabelText(
- "apikeys_view.realtime_model_label",
- )) as HTMLSelectElement;
-
+ await openModelPanel();
expect(getRealtimeOptions).toHaveBeenCalledWith("openai-realtime");
- expect(
- Array.from(modelSelect.options).map((o) => o.value),
- ).toEqual(["", "gpt-realtime", "gpt-realtime-mini"]);
+ expect(screen.getByText("GPT Realtime")).toBeTruthy();
+ expect(screen.getByText("GPT Realtime Mini")).toBeTruthy();
await openVoicePanel();
expect(screen.getByText("Alloy")).toBeTruthy();
@@ -85,14 +88,16 @@ describe("RealtimeOptionsControl", () => {
getRealtimeOptions.mockResolvedValue(OPTIONS);
render(<RealtimeOptionsControl providerId="openai-realtime" />);
- const modelSelect = (await screen.findByLabelText(
+ const modelTrigger = await screen.findByLabelText(
"apikeys_view.realtime_model_label",
- )) as HTMLSelectElement;
+ );
const voiceTrigger = await screen.findByLabelText(
"apikeys_view.realtime_voice_label",
);
- expect(modelSelect.value).toBe("");
+ expect(modelTrigger.textContent).toContain(
+ "apikeys_view.realtime_provider_default",
+ );
expect(voiceTrigger.textContent).toContain(
"apikeys_view.realtime_provider_default",
);
@@ -106,14 +111,14 @@ describe("RealtimeOptionsControl", () => {
});
render(<RealtimeOptionsControl providerId="openai-realtime" />);
- const modelSelect = (await screen.findByLabelText(
+ const modelTrigger = await screen.findByLabelText(
"apikeys_view.realtime_model_label",
- )) as HTMLSelectElement;
+ );
const voiceTrigger = await screen.findByLabelText(
"apikeys_view.realtime_voice_label",
);
- await waitFor(() => expect(modelSelect.value).toBe("gpt-realtime-mini"));
+ await waitFor(() => expect(modelTrigger.textContent).toContain("GPT Realtime Mini"));
expect(voiceTrigger.textContent).toContain("Echo");
});
@@ -128,8 +133,8 @@ describe("RealtimeOptionsControl", () => {
});
render(<RealtimeOptionsControl providerId="openai-realtime" />);
- const modelSelect = await screen.findByLabelText("apikeys_view.realtime_model_label");
- fireEvent.change(modelSelect, { target: { value: "gpt-realtime" } });
+ await openModelPanel();
+ fireEvent.click(screen.getByText("GPT Realtime"));
await waitFor(() =>
expect(saveRealtimeOptions).toHaveBeenCalledWith("openai-realtime", {
@@ -174,12 +179,13 @@ describe("RealtimeOptionsControl", () => {
});
render(<RealtimeOptionsControl providerId="openai-realtime" />);
- const modelSelect = (await screen.findByLabelText(
- "apikeys_view.realtime_model_label",
- )) as HTMLSelectElement;
- await waitFor(() => expect(modelSelect.value).toBe("gpt-realtime-mini"));
-
- fireEvent.change(modelSelect, { target: { value: "" } });
+ const modelTrigger = await openModelPanel();
+ await waitFor(() => expect(modelTrigger.textContent).toContain("GPT Realtime Mini"));
+ fireEvent.click(
+ screen.getByRole("button", {
+ name: "apikeys_view.realtime_provider_default",
+ }),
+ );
await waitFor(() =>
expect(saveRealtimeOptions).toHaveBeenCalledWith("openai-realtime", { model: "" }),
);
@@ -221,6 +227,33 @@ describe("RealtimeOptionsControl", () => {
expect(saveRealtimeOptions).not.toHaveBeenCalled();
});
+ it("ignores preview audio that arrives after unmount", async () => {
+ let resolvePreview: ((blob: Blob) => void) | undefined;
+ getRealtimeOptions.mockResolvedValue({
+ ...OPTIONS,
+ current_voice: "echo",
+ });
+ fetchRealtimeVoicePreview.mockImplementationOnce(
+ () =>
+ new Promise<Blob>((resolve) => {
+ resolvePreview = resolve;
+ }),
+ );
+ const { unmount } = render(
+ <RealtimeOptionsControl providerId="openai-realtime" />,
+ );
+ fireEvent.click(await screen.findByLabelText("apikeys_voice.preview"));
+ await waitFor(() => expect(fetchRealtimeVoicePreview).toHaveBeenCalledTimes(1));
+
+ unmount();
+ await act(async () => {
+ resolvePreview?.(new Blob(["late"], { type: "audio/wav" }));
+ await Promise.resolve();
+ });
+
+ expect(URL.createObjectURL).not.toHaveBeenCalled();
+ });
+
it("every voice row in the open panel can be auditioned without saving", async () => {
getRealtimeOptions.mockResolvedValue(OPTIONS);
fetchRealtimeVoicePreview.mockResolvedValue(new Blob(["x"], { type: "audio/wav" }));
@@ -267,24 +300,31 @@ describe("RealtimeOptionsControl", () => {
it("keeps subscription voices selectable without rendering a broken preview", async () => {
getRealtimeOptions.mockResolvedValue({
provider: "codex-subscription-realtime",
- models: [{ id: "gpt-realtime-1.5", label: "GPT Realtime 1.5" }],
+ models: [{ id: "auto", label: "ChatGPT-Live (model chosen by OpenAI)" }],
voices: [
{ id: "cove", label: "Cove" },
{ id: "juniper", label: "Juniper" },
],
- current_model: "gpt-realtime-1.5",
+ current_model: "auto",
current_voice: "cove",
preview_available: false,
});
saveRealtimeOptions.mockResolvedValue({
ok: true,
provider: "codex-subscription-realtime",
- model: "gpt-realtime-1.5",
+ model: "auto",
voice: "juniper",
restart_required: false,
});
render(<RealtimeOptionsControl providerId="codex-subscription-realtime" />);
+ expect(
+ await screen.findByText("ChatGPT-Live (model chosen by OpenAI)"),
+ ).toBeTruthy();
+ expect(screen.getByText("apikeys_view.realtime_model_managed")).toBeTruthy();
+ expect(
+ screen.getByText("apikeys_view.realtime_model_managed_hint"),
+ ).toBeTruthy();
await openVoicePanel();
expect(screen.queryByLabelText("apikeys_voice.preview")).toBeNull();
@@ -298,4 +338,21 @@ describe("RealtimeOptionsControl", () => {
);
expect(fetchRealtimeVoicePreview).not.toHaveBeenCalled();
});
+
+ it("shows a recoverable error instead of silently hiding failed options", async () => {
+ getRealtimeOptions
+ .mockRejectedValueOnce(new Error("offline"))
+ .mockResolvedValueOnce(OPTIONS);
+ render(<RealtimeOptionsControl providerId="openai-realtime" />);
+
+ expect(
+ await screen.findByText("apikeys_view.realtime_options_error"),
+ ).toBeTruthy();
+ fireEvent.click(screen.getByText("apikeys_view.realtime_options_retry"));
+
+ expect(
+ await screen.findByLabelText("apikeys_view.realtime_model_label"),
+ ).toBeTruthy();
+ expect(getRealtimeOptions).toHaveBeenCalledTimes(2);
+ });
});
diff --git a/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.tsx b/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.tsx
index e25794859b..ac2a738e1e 100644
--- a/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.tsx
+++ b/jarvis/ui/web/frontend/src/components/RealtimeOptionsControl.tsx
@@ -1,5 +1,5 @@
-import { useEffect, useRef, useState } from "react";
-import { Check, ChevronDown, Loader2 } from "lucide-react";
+import { useEffect, useId, useRef, useState } from "react";
+import { AlertCircle, Check, ChevronDown, Loader2 } from "lucide-react";
import {
fetchRealtimeVoicePreview,
getRealtimeOptions,
@@ -19,13 +19,15 @@ const PROVIDER_DEFAULT = "";
/**
* Per-realtime-provider MODEL + VOICE picker.
*
- * Unlike every other tier, a realtime session needs BOTH a model and a voice
- * pinned per provider, so this is a small dedicated control against the
+ * Realtime providers expose a model and a voice configuration, so this is a
+ * small dedicated control against the
* dedicated `GET/PUT /api/providers/{id}/realtime-options` endpoint rather
* than the shared search-heavy `BrainModelSelector`.
*
- * The model stays a plain `<select>` (a handful of curated entries). The
- * voice is a richer expanding picker. Providers with a standalone sampler
+ * Both choices use app-styled pickers so Windows does not replace them with
+ * a low-contrast native menu. A provider-managed model is shown as read-only
+ * instead of pretending the user can pick a model that the server rejects.
+ * Providers with a standalone sampler
* expose per-voice audio previews; offer-only transports remain selectable
* without showing a preview button that cannot work.
*
@@ -48,11 +50,14 @@ export function RealtimeOptionsControl({
const [voice, setVoice] = useState<string>(PROVIDER_DEFAULT);
const [previewAvailable, setPreviewAvailable] = useState(false);
const [loading, setLoading] = useState(true);
+ const [loadError, setLoadError] = useState(false);
+ const [reloadNonce, setReloadNonce] = useState(0);
const [savingField, setSavingField] = useState<"model" | "voice" | null>(null);
useEffect(() => {
let alive = true;
setLoading(true);
+ setLoadError(false);
void getRealtimeOptions(providerId)
.then((r) => {
if (!alive) return;
@@ -66,8 +71,7 @@ export function RealtimeOptionsControl({
setPreviewAvailable(r?.preview_available === true);
})
.catch(() => {
- // Best-effort — the row degrades to empty dropdowns rather than
- // breaking the card.
+ if (alive) setLoadError(true);
})
.finally(() => {
if (alive) setLoading(false);
@@ -75,7 +79,7 @@ export function RealtimeOptionsControl({
return () => {
alive = false;
};
- }, [providerId]);
+ }, [providerId, reloadNonce]);
async function handleChange(field: "model" | "voice", next: string) {
const prev = field === "model" ? model : voice;
@@ -118,17 +122,48 @@ export function RealtimeOptionsControl({
}
}
- if (loading) return null;
+ if (loading) {
+ return (
+ <div
+ role="status"
+ aria-live="polite"
+ className="flex items-center gap-2 py-1 text-xs text-muted-foreground"
+ >
+ <Loader2 className="h-3.5 w-3.5 animate-spin" aria-hidden="true" />
+ {t("apikeys_view.realtime_options_loading")}
+ </div>
+ );
+ }
+
+ if (loadError) {
+ return (
+ <div
+ role="alert"
+ className="flex items-center justify-between gap-3 rounded-md border border-destructive/30 bg-destructive/10 px-2.5 py-2 text-xs"
+ >
+ <span className="flex min-w-0 items-center gap-2 text-destructive">
+ <AlertCircle className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
+ {t("apikeys_view.realtime_options_error")}
+ </span>
+ <button
+ type="button"
+ onClick={() => setReloadNonce((value) => value + 1)}
+ className="shrink-0 rounded-md border border-destructive/30 px-2 py-1 font-medium text-destructive hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"
+ >
+ {t("apikeys_view.realtime_options_retry")}
+ </button>
+ </div>
+ );
+ }
return (
<div
className="space-y-1.5"
- // A click into the selects must not bubble to the card's activate
- // handler (it only filters input/button/a/label, not select).
+ // Configuration clicks must not bubble to the card's activate handler.
onClick={(e) => e.stopPropagation()}
onDoubleClick={(e) => e.stopPropagation()}
>
- <RealtimeSelectRow
+ <RealtimeModelRow
label={t("apikeys_view.realtime_model_label")}
value={model}
options={models}
@@ -149,7 +184,7 @@ export function RealtimeOptionsControl({
);
}
-function RealtimeSelectRow({
+function RealtimeModelRow({
label,
value,
options,
@@ -163,34 +198,147 @@ function RealtimeSelectRow({
onChange: (value: string) => void;
}) {
const t = useT();
+ const [open, setOpen] = useState(false);
+ const rootRef = useRef<HTMLDivElement>(null);
+ const panelId = useId();
+ const managed = options.length === 1 && options[0].id === "auto";
+ const currentEntry = options.find((option) => option.id === value);
+
+ useEffect(() => {
+ if (!open) return;
+ function onPointerDown(event: MouseEvent) {
+ if (rootRef.current && !rootRef.current.contains(event.target as Node)) {
+ setOpen(false);
+ }
+ }
+ function onKeyDown(event: KeyboardEvent) {
+ if (event.key === "Escape") setOpen(false);
+ }
+ document.addEventListener("mousedown", onPointerDown);
+ document.addEventListener("keydown", onKeyDown);
+ return () => {
+ document.removeEventListener("mousedown", onPointerDown);
+ document.removeEventListener("keydown", onKeyDown);
+ };
+ }, [open]);
+
+ if (managed) {
+ return (
+ <div className="flex items-start gap-2">
+ <span className="w-14 shrink-0 pt-1.5 text-[10px] uppercase tracking-wide text-muted-foreground">
+ {label}
+ </span>
+ <div
+ aria-label={label}
+ className="min-w-0 flex-1 rounded-md border border-primary/20 bg-primary/[0.06] px-2.5 py-1.5"
+ >
+ <div className="flex items-center gap-2 text-xs">
+ <span className="min-w-0 flex-1 truncate font-medium">
+ {options[0].label}
+ </span>
+ <span className="rounded-full border border-primary/25 bg-primary/10 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-primary">
+ {t("apikeys_view.realtime_model_managed")}
+ </span>
+ </div>
+ <p className="mt-0.5 text-[10px] leading-snug text-muted-foreground">
+ {t("apikeys_view.realtime_model_managed_hint")}
+ </p>
+ </div>
+ </div>
+ );
+ }
+
+ function pick(next: string) {
+ setOpen(false);
+ if (next !== value) onChange(next);
+ }
+
return (
- <div className="flex items-center gap-2">
+ <div ref={rootRef} className="relative flex items-center gap-2">
<span className="w-14 shrink-0 text-[10px] uppercase tracking-wide text-muted-foreground">
{label}
</span>
- <select
+ <button
+ type="button"
aria-label={label}
- value={value}
+ aria-expanded={open}
+ aria-controls={panelId}
disabled={saving}
- onChange={(e) => onChange(e.target.value)}
- className="min-w-0 flex-1 rounded-md border border-input bg-background px-2 py-1 text-xs disabled:opacity-60"
+ onClick={() => setOpen((current) => !current)}
+ className={cn(
+ "flex min-w-0 flex-1 items-center justify-between gap-2 rounded-md border bg-background px-2.5 py-1.5 text-left text-xs disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
+ open
+ ? "border-primary/50 ring-1 ring-primary/20"
+ : "border-input hover:border-primary/40",
+ )}
>
- <option value={PROVIDER_DEFAULT}>
- {t("apikeys_view.realtime_provider_default")}
- </option>
- {options.map((o) => (
- <option key={o.id} value={o.id}>
- {o.label}
- </option>
- ))}
- </select>
- {saving && (
- <Loader2 className="h-3 w-3 shrink-0 animate-spin text-muted-foreground" />
+ <span className={cn("truncate", !value && "text-muted-foreground")}>
+ {value
+ ? currentEntry?.label || value
+ : t("apikeys_view.realtime_provider_default")}
+ </span>
+ {saving ? (
+ <Loader2 className="h-3 w-3 shrink-0 animate-spin" aria-hidden="true" />
+ ) : (
+ <ChevronDown
+ className={cn(
+ "h-3 w-3 shrink-0 text-muted-foreground transition-transform",
+ open && "rotate-180",
+ )}
+ aria-hidden="true"
+ />
+ )}
+ </button>
+ {open && (
+ <ul
+ id={panelId}
+ className="absolute left-16 right-0 top-full z-30 mt-1 max-h-56 overflow-y-auto rounded-md border border-border bg-popover p-1 shadow-xl scrollbar-jarvis"
+ >
+ <ModelOption
+ label={t("apikeys_view.realtime_provider_default")}
+ selected={!value}
+ onClick={() => pick(PROVIDER_DEFAULT)}
+ />
+ {options.map((option) => (
+ <ModelOption
+ key={option.id}
+ label={option.label}
+ selected={option.id === value}
+ onClick={() => pick(option.id)}
+ />
+ ))}
+ </ul>
)}
</div>
);
}
+function ModelOption({
+ label,
+ selected,
+ onClick,
+}: {
+ label: string;
+ selected: boolean;
+ onClick: () => void;
+}) {
+ return (
+ <li>
+ <button
+ type="button"
+ onClick={onClick}
+ className={cn(
+ "flex w-full items-center justify-between gap-2 rounded px-2 py-1.5 text-left text-xs hover:bg-primary/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
+ selected && "bg-primary/20 font-medium text-primary",
+ )}
+ >
+ <span className="truncate">{label}</span>
+ {selected && <Check className="h-3 w-3 shrink-0" aria-hidden="true" />}
+ </button>
+ </li>
+ );
+}
+
/**
* Voice row: current pick, expanding into the full selectable voice list.
* When the backend advertises a sampler, every voice can be auditioned without
@@ -230,10 +378,13 @@ function RealtimeVoiceRow({
const [loadingId, setLoadingId] = useState<string | null>(null);
const rootRef = useRef<HTMLDivElement>(null);
+ const panelId = useId();
const audioRef = useRef<HTMLAudioElement | null>(null);
const urlRef = useRef<string | null>(null);
+ const previewGenerationRef = useRef(0);
function stopPreview() {
+ previewGenerationRef.current += 1;
if (audioRef.current) {
audioRef.current.pause();
audioRef.current = null;
@@ -249,7 +400,7 @@ function RealtimeVoiceRow({
// Stop and free any playing preview when the component unmounts.
useEffect(() => stopPreview, []);
- // Close the panel on an outside click.
+ // Close the panel on an outside click or Escape.
useEffect(() => {
if (!open) return;
function onDown(e: MouseEvent) {
@@ -257,8 +408,15 @@ function RealtimeVoiceRow({
setOpen(false);
}
}
+ function onKeyDown(e: KeyboardEvent) {
+ if (e.key === "Escape") setOpen(false);
+ }
document.addEventListener("mousedown", onDown);
- return () => document.removeEventListener("mousedown", onDown);
+ document.addEventListener("keydown", onKeyDown);
+ return () => {
+ document.removeEventListener("mousedown", onDown);
+ document.removeEventListener("keydown", onKeyDown);
+ };
}, [open]);
async function preview(voiceId: string) {
@@ -268,6 +426,7 @@ function RealtimeVoiceRow({
return;
}
stopPreview();
+ const generation = previewGenerationRef.current;
setLoadingId(voiceId);
try {
const blob = await fetchRealtimeVoicePreview({
@@ -276,16 +435,22 @@ function RealtimeVoiceRow({
language: previewLang,
model,
});
+ if (previewGenerationRef.current !== generation) return;
const url = URL.createObjectURL(blob);
urlRef.current = url;
const audio = new Audio(url);
audioRef.current = audio;
- audio.onended = () => stopPreview();
- audio.onerror = () => stopPreview();
+ audio.onended = () => {
+ if (previewGenerationRef.current === generation) stopPreview();
+ };
+ audio.onerror = () => {
+ if (previewGenerationRef.current === generation) stopPreview();
+ };
setLoadingId(null);
setPreviewingId(voiceId);
await audio.play();
} catch (e) {
+ if (previewGenerationRef.current !== generation) return;
pushToast(
"error",
`${t("apikeys_voice.preview_failed")}: ${(e as Error).message}`,
@@ -311,10 +476,11 @@ function RealtimeVoiceRow({
type="button"
aria-label={label}
aria-expanded={open}
+ aria-controls={panelId}
disabled={saving}
onClick={() => setOpen((o) => !o)}
className={cn(
- "flex min-w-0 flex-1 items-center justify-between gap-2 rounded-md border bg-background px-2 py-1 text-left text-xs transition-colors disabled:opacity-60",
+ "flex min-w-0 flex-1 items-center justify-between gap-2 rounded-md border bg-background px-2 py-1 text-left text-xs transition-colors disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
open
? "border-primary/50 ring-1 ring-primary/20"
: "border-input hover:border-primary/40",
@@ -351,7 +517,10 @@ function RealtimeVoiceRow({
{/* Inline-expanding voice list with per-voice audition. */}
{open && (
- <div className="overflow-hidden rounded-md border border-border bg-popover">
+ <div
+ id={panelId}
+ className="overflow-hidden rounded-md border border-border bg-popover"
+ >
{previewAvailable && (
<div
className="flex items-center justify-end gap-1 border-b border-border px-2.5 py-1"
diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.test.tsx
index 76730fbbe1..f775da9dce 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.test.tsx
@@ -1,5 +1,10 @@
import { cleanup, render } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+import {
+ clearVoiceInputLevel,
+ setBrowserVoiceInputOwnership,
+ setVoiceInputLevel,
+} from "@/lib/voiceInputLevel";
const { documentState } = vi.hoisted(() => ({
documentState: { visible: true },
@@ -58,6 +63,8 @@ function setReducedMotion(matches: boolean): void {
beforeEach(() => {
documentState.visible = true;
+ setBrowserVoiceInputOwnership(false);
+ clearVoiceInputLevel();
});
afterEach(() => {
@@ -196,6 +203,33 @@ describe("voice orb renderer", () => {
expect(Math.abs(exitRadius - settledRadius) / settledRadius).toBeLessThan(0.015);
});
+ it("expands from the measured microphone level while listening", () => {
+ setReducedMotion(false);
+ vi.spyOn(performance, "now").mockReturnValue(0);
+ const { display } = installCanvasContexts();
+ let nextFrame: FrameRequestCallback | undefined;
+ vi.spyOn(window, "requestAnimationFrame").mockImplementation((callback) => {
+ nextFrame = callback;
+ return 51;
+ });
+
+ render(<VoiceOrb state="listening" />);
+ const quietRadius = vi.mocked(display.arc).mock.calls[0][2];
+
+ setVoiceInputLevel(1);
+ nextFrame?.(60);
+ let calls = vi.mocked(display.arc).mock.calls;
+ const voicedRadius = calls[calls.length - 1][2];
+
+ clearVoiceInputLevel();
+ for (let now = 110; now <= 410; now += 50) nextFrame?.(now);
+ calls = vi.mocked(display.arc).mock.calls;
+ const releasedRadius = calls[calls.length - 1][2];
+
+ expect(voicedRadius).toBeGreaterThan(quietRadius * 1.015);
+ expect(releasedRadius).toBeLessThan(voicedRadius * 0.99);
+ });
+
it("cancels animation when hidden and again when unmounted", () => {
setReducedMotion(false);
installCanvasContexts();
diff --git a/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.tsx b/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.tsx
index abd6003861..2b3262ffd4 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/VoiceOrb.tsx
@@ -13,6 +13,7 @@
*/
import { useEffect, useRef, useState } from "react";
import { cn } from "@/lib/utils";
+import { readVoiceInputLevel } from "@/lib/voiceInputLevel";
import { useDocumentVisible } from "@/hooks/useDocumentVisible";
import type { VoiceState } from "@/store/events";
@@ -314,6 +315,7 @@ export function VoiceOrb({
let activeState = stateRef.current;
let speakingAge = Number.POSITIVE_INFINITY;
let liveImpact = 0;
+ let liveInput = 0;
const drawFrame = (now: number) => {
const dt = Math.min(0.1, Math.max(0, (now - last) / 1000));
@@ -343,15 +345,25 @@ export function VoiceOrb({
const impactEase = 1 - Math.exp(-dt * (impactTarget > liveImpact ? 22 : 8));
liveImpact = mix(liveImpact, impactTarget, impactEase);
+ // Native capture and browser realtime both write the real normalized
+ // microphone level into a shared ref. A quick attack makes consonants
+ // feel immediate; the softer release prevents a nervous flicker between
+ // syllables. Only listening reacts, so stale samples cannot move the orb
+ // while the assistant is thinking or speaking.
+ const inputTarget = activeState === "listening" ? readVoiceInputLevel(now) : 0;
+ const inputEase = 1 - Math.exp(-dt * (inputTarget > liveInput ? 24 : 9));
+ liveInput = mix(liveInput, inputTarget, inputEase);
+ const visualImpact = liveImpact + liveInput * 0.055;
+
const breath =
0.965 -
live.breathAmp * 0.65 +
live.breathAmp * 0.52 * Math.sin(breathPhase) +
live.breathAmp * 0.13 * Math.sin(breathPhase * 2.05 + 1.4) +
- liveImpact;
+ visualImpact;
const radius = (half - 0.75 * dpr) * Math.min(1, breath);
- paintWeather(weather, phaseX, phaseY, live, liveImpact);
+ paintWeather(weather, phaseX, phaseY, live, visualImpact);
textureCtx.putImageData(weather, 0, 0);
ctx.clearRect(0, 0, canvas.width, canvas.height);
diff --git a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.test.tsx b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.test.tsx
index 23a6a9c8b3..4a7a7b3e4f 100644
--- a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.test.tsx
@@ -2,6 +2,11 @@ import { act, fireEvent, render, screen, waitFor } from "@testing-library/react"
import { beforeEach, describe, expect, it, vi } from "vitest";
import { useEventStore } from "@/store/events";
+import {
+ setBrowserVoiceInputOwnership,
+ setVoiceInputLevel,
+ voiceInputLevelRef,
+} from "@/lib/voiceInputLevel";
import { BrowserRealtimeControl, waveformPhase } from "./BrowserRealtimeControl";
@@ -19,6 +24,7 @@ const fakes = vi.hoisted(() => ({
| "audio_worklet_unavailable",
callbacks: null as null | {
onAudio?: () => void;
+ onInputLevel?: (level: number) => void;
onStatus?: (status: string, payload: Record<string, unknown>) => void;
},
options: null as null | { requiresWebRtcOffer?: boolean },
@@ -69,6 +75,7 @@ describe("BrowserRealtimeControl", () => {
fakes.supportIssue = null;
fakes.callbacks = null;
fakes.options = null;
+ setBrowserVoiceInputOwnership(false);
delete (window as unknown as { pywebview?: unknown }).pywebview;
useEventStore.setState({
voiceState: "idle",
@@ -153,6 +160,56 @@ describe("BrowserRealtimeControl", () => {
);
});
+ it("shares browser microphone samples with the orb", async () => {
+ render(<BrowserRealtimeControl />);
+ fireEvent.click(screen.getByRole("button", { name: "sidebar.realtime_start" }));
+ await waitFor(() => expect(fakes.connect).toHaveBeenCalledTimes(1));
+
+ act(() => fakes.callbacks?.onInputLevel?.(0.64));
+ setVoiceInputLevel(1, "native");
+
+ expect(voiceInputLevelRef.current).toBe(0.64);
+ });
+
+ it("owns microphone levels only while a browser connection is active", async () => {
+ render(<BrowserRealtimeControl />);
+ setVoiceInputLevel(0.25, "native");
+ expect(voiceInputLevelRef.current).toBe(0.25);
+
+ fireEvent.click(screen.getByRole("button", { name: "sidebar.realtime_start" }));
+ await waitFor(() => expect(fakes.connect).toHaveBeenCalledTimes(1));
+ act(() => fakes.callbacks?.onInputLevel?.(0.7));
+ setVoiceInputLevel(0.9, "native");
+ expect(voiceInputLevelRef.current).toBe(0.7);
+
+ act(() => fakes.callbacks?.onStatus?.("provider_error", {}));
+ await waitFor(() => expect(fakes.disconnect).toHaveBeenCalledTimes(1));
+ setVoiceInputLevel(0.4, "native");
+ expect(voiceInputLevelRef.current).toBe(0.4);
+ });
+
+ it("ignores a late connect and stale callbacks after unmount", async () => {
+ let finishConnect: (() => void) | undefined;
+ fakes.connect.mockImplementationOnce(
+ () =>
+ new Promise<undefined>((resolve) => {
+ finishConnect = () => resolve(undefined);
+ }),
+ );
+ const { unmount } = render(<BrowserRealtimeControl />);
+ fireEvent.click(screen.getByRole("button", { name: "sidebar.realtime_start" }));
+ await waitFor(() => expect(fakes.connect).toHaveBeenCalledTimes(1));
+
+ unmount();
+ act(() => fakes.callbacks?.onInputLevel?.(0.9));
+ await act(async () => {
+ finishConnect?.();
+ await Promise.resolve();
+ });
+
+ expect(voiceInputLevelRef.current).toBe(0);
+ });
+
it("swaps the measured waveform for the activity sweep once the turn is committed", async () => {
render(<BrowserRealtimeControl />);
fireEvent.click(screen.getByRole("button", { name: "sidebar.realtime_start" }));
diff --git a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx
index 2e04fe866d..ac1e0f50aa 100644
--- a/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx
+++ b/jarvis/ui/web/frontend/src/components/voice/BrowserRealtimeControl.tsx
@@ -13,6 +13,11 @@ import {
} from "@/lib/realtimeAudio";
import { useEventStore, type VoiceState } from "@/store/events";
import { cn } from "@/lib/utils";
+import {
+ clearVoiceInputLevel,
+ setBrowserVoiceInputOwnership,
+ setVoiceInputLevel,
+} from "@/lib/voiceInputLevel";
type ConnectionState = "idle" | "connecting" | "connected" | "error";
@@ -85,6 +90,7 @@ export function BrowserRealtimeControl() {
// repaint a five-segment meter.
const levelRef = useRef(0);
const clientRef = useRef<RealtimeAudioClient | null>(null);
+ const connectionGenerationRef = useRef(0);
const browserSurface = Boolean(
capabilities.data &&
(capabilities.data.native_file_actions === false || !hasEmbeddedDesktopBridge()),
@@ -105,37 +111,55 @@ export function BrowserRealtimeControl() {
);
const stop = useCallback(async () => {
+ connectionGenerationRef.current += 1;
const client = clientRef.current;
clientRef.current = null;
- await client?.disconnect();
setState("idle");
setEffectiveProvider("");
setError("");
levelRef.current = 0;
+ clearVoiceInputLevel("browser");
+ setBrowserVoiceInputOwnership(false);
setVoice("idle");
+ await client?.disconnect();
}, [setVoice]);
const start = useCallback(async () => {
if (!realtimeAvailable || state === "connecting") return;
- await clientRef.current?.disconnect();
+ const generation = connectionGenerationRef.current + 1;
+ connectionGenerationRef.current = generation;
+ const previousClient = clientRef.current;
+ clientRef.current = null;
setState("connecting");
setError("");
setEffectiveProvider("");
+ levelRef.current = 0;
+ clearVoiceInputLevel("browser");
+ await previousClient?.disconnect();
+ if (connectionGenerationRef.current !== generation) return;
- const client = new RealtimeAudioClient(
+ let client: RealtimeAudioClient;
+ const isCurrent = () =>
+ connectionGenerationRef.current === generation && clientRef.current === client;
+ client = new RealtimeAudioClient(
{
onTranscript: (text, isFinal, role) => {
+ if (!isCurrent()) return;
if (role === "user") setTranscription(text, isFinal);
if (role === "user" && isFinal) setVoice("thinking");
},
onAudio: () => {
+ if (!isCurrent()) return;
setError("");
setVoice("speaking");
},
onInputLevel: (value) => {
+ if (!isCurrent()) return;
levelRef.current = value;
+ setVoiceInputLevel(value, "browser");
},
onStatus: (status, payload) => {
+ if (!isCurrent()) return;
if (status === "audio_ready") {
const provider =
typeof payload.provider === "string" ? payload.provider : "";
@@ -161,8 +185,12 @@ export function BrowserRealtimeControl() {
setError(t("sidebar.realtime_browser_tts_unavailable"));
setVoice("listening");
} else if (status === "provider_error" || status === "disconnected") {
+ clientRef.current = null;
+ void client.disconnect();
setState("error");
setError(t("sidebar.realtime_error"));
+ levelRef.current = 0;
+ clearVoiceInputLevel("browser");
setVoice("error");
}
},
@@ -172,9 +200,13 @@ export function BrowserRealtimeControl() {
clientRef.current = client;
try {
await client.connect();
+ if (!isCurrent()) return;
setState("connected");
} catch (cause) {
- if (clientRef.current === client) clientRef.current = null;
+ if (!isCurrent()) return;
+ clientRef.current = null;
+ void client.disconnect();
+ clearVoiceInputLevel("browser");
setState("error");
setError(
cause instanceof RealtimeAudioSupportError
@@ -197,16 +229,21 @@ export function BrowserRealtimeControl() {
]);
useEffect(() => {
- if (visible) return;
- const client = clientRef.current;
- clientRef.current = null;
- if (client) void client.disconnect();
- }, [visible]);
+ setBrowserVoiceInputOwnership(
+ visible && (state === "connecting" || state === "connected"),
+ );
+ }, [state, visible]);
+
+ useEffect(() => {
+ if (!visible) void stop();
+ }, [stop, visible]);
useEffect(
() => () => {
+ connectionGenerationRef.current += 1;
const client = clientRef.current;
clientRef.current = null;
+ setBrowserVoiceInputOwnership(false);
if (client) void client.disconnect();
},
[],
diff --git a/jarvis/ui/web/frontend/src/hooks/useProviders.section-health.test.tsx b/jarvis/ui/web/frontend/src/hooks/useProviders.section-health.test.tsx
index e2edbc03a3..5a5cf093fb 100644
--- a/jarvis/ui/web/frontend/src/hooks/useProviders.section-health.test.tsx
+++ b/jarvis/ui/web/frontend/src/hooks/useProviders.section-health.test.tsx
@@ -2,6 +2,7 @@ import { act, cleanup, renderHook, waitFor } from "@testing-library/react";
import { afterEach, describe, expect, it, vi } from "vitest";
import {
+ PROVIDER_BACKEND_UNREACHABLE,
sectionHealthForSubject,
sectionHealthFromProviderTest,
type ProviderTestResult,
@@ -42,6 +43,24 @@ afterEach(() => {
});
describe("provider status loading", () => {
+ it("labels a local API outage and reconnects automatically", async () => {
+ const provider = { id: "openai-realtime", configured: true };
+ const fetchMock = vi
+ .fn()
+ .mockRejectedValueOnce(new TypeError("Failed to fetch"))
+ .mockResolvedValueOnce(jsonResponse({ providers: [provider] }));
+ vi.stubGlobal("fetch", fetchMock);
+
+ const { result } = renderHook(() => useProviders({ retryDelaysMs: [100] }));
+ await waitFor(() =>
+ expect(result.current.error).toBe(PROVIDER_BACKEND_UNREACHABLE),
+ );
+ await waitFor(() => expect(result.current.providers).toEqual([provider]));
+
+ expect(result.current.error).toBeNull();
+ expect(fetchMock).toHaveBeenCalledTimes(2);
+ });
+
it("does not let an older response overwrite newer provider truth", async () => {
const oldRequest = deferred<Response>();
const freshProvider = { id: "codex-subscription-realtime", configured: true };
diff --git a/jarvis/ui/web/frontend/src/hooks/useVoiceMode.test.tsx b/jarvis/ui/web/frontend/src/hooks/useVoiceMode.test.tsx
index 95e1ee2499..7fcd9fc7d2 100644
--- a/jarvis/ui/web/frontend/src/hooks/useVoiceMode.test.tsx
+++ b/jarvis/ui/web/frontend/src/hooks/useVoiceMode.test.tsx
@@ -14,7 +14,10 @@ function response(available: boolean): Response {
requires_webrtc_offer: true,
active_provider: available ? "codex-subscription-realtime" : null,
active_provider_label: available ? "ChatGPT subscription (Codex)" : null,
- active_model: available ? "gpt-realtime-1.5" : null,
+ active_model: available ? "auto" : null,
+ active_model_label: available
+ ? "ChatGPT-Live (model chosen by OpenAI)"
+ : null,
session_active: false,
active_session_mode: null,
active_session_provider: "",
@@ -54,5 +57,8 @@ describe("useVoiceMode realtime discovery", () => {
);
expect(fetchMock).toHaveBeenCalledTimes(2);
expect(fetchMock.mock.calls[1]?.[1]).toMatchObject({ cache: "no-store" });
+ expect(result.current.activeModel).toBe(
+ "ChatGPT-Live (model chosen by OpenAI)",
+ );
});
});
diff --git a/jarvis/ui/web/frontend/src/hooks/useVoiceMode.ts b/jarvis/ui/web/frontend/src/hooks/useVoiceMode.ts
index d0c70c11ec..563d35a03e 100644
--- a/jarvis/ui/web/frontend/src/hooks/useVoiceMode.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useVoiceMode.ts
@@ -12,10 +12,12 @@ type VoiceModeResp = {
// realtime session would use (configured pin or catalog default).
active_provider_label: string | null;
active_model: string | null;
+ active_model_label?: string | null;
session_active: boolean;
active_session_mode: "pipeline" | "realtime" | null;
active_session_provider: string;
active_session_model: string;
+ active_session_model_label?: string | null;
transitioning: boolean;
};
@@ -126,11 +128,12 @@ export function useVoiceMode() {
statusKnown: q.isSuccess,
activeProvider: q.data?.active_provider ?? null,
activeProviderLabel: q.data?.active_provider_label ?? null,
- activeModel: q.data?.active_model ?? null,
+ activeModel: q.data?.active_model_label ?? q.data?.active_model ?? null,
sessionActive: q.data?.session_active ?? false,
activeSessionMode: q.data?.active_session_mode ?? null,
activeSessionProvider: q.data?.active_session_provider ?? "",
- activeSessionModel: q.data?.active_session_model ?? "",
+ activeSessionModel:
+ q.data?.active_session_model_label ?? q.data?.active_session_model ?? "",
transitioning: q.data?.transitioning ?? false,
setMode: m.mutate,
isLoading: q.isLoading,
diff --git a/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx b/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx
index df498cf11f..3c72a67f28 100644
--- a/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx
+++ b/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx
@@ -11,6 +11,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { useWebSocket } from "@/hooks/useWebSocket";
import { useI18nStore } from "@/i18n";
+import {
+ setBrowserVoiceInputOwnership,
+ voiceInputLevelRef,
+} from "@/lib/voiceInputLevel";
import { useEventStore } from "@/store/events";
/** Minimal mock for WebSocket (mirrors __tests__/ws.test.ts). */
@@ -90,6 +94,7 @@ describe("useWebSocket VoiceBootStatus handling", () => {
};
useEventStore.setState({ voiceReady: false, toasts: [] });
useI18nStore.getState().setUi("en", { push: false });
+ setBrowserVoiceInputOwnership(false);
queryClient.clear();
});
@@ -177,6 +182,22 @@ describe("useWebSocket VoiceBootStatus handling", () => {
expect(toast.message).not.toContain("private content");
});
+ it("routes native microphone levels outside React state and clears them after listening", async () => {
+ render(<Harness />);
+ await Promise.resolve();
+
+ MockWebSocket.last!.deliver({ type: "audio.level", input: 0.72 });
+ expect(voiceInputLevelRef.current).toBe(0.72);
+
+ MockWebSocket.last!.deliver(
+ envelope("SystemStateChanged", {
+ new_state: "THINKING",
+ previous: "LISTENING",
+ }),
+ );
+ expect(voiceInputLevelRef.current).toBe(0);
+ });
+
it("shows a metadata-only receipt for one-shot screen capture", async () => {
render(<Harness />);
await Promise.resolve();
diff --git a/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts b/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts
index bb2918b27a..c96579d274 100644
--- a/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts
@@ -7,6 +7,7 @@ import {
documentOwnsDictation,
isForThisWindow,
} from "@/lib/dictationTarget";
+import { clearVoiceInputLevel, setVoiceInputLevel } from "@/lib/voiceInputLevel";
import {
SECTION_LABELS,
isSectionId,
@@ -15,7 +16,7 @@ import {
type VoiceState,
} from "@/store/events";
import { useSubAgentStore, SUB_AGENT_EVENT_NAMES } from "@/store/jarvisAgents";
-import { WSEventEnvelope, WSWelcome } from "@/schema/ws";
+import { WSAudioLevel, WSEventEnvelope, WSWelcome } from "@/schema/ws";
import { useI18nStore, hydrateUiLanguage, hydrateReplyLanguage, translate } from "@/i18n";
let singleton: WSClient | null = null;
@@ -66,6 +67,7 @@ export function useWebSocket(): void {
// one falls through to the honest offline state.
setWarming(code === 1013 || Boolean(info?.authRetryPending));
setConnected(false);
+ clearVoiceInputLevel("native");
},
onMessage: (raw) => {
const welcome = WSWelcome.safeParse(raw);
@@ -99,6 +101,12 @@ export function useWebSocket(): void {
return;
}
+ const audioLevel = WSAudioLevel.safeParse(raw);
+ if (audioLevel.success) {
+ setVoiceInputLevel(audioLevel.data.input, "native");
+ return;
+ }
+
const parsed = WSEventEnvelope.safeParse(raw);
if (!parsed.success) return;
const env = parsed.data;
@@ -164,6 +172,9 @@ export function useWebSocket(): void {
if (typeof state === "string") {
const lower = state.toLowerCase();
if (isVoiceState(lower)) setVoice(lower);
+ // A state boundary invalidates the previous phase's sample. Native
+ // capture will immediately supply a fresh value while listening.
+ clearVoiceInputLevel("native");
// The live-transcript box has no other reset path: without this,
// the last utterance of a session survives into READY/IDLE and the
// next session, masquerading as a frozen live transcript (live
@@ -456,6 +467,7 @@ export function useWebSocket(): void {
singleton = client;
return () => {
+ clearVoiceInputLevel("native");
client.close();
singleton = null;
mounted.current = false;
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 2173727e4a..bb599b461a 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -1187,6 +1187,9 @@
"model_picker_activate_hint": "Aktiviere diesen Provider, um seine Stimme oder sein Modell zu wählen.",
"active_tooltip": "Bereits aktiv",
"click_to_activate": "Klick aktiviert diesen Provider",
+ "provider_active": "Aktiv",
+ "provider_set_active": "Aktivieren",
+ "provider_activating": "Wird aktiviert…",
"needs_codex": "Erst Codex verbinden oder API-Key speichern",
"needs_login": "Erst mit Google anmelden, dann aktivierbar",
"needs_key": "Erst API-Key speichern, dann aktivierbar",
@@ -1207,8 +1210,13 @@
"realtime_model_label": "Realtime-Modell",
"realtime_voice_label": "Stimme",
"realtime_provider_default": "Anbieter-Standard (empfohlen)",
+ "realtime_options_loading": "Sprachoptionen werden geladen…",
+ "realtime_options_error": "Die Sprachoptionen konnten nicht geladen werden.",
+ "realtime_options_retry": "Erneut versuchen",
+ "realtime_model_managed": "Verwaltet",
+ "realtime_model_managed_hint": "ChatGPT wählt das Subscription-Modell. Bei einem API-Realtime-Anbieter kannst du ein GPT-Realtime-Modell festlegen.",
"guide_realtime_title": "Welches Modell soll ich nehmen?",
- "guide_realtime_body": "OpenAI: GPT Realtime (der Anbieter-Standard) klingt am natürlichsten; GPT Realtime Mini ist die günstige Wahl. Google: Gemini 3.1 Flash Live ist das aktuelle Live-Flaggschiff. „Anbieter-Standard“ löst immer auf das empfohlene Modell auf — du kannst es einfach so lassen.",
+ "guide_realtime_body": "OpenAI API: GPT Realtime 2.1 ist das aktuelle Flaggschiff, 2.1 Mini die günstigere Wahl. ChatGPT-Subscription: OpenAI verwaltet das Modell, deshalb ist dort nur die Stimme wählbar. Google: Gemini 3.1 Flash Live ist das aktuelle Live-Flaggschiff.",
"guide_computer_use_title": "Welcher Provider soll das Tool Model antreiben?",
"guide_computer_use_body": "Das Tool Model übernimmt jede Aktion, die Jarvis für dich ausführt — auch Computer-Use, das Screenshots deines Bildschirms liest und deshalb ein Modell braucht, das Bilder versteht; die Auswahl blendet reine Text-Modelle aus. Im Zweifel: beim Haupt-Brain-Provider und seinem Standard-Modell bleiben.",
"reco_title": "Persönliche Empfehlung",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 4abf0e50cd..aab13636cb 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -1187,6 +1187,9 @@
"model_picker_activate_hint": "Activate this provider to choose its voice or model.",
"active_tooltip": "Already active",
"click_to_activate": "Click to activate this provider",
+ "provider_active": "Active",
+ "provider_set_active": "Set active",
+ "provider_activating": "Activating…",
"needs_codex": "First connect Codex or save API key, then activate",
"needs_login": "First sign in with Google, then activate",
"needs_key": "First save API key, then activate",
@@ -1208,8 +1211,13 @@
"realtime_model_label": "Realtime model",
"realtime_voice_label": "Voice",
"realtime_provider_default": "Provider default (recommended)",
+ "realtime_options_loading": "Loading voice options…",
+ "realtime_options_error": "Voice options could not be loaded.",
+ "realtime_options_retry": "Try again",
+ "realtime_model_managed": "Managed",
+ "realtime_model_managed_hint": "ChatGPT selects the subscription model. Choose an API Realtime provider to pin a GPT Realtime model.",
"guide_realtime_title": "Which model should I pick?",
- "guide_realtime_body": "OpenAI: GPT Realtime (the provider default) sounds the most natural; GPT Realtime Mini is the budget pick. Google: Gemini 3.1 Flash Live is the current Live flagship. \"Provider default\" always resolves to the recommended model, so you can simply leave it.",
+ "guide_realtime_body": "OpenAI API: GPT Realtime 2.1 is the current flagship and 2.1 Mini is the budget pick. ChatGPT subscription: OpenAI manages the model, so only the voice is selectable. Google: Gemini 3.1 Flash Live is the current Live flagship.",
"guide_computer_use_title": "Which provider should power the Tool Model?",
"guide_computer_use_body": "The Tool Model handles every action Jarvis takes for you — including Computer-Use, which reads screenshots of your screen, so it needs a model that understands images; the picker hides text-only models. If unsure, keep your main Brain provider and its default model.",
"reco_title": "Personal recommendation",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index f7b5ecc378..d3607e760b 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1187,6 +1187,9 @@
"model_picker_activate_hint": "Activa este proveedor para elegir su voz o modelo.",
"active_tooltip": "Ya activo",
"click_to_activate": "Clic para activar este proveedor",
+ "provider_active": "Activo",
+ "provider_set_active": "Activar",
+ "provider_activating": "Activando…",
"needs_codex": "Primero conecta Codex o guarda la clave API",
"needs_login": "Primero inicia sesión con Google, luego se puede activar",
"needs_key": "Primero guarda la clave API, luego se puede activar",
@@ -1207,8 +1210,13 @@
"realtime_model_label": "Modelo en tiempo real",
"realtime_voice_label": "Voz",
"realtime_provider_default": "Predeterminado del proveedor (recomendado)",
+ "realtime_options_loading": "Cargando opciones de voz…",
+ "realtime_options_error": "No se pudieron cargar las opciones de voz.",
+ "realtime_options_retry": "Intentar de nuevo",
+ "realtime_model_managed": "Gestionado",
+ "realtime_model_managed_hint": "ChatGPT selecciona el modelo de suscripción. Elige un proveedor Realtime por API para fijar un modelo GPT Realtime.",
"guide_realtime_title": "¿Qué modelo debería elegir?",
- "guide_realtime_body": "OpenAI: GPT Realtime (el predeterminado del proveedor) suena más natural; GPT Realtime Mini es la opción económica. Google: Gemini 3.1 Flash Live es el buque insignia actual de Live. «Predeterminado del proveedor» siempre resuelve al modelo recomendado, así que puedes dejarlo tal cual.",
+ "guide_realtime_body": "API de OpenAI: GPT Realtime 2.1 es el modelo insignia actual y 2.1 Mini es la opción económica. Suscripción de ChatGPT: OpenAI gestiona el modelo, por lo que solo se puede elegir la voz. Google: Gemini 3.1 Flash Live es el modelo insignia actual de Live.",
"guide_computer_use_title": "¿Qué proveedor debería impulsar el Tool Model?",
"guide_computer_use_body": "El Tool Model se encarga de cada acción que Jarvis realiza por ti — incluido Computer-Use, que lee capturas de tu pantalla y necesita un modelo que entienda imágenes; el selector oculta los modelos de solo texto. En caso de duda, quédate con tu proveedor Brain principal y su modelo predeterminado.",
"reco_title": "Recomendación personal",
diff --git a/jarvis/ui/web/frontend/src/lib/voiceInputLevel.test.ts b/jarvis/ui/web/frontend/src/lib/voiceInputLevel.test.ts
new file mode 100644
index 0000000000..588338d3e1
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/lib/voiceInputLevel.test.ts
@@ -0,0 +1,43 @@
+import { beforeEach, describe, expect, it } from "vitest";
+
+import {
+ readVoiceInputLevel,
+ setBrowserVoiceInputOwnership,
+ setVoiceInputLevel,
+ voiceInputLevelRef,
+} from "./voiceInputLevel";
+
+describe("voice input level", () => {
+ beforeEach(() => setBrowserVoiceInputOwnership(false));
+
+ it("clamps measured samples to the normalized range", () => {
+ setVoiceInputLevel(1.4);
+ expect(voiceInputLevelRef.current).toBe(1);
+
+ setVoiceInputLevel(-0.2);
+ expect(voiceInputLevelRef.current).toBe(0);
+
+ setVoiceInputLevel(Number.NaN);
+ expect(voiceInputLevelRef.current).toBe(0);
+ });
+
+ it("gives an active browser microphone exclusive ownership", () => {
+ setVoiceInputLevel(0.8, "native", 10);
+ setBrowserVoiceInputOwnership(true);
+ setVoiceInputLevel(0.64, "browser", 20);
+ setVoiceInputLevel(1, "native", 30);
+
+ expect(readVoiceInputLevel(30)).toBe(0.64);
+
+ setBrowserVoiceInputOwnership(false);
+ setVoiceInputLevel(0.3, "native", 40);
+ expect(readVoiceInputLevel(40)).toBe(0.3);
+ });
+
+ it("expires a stalled producer sample", () => {
+ setVoiceInputLevel(0.9, "native", 100);
+
+ expect(readVoiceInputLevel(320)).toBe(0.9);
+ expect(readVoiceInputLevel(321)).toBe(0);
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/lib/voiceInputLevel.ts b/jarvis/ui/web/frontend/src/lib/voiceInputLevel.ts
new file mode 100644
index 0000000000..299effabd2
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/lib/voiceInputLevel.ts
@@ -0,0 +1,41 @@
+/**
+ * Shared real microphone level for animation loops.
+ *
+ * This intentionally stays outside React state: native and browser capture
+ * produce roughly 30 samples per second, while only canvas renderers need the
+ * latest value. A mutable ref avoids repainting the application on each frame.
+ */
+export type VoiceInputLevelSource = "native" | "browser";
+
+export const voiceInputLevelRef: { current: number } = { current: 0 };
+
+const SAMPLE_TTL_MS = 220;
+let updatedAt = Number.NEGATIVE_INFINITY;
+let browserOwnsInput = false;
+
+export function setVoiceInputLevel(
+ value: number,
+ source: VoiceInputLevelSource = "native",
+ now = performance.now(),
+): void {
+ if (source === "native" && browserOwnsInput) return;
+ voiceInputLevelRef.current = Number.isFinite(value)
+ ? Math.min(1, Math.max(0, value))
+ : 0;
+ updatedAt = now;
+}
+
+export function clearVoiceInputLevel(source?: VoiceInputLevelSource): void {
+ if (source === "native" && browserOwnsInput) return;
+ voiceInputLevelRef.current = 0;
+ updatedAt = Number.NEGATIVE_INFINITY;
+}
+
+export function setBrowserVoiceInputOwnership(active: boolean): void {
+ browserOwnsInput = active;
+ clearVoiceInputLevel();
+}
+
+export function readVoiceInputLevel(now = performance.now()): number {
+ return now - updatedAt <= SAMPLE_TTL_MS ? voiceInputLevelRef.current : 0;
+}
diff --git a/jarvis/ui/web/frontend/src/schema/ws.test.ts b/jarvis/ui/web/frontend/src/schema/ws.test.ts
index c398c2b995..8b5d95636c 100644
--- a/jarvis/ui/web/frontend/src/schema/ws.test.ts
+++ b/jarvis/ui/web/frontend/src/schema/ws.test.ts
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
-import { WSCommand, WSWelcome } from "./ws";
+import { WSAudioLevel, WSCommand, WSWelcome } from "./ws";
describe("WSCommand mission.inject", () => {
it("validates a mission.inject command", () => {
@@ -29,3 +29,12 @@ describe("WSWelcome", () => {
expect("token" in parsed).toBe(false);
});
});
+
+describe("WSAudioLevel", () => {
+ it("accepts only normalized microphone samples", () => {
+ expect(WSAudioLevel.parse({ type: "audio.level", input: 0.72 }).input).toBe(0.72);
+ expect(WSAudioLevel.safeParse({ type: "audio.level", input: 1.2 }).success).toBe(
+ false,
+ );
+ });
+});
diff --git a/jarvis/ui/web/frontend/src/schema/ws.ts b/jarvis/ui/web/frontend/src/schema/ws.ts
index a8f35efe96..cc8c23cf62 100644
--- a/jarvis/ui/web/frontend/src/schema/ws.ts
+++ b/jarvis/ui/web/frontend/src/schema/ws.ts
@@ -23,6 +23,13 @@ export const WSWelcome = z.object({
});
export type WSWelcomeT = z.infer<typeof WSWelcome>;
+/** Ephemeral normalized native-microphone level for canvas animation. */
+export const WSAudioLevel = z.object({
+ type: z.literal("audio.level"),
+ input: z.number().min(0).max(1),
+});
+export type WSAudioLevelT = z.infer<typeof WSAudioLevel>;
+
/** Free-form user text / voice message heading inward. */
export const WSMessageIn = z.object({
type: z.literal("message"),
@@ -69,5 +76,6 @@ export const WSInbound = z.discriminatedUnion("type", [WSMessageIn, WSCommand]);
export const WSOutbound = z.discriminatedUnion("type", [
WSEventEnvelope,
WSWelcome,
+ WSAudioLevel,
WSTerminalSpawned,
]);
diff --git a/jarvis/ui/web/frontend/src/views/AgentInstructionsView.test.tsx b/jarvis/ui/web/frontend/src/views/AgentInstructionsView.test.tsx
index bea33ca775..32b695d480 100644
--- a/jarvis/ui/web/frontend/src/views/AgentInstructionsView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/AgentInstructionsView.test.tsx
@@ -51,7 +51,11 @@ describe("AgentInstructionsView", () => {
vi.stubGlobal("fetch", fetchMock);
render(<AgentInstructionsView />);
const editor = await screen.findByTestId("agent-instructions-editor");
- fireEvent.click(screen.getByText("Start from template"));
+ const template = screen
+ .getByText("Start from template")
+ .closest("button") as HTMLButtonElement;
+ await waitFor(() => expect(template.disabled).toBe(false));
+ fireEvent.click(template);
await waitFor(() =>
expect((editor as HTMLTextAreaElement).value).toBe(EMPTY_STATE.template),
);
@@ -98,8 +102,11 @@ describe("AgentInstructionsView", () => {
vi.fn().mockResolvedValue({ ok: true, json: async () => EMPTY_STATE }),
);
render(<AgentInstructionsView />);
- await screen.findByTestId("agent-instructions-editor");
- fireEvent.click(screen.getByText("Start from template"));
+ const template = screen
+ .getByText("Start from template")
+ .closest("button") as HTMLButtonElement;
+ await waitFor(() => expect(template.disabled).toBe(false));
+ fireEvent.click(template);
await waitFor(() =>
expect(
(screen.getByTestId("agent-instructions-editor") as HTMLTextAreaElement).value,
@@ -112,6 +119,9 @@ describe("AgentInstructionsView", () => {
vi.stubGlobal("fetch", fetchMock);
render(<AgentInstructionsView />);
const editor = await screen.findByTestId("agent-instructions-editor");
+ await waitFor(() =>
+ expect((editor as HTMLTextAreaElement).value).toBe(STATE.content),
+ );
fireEvent.change(editor, { target: { value: "Changed then regret" } });
fireEvent.click(screen.getByText("Revert changes"));
@@ -125,7 +135,10 @@ describe("AgentInstructionsView", () => {
vi.fn().mockResolvedValue({ ok: true, json: async () => STATE }),
);
render(<AgentInstructionsView />);
- await screen.findByTestId("agent-instructions-editor");
+ const editor = await screen.findByTestId("agent-instructions-editor");
+ await waitFor(() =>
+ expect((editor as HTMLTextAreaElement).value).toBe(STATE.content),
+ );
const save = screen.getByText("Save instructions").closest("button") as HTMLButtonElement;
expect(save.disabled).toBe(true);
});
diff --git a/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx b/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx
index 10085b67ff..5a160dd87b 100644
--- a/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/AgenticIdeView.test.tsx
@@ -84,6 +84,10 @@ vi.mock("@/lib/agenticIdeApi", () => ({
closeWorkspace: vi.fn(),
fetchNativePickerSupport: vi.fn(),
openNativePicker: vi.fn(),
+ syncAgenticIdeSurface: vi.fn(async () => undefined),
+ fetchAllVoiceAttachments: vi.fn(async () => ({ batches: [] })),
+ attachToTerminal: vi.fn(),
+ removeVoiceAttachment: vi.fn(async () => undefined),
// The grid polls this to keep the pane headers current.
fetchTerminalRecaps: vi.fn(async () => ({
workspace_id: null,
diff --git a/jarvis/ui/web/schema.py b/jarvis/ui/web/schema.py
index a2b2388796..4718c99e49 100644
--- a/jarvis/ui/web/schema.py
+++ b/jarvis/ui/web/schema.py
@@ -46,6 +46,13 @@ class WSWelcome(BaseModel):
version: str
+class WSAudioLevel(BaseModel):
+ """Ephemeral normalized microphone level for lightweight UI animation."""
+
+ type: Literal["audio.level"] = "audio.level"
+ input: float = Field(ge=0.0, le=1.0)
+
+
# ----------------------------------------------------------------------
# Incoming (Client → Server)
# ----------------------------------------------------------------------
diff --git a/jarvis/ui/web/server.py b/jarvis/ui/web/server.py
index a37100fc93..903672470e 100644
--- a/jarvis/ui/web/server.py
+++ b/jarvis/ui/web/server.py
@@ -13,8 +13,10 @@ Explicitly NOT here:
from __future__ import annotations
import asyncio
+import math
import os
import time
+from collections.abc import Callable
from pathlib import Path, PurePosixPath
from typing import TYPE_CHECKING, Any
from uuid import uuid4
@@ -47,6 +49,7 @@ from jarvis.terminal import PtyManager, discover_shells, get_shell
from .fast_bootstrap import ASSET_SUFFIXES
from .schema import (
+ WSAudioLevel,
WSCommand,
WSMessageIn,
WSWelcome,
@@ -70,6 +73,9 @@ ASSETS_DIR = DIST_DIR / "assets"
# (BUG-CU-STALL, AP-18). On timeout we drop the client so the bus is not
# re-throttled every event; the browser reconnects on its own.
_WS_SEND_TIMEOUT_S = 3.0
+# Level samples are disposable animation data. If the socket is busy, discard
+# a sample instead of letting a visual update queue behind functional frames.
+_WS_LEVEL_SEND_TIMEOUT_S = 0.25
# How long the UltraWiki pipeline WORKER is held back after boot. Its store is
# opened immediately (reads, search and recall all need it), but the worker
@@ -90,6 +96,12 @@ class WebServer:
self.cfg = cfg
self.bus = bus if bus is not None else get_default_bus()
self._clients: dict[str, WebSocket] = {}
+ self._client_send_locks: dict[str, asyncio.Lock] = {}
+ self._mic_level_sessions: set[str] = set()
+ self._mic_level_unsub: Callable[[], None] | None = None
+ self._mic_level_latest = 0.0
+ self._mic_level_revision = 0
+ self._mic_level_task: asyncio.Task[None] | None = None
self._server: uvicorn.Server | None = None
self._serve_task: asyncio.Task[None] | None = None
# PTY manager for the desktop-app terminal view. Sessions are
@@ -300,6 +312,7 @@ class WebServer:
from jarvis.runs.runs_ws import router as runs_ws_router
from .agent_accounts_routes import router as agent_accounts_router
+ from .agentic_ide_routes import router as agentic_ide_router
from .antigravity_routes import router as antigravity_router
from .board_routes import (
board_router as board_meta_router,
@@ -365,7 +378,6 @@ class WebServer:
from .wiki_ws import router as wiki_ws_router
from .workflows_routes import router as workflows_router
from .workspace_routes import router as workspace_router
- from .agentic_ide_routes import router as agentic_ide_router
# Conductor is an external package in the same monorepo. Import
# defensively — anyone who checks out the repo without conductor would
# otherwise get an ImportError here at server boot.
@@ -1350,18 +1362,18 @@ class WebServer:
async def _handle_ws(self, ws: WebSocket) -> None:
await ws.accept()
session_id = str(uuid4())
+ send_lock = asyncio.Lock()
self._clients[session_id] = ws
+ self._client_send_locks[session_id] = send_lock
welcome = WSWelcome(session_id=session_id, version=__version__)
- send_lock = asyncio.Lock()
-
def _drop_stalled_client() -> None:
"""Detach this WS client so a wedged socket cannot keep blocking
the event bus (AP-18). The receive loop's ``finally`` does the
same cleanup; doing it here too is idempotent and stops the bleed
immediately instead of waiting for the OS TCP timeout."""
- self._clients.pop(session_id, None)
+ self._remove_ws_client(session_id)
try:
self.bus._wildcard_subscribers.remove(_forward) # type: ignore[attr-defined]
except ValueError:
@@ -1401,6 +1413,10 @@ class WebServer:
try:
async with send_lock:
await ws.send_json(welcome.model_dump())
+ # Welcome must remain the first frame. Register this session only
+ # after it has arrived, then lazily tap the already-open native mic.
+ self._mic_level_sessions.add(session_id)
+ self._ensure_mic_level_bridge()
while True:
try:
@@ -1422,22 +1438,29 @@ class WebServer:
)
break
except Exception as exc: # noqa: BLE001
- # Recoverable: a malformed frame from a still-connected
- # client (bad JSON). Notify and keep listening.
+ # A failed receive leaves the socket state uncertain. Treat
+ # every read error as terminal so a dead socket can never
+ # spin in this loop (AP-20).
logger.opt(exception=exc).warning(
- "WS decode error",
+ "WS receive failed; closing connection",
session_id=session_id,
)
- await self.bus.publish(
- ErrorOccurred(
- layer="ui.web.ws",
- error_type=type(exc).__name__,
- message=str(exc),
- recoverable=True,
- source_layer="ui.web.ws",
+ try:
+ await self.bus.publish(
+ ErrorOccurred(
+ layer="ui.web.ws",
+ error_type=type(exc).__name__,
+ message=str(exc),
+ recoverable=False,
+ source_layer="ui.web.ws",
+ )
)
- )
- continue
+ except Exception as publish_exc: # noqa: BLE001
+ logger.opt(exception=publish_exc).warning(
+ "WS receive failure could not be published",
+ session_id=session_id,
+ )
+ break
await self._route_incoming(session_id, raw, send_lock)
@@ -1445,7 +1468,7 @@ class WebServer:
pass
except Exception as exc: # noqa: BLE001
logger.opt(exception=exc).error(
- "WS-Handler abgebrochen",
+ "WS handler aborted",
session_id=session_id,
)
await self.bus.publish(
@@ -1463,11 +1486,112 @@ class WebServer:
self.bus._wildcard_subscribers.remove(_forward) # type: ignore[attr-defined]
except ValueError:
pass
- self._clients.pop(session_id, None)
+ self._remove_ws_client(session_id)
try:
await ws.close()
- except Exception: # noqa: BLE001
- pass
+ except Exception as exc: # noqa: BLE001
+ logger.opt(exception=exc).debug(
+ "WebSocket was already closed", session_id=session_id
+ )
+
+ def _ensure_mic_level_bridge(self) -> None:
+ """Tap the existing microphone stream while a web UI is connected."""
+ if self._mic_level_unsub is not None or not self._mic_level_sessions:
+ return
+
+ # Lazy import keeps audio modules off the web server's startup path.
+ from jarvis.audio import mic_level
+
+ loop = asyncio.get_running_loop()
+
+ def _receive(level: float) -> None:
+ try:
+ loop.call_soon_threadsafe(self._queue_mic_level, float(level))
+ except RuntimeError as exc:
+ # Shutdown can close the event loop between the audio callback
+ # and this handoff. The subscriber is removed during teardown.
+ logger.opt(exception=exc).debug("Microphone level loop is closed")
+
+ self._mic_level_unsub = mic_level.subscribe(_receive)
+
+ def _stop_mic_level_bridge(self) -> None:
+ unsubscribe = self._mic_level_unsub
+ self._mic_level_unsub = None
+ self._mic_level_latest = 0.0
+ self._mic_level_revision += 1
+ if unsubscribe is not None:
+ unsubscribe()
+
+ task = self._mic_level_task
+ if task is not None and task is not asyncio.current_task() and not task.done():
+ task.cancel()
+ self._mic_level_task = None
+
+ def _remove_ws_client(self, session_id: str) -> WebSocket | None:
+ ws = self._clients.pop(session_id, None)
+ self._client_send_locks.pop(session_id, None)
+ self._mic_level_sessions.discard(session_id)
+ if not self._mic_level_sessions:
+ self._stop_mic_level_bridge()
+ return ws
+
+ def _queue_mic_level(self, level: float) -> None:
+ """Coalesce audio-thread samples into at most one pending send task."""
+ if not self._mic_level_sessions:
+ return
+ self._mic_level_latest = min(1.0, max(0.0, level)) if math.isfinite(level) else 0.0
+ self._mic_level_revision += 1
+ if self._mic_level_task is None or self._mic_level_task.done():
+ self._mic_level_task = asyncio.create_task(self._drain_mic_levels())
+
+ async def _drain_mic_levels(self) -> None:
+ """Send only the freshest level; functional WS traffic has priority."""
+ sent_revision = -1
+ try:
+ while self._mic_level_sessions and sent_revision != self._mic_level_revision:
+ sent_revision = self._mic_level_revision
+ frame = WSAudioLevel(input=self._mic_level_latest).model_dump()
+ await asyncio.gather(
+ *(
+ self._send_mic_level(session_id, frame)
+ for session_id in tuple(self._mic_level_sessions)
+ )
+ )
+ finally:
+ if self._mic_level_task is asyncio.current_task():
+ self._mic_level_task = None
+
+ async def _send_mic_level(self, session_id: str, frame: dict[str, Any]) -> None:
+ ws = self._clients.get(session_id)
+ send_lock = self._client_send_locks.get(session_id)
+ if ws is None or send_lock is None:
+ return
+
+ async def _send() -> None:
+ async with send_lock:
+ if self._clients.get(session_id) is ws:
+ await ws.send_json(frame)
+
+ try:
+ await asyncio.wait_for(_send(), timeout=_WS_LEVEL_SEND_TIMEOUT_S)
+ except TimeoutError:
+ # This sample is already stale; the next one will replace it.
+ return
+ except WebSocketDisconnect:
+ self._remove_ws_client(session_id)
+ except Exception as exc: # noqa: BLE001
+ logger.opt(exception=exc).debug(
+ "Microphone level send failed", session_id=session_id
+ )
+ stale_ws = self._remove_ws_client(session_id)
+ if stale_ws is not None:
+ try:
+ await stale_ws.close()
+ except Exception as close_exc: # noqa: BLE001
+ logger.opt(exception=close_exc).debug(
+ "Microphone level socket close failed",
+ session_id=session_id,
+ )
async def _route_incoming(
self,
@@ -2417,7 +2541,8 @@ class WebServer:
from jarvis.missions.init import bootstrap_missions
data_dir = Path(self.cfg.memory.data_dir)
- data_dir.mkdir(parents=True, exist_ok=True)
+ # Startup wiring runs before this stack accepts work.
+ data_dir.mkdir(parents=True, exist_ok=True) # noqa: ASYNC240
db_path = data_dir / "missions.db"
# Isolation root: <repo_parent>/jarvis-agent-outputs/ (preferred; falls back
@@ -2890,7 +3015,8 @@ class WebServer:
from jarvis.tasks.store import TaskStore
data_dir = Path(self.cfg.memory.data_dir)
- data_dir.mkdir(parents=True, exist_ok=True)
+ # Startup wiring runs before this stack accepts work.
+ data_dir.mkdir(parents=True, exist_ok=True) # noqa: ASYNC240
# Tasks share the DB with memory (ADR-0003) — an additive schema.
db_path = data_dir / "jarvis.db"
@@ -2900,7 +3026,10 @@ class WebServer:
# Crash recovery: all running -> interrupted, plus an error log entry.
recovered = await store.cleanup_interrupted()
if recovered:
- logger.info("TaskStack: cleaned up {} interrupted tasks from the previous run", recovered)
+ logger.info(
+ "TaskStack: cleaned up {} interrupted tasks from the previous run",
+ recovered,
+ )
# Wire the brain so agentic (`agent`) tasks can run a tool-restricted
# turn unattended. app.state.brain is set before server.start() (see
@@ -3036,7 +3165,7 @@ class WebServer:
mem_dir = getattr(self.cfg, "memory", None)
if mem_dir is not None and getattr(mem_dir, "data_dir", None):
data_dir = Path(mem_dir.data_dir)
- except Exception: # noqa: BLE001
+ except Exception: # noqa: BLE001, S110 — portable data-dir fallback
pass
data_dir.mkdir(parents=True, exist_ok=True)
friends_db = data_dir / "friends.db"
@@ -3077,6 +3206,9 @@ class WebServer:
)
async def stop(self) -> None:
+ self._mic_level_sessions.clear()
+ self._stop_mic_level_bridge()
+
# Stop token refresh before the plugin registry so an in-flight refresh
# cannot enqueue a live-session rebuild while that registry is closing.
await self._stop_marketplace_refresh_scheduler()
diff --git a/jarvis/ui/web/settings_routes.py b/jarvis/ui/web/settings_routes.py
index 352992eb42..9dff38598b 100644
--- a/jarvis/ui/web/settings_routes.py
+++ b/jarvis/ui/web/settings_routes.py
@@ -181,8 +181,8 @@ class VoiceModeBody(BaseModel):
def _realtime_provider_display(
cfg: object, provider_id: str | None
-) -> tuple[str | None, str | None]:
- """(label, model) the sidebar shows for the resolved realtime provider.
+) -> tuple[str | None, str | None, str | None]:
+ """Provider label plus model id/label for the resolved realtime provider.
The label comes from the provider registry; the model is the pin in
``[brain.providers.<id>].model``, resolved to the curated catalog's default
@@ -191,7 +191,7 @@ def _realtime_provider_display(
failure degrades to ``None`` rather than breaking the status endpoint.
"""
if not provider_id:
- return None, None
+ return None, None, None
label: str | None = None
try:
from jarvis.ui.web.provider_spec import get_spec
@@ -213,7 +213,22 @@ def _realtime_provider_display(
model = model or None
except Exception: # noqa: BLE001 — model is cosmetic, never fatal
model = None
- return label, model
+ return label, model, _realtime_model_label(provider_id, model)
+
+
+def _realtime_model_label(provider_id: str | None, model: str | None) -> str | None:
+ """Return a curated display label while preserving unknown future ids."""
+ if not provider_id or not model:
+ return None
+ try:
+ from jarvis.brain.model_catalog import REALTIME_MODELS
+
+ for entry in REALTIME_MODELS.get(provider_id) or ():
+ if entry.id == model:
+ return entry.label
+ except Exception: # noqa: BLE001 — display cosmetics must never break status
+ log.debug("Realtime model label lookup failed", exc_info=True)
+ return model
@router.get("/voice-mode")
@@ -244,10 +259,12 @@ async def get_voice_mode(request: Request) -> dict[str, object]:
else "Waiting for the embedded desktop WebRTC offer."
)
)
- prov_label, prov_model = _realtime_provider_display(cfg, prov)
+ prov_label, prov_model, prov_model_label = _realtime_provider_display(cfg, prov)
from jarvis.ui.web.voice_runtime import voice_engine_status
runtime = voice_engine_status(request)
+ session_provider = str(runtime.get("active_session_provider", "") or "")
+ session_model = str(runtime.get("active_session_model", "") or "")
return {
"mode": mode,
"realtime_available": prov is not None,
@@ -261,12 +278,14 @@ async def get_voice_mode(request: Request) -> dict[str, object]:
# active_session_* fields below.
"active_provider_label": prov_label,
"active_model": prov_model,
+ "active_model_label": prov_model_label,
"session_active": bool(runtime.get("session_active", False)),
"active_session_mode": runtime.get("active_session_mode"),
- "active_session_provider": str(
- runtime.get("active_session_provider", "") or ""
+ "active_session_provider": session_provider,
+ "active_session_model": session_model,
+ "active_session_model_label": _realtime_model_label(
+ session_provider, session_model
),
- "active_session_model": str(runtime.get("active_session_model", "") or ""),
"transitioning": bool(runtime.get("transitioning", False)),
}
diff --git a/pyproject.toml b/pyproject.toml
index da17ddf924..ad74bd50d7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "personal-jarvis"
-version = "1.2.0"
+version = "1.2.2"
description = "Voice-driven meta-orchestrator that turns one spoken request into a fleet of self-checking AI agents"
requires-python = ">=3.11,<3.15"
readme = "README.md"
@@ -75,9 +75,14 @@ dependencies = [
# ChatGPT-Live (Codex subscription voice) carries audio ONLY on a WebRTC
# media track — its protocol has no audio event at all. Jarvis owns that
# peer in-process so the existing pipeline (wake word, echo guard,
- # barge-in, Orb) keeps working; without aiortc that ONE provider degrades
- # with an honest message while every other voice path is unaffected.
- "aiortc>=1.13",
+ # barge-in, Orb) keeps working. Upstream has no compiler-free Windows ARM64
+ # dependency chain, so that cell uses the existing honest unavailable state
+ # while every other voice path remains available.
+ "aiortc>=1.13; sys_platform != 'win32' or platform_machine != 'ARM64'",
+ # aiortc's broad PyAV range otherwise resolves a release without Apple-
+ # Silicon wheels. 15.1 is inside its supported range and carries the full
+ # CPython 3.11-3.14 macOS ARM64 wheel matrix.
+ "av==15.1.0; sys_platform == 'darwin' and platform_machine == 'arm64'",
# NumPy 2.1 is the conservative runtime branch everywhere it ships. Its
# Windows ARM64 wheel gap is permanent, though, so that architecture uses
# the first compatible branch with official CPython 3.11+ ARM64 wheels.
diff --git a/requirements.in b/requirements.in
index 14ca516a42..de2efcbedb 100644
--- a/requirements.in
+++ b/requirements.in
@@ -50,7 +50,11 @@ keyring>=25.5
# Audio I/O
sounddevice>=0.5
-aiortc>=1.13
+# Upstream's native dependencies do not publish Windows ARM64 wheels. The
+# WebRTC transport capability-probes this dependency and degrades honestly.
+aiortc>=1.13; sys_platform != 'win32' or platform_machine != 'ARM64'
+# Keep aiortc on the Apple-Silicon PyAV line with CPython 3.11-3.14 wheels.
+av==15.1.0; sys_platform == 'darwin' and platform_machine == 'arm64'
# NumPy 2.1 has no Windows ARM64 wheels. Use the first official ARM64-wheel
# branch there so a stock machine never falls into an unavailable native build.
numpy>=1.26,<2.2; python_version < '3.14' and (sys_platform != 'win32' or platform_machine != 'ARM64')
diff --git a/requirements.txt b/requirements.txt
index 11fd56fca0..4e77050004 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,7 +4,7 @@ aiofiles==25.1.0 \
--hash=sha256:a8d728f0a29de45dc521f18f07297428d56992a742f0cd2701ba86e44d23d5b2 \
--hash=sha256:abe311e527c862958650f9438e859c1fa7568a141b22abcd015e120e86a85695
# via -r requirements.in
-aioice==0.10.2 \
+aioice==0.10.2 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:14911c15ab12d096dd14d372ebb4aecbb7420b52c9b76fdfcf54375dec17fcbf \
--hash=sha256:bf236c6829ee33c8e540535d31cd5a066b531cb56de2be94c46be76d68b1a806
# via aiortc
@@ -12,7 +12,7 @@ aiolimiter==1.2.1 \
--hash=sha256:d3f249e9059a20badcb56b61601a83556133655c11d1eb3dd3e04ff069e5f3c7 \
--hash=sha256:e02a37ea1a855d9e832252a105420ad4d15011505512a1a1d814647451b5cca9
# via -r requirements.in
-aiortc==1.15.0 \
+aiortc==1.15.0 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:4e1e54bff31a9c2cb654c7b7edc068085a7df53365e5df24a5cb24168e3f95f7 \
--hash=sha256:ee6c0757ca070cf6d6bee441936d6ede24eef51211bbff6653409c540f72e625
# via -r requirements.in
@@ -102,7 +102,61 @@ audioop-lts==0.2.2 ; python_full_version >= '3.13' \
--hash=sha256:fbdd522624141e40948ab3e8cdae6e04c748d78710e9f0f8d4dae2750831de19 \
--hash=sha256:fd3d4602dc64914d462924a08c1a9816435a2155d74f325853c1f1ac3b2d9800
# via -r requirements.in
-av==17.1.0 \
+av==15.1.0 ; (python_full_version >= '3.14' and platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine == 'arm64' and sys_platform == 'darwin') \
+ --hash=sha256:07a8ae30c0cfc3132eff320a6b27d18a5e0dda36effd0ae28892888f4ee14729 \
+ --hash=sha256:08eac47a90ebae1e2bd5935f400dd515166019bab4ff5b03c4625fa6ac3a0a5e \
+ --hash=sha256:11326f197e7001c4ca53a83b2dbc67fd39ddff8cdf62ce6be3b22d9f3f9338bd \
+ --hash=sha256:26426163d96fc3bde9a015ba4d60da09ef848d9284fe79b4ca5e60965a008fc5 \
+ --hash=sha256:2b9623ae848625c59213b610c8665817924f913580c7c5c91e0dc18936deb00d \
+ --hash=sha256:2f77853c3119c59d1bff4214ccbe46e3133eccff85ed96adee51c68684443f4e \
+ --hash=sha256:2f80ec387f04aa34868662b11018b5f09654ae1530a61e24e92a142a24b10b62 \
+ --hash=sha256:315915f6fef9f9f4935153aed8a81df56690da20f4426ee5b9fa55b4dae4bc0b \
+ --hash=sha256:37839d4fa1407f047af82560dfc0f94d8d6266071eff49e1cbe16c4483054621 \
+ --hash=sha256:39cda2dc810e11c1938f8cb5759c41d6b630550236b3365790e67a313660ec85 \
+ --hash=sha256:406fc29103865f17de0f684c5fb2e3d2e43e15c1fa65fcc488f65d20c7a7c7f3 \
+ --hash=sha256:40c5df37f4c354ab8190c6fd68dab7881d112f527906f64ca73da4c252a58cee \
+ --hash=sha256:46875a57562a72d9b11b4b222628eaf7e5b1a723c4225c869c66d5704634c1d1 \
+ --hash=sha256:4975e03177d37d8165c99c8d494175675ba8acb72458fb5d7e43f746a53e0374 \
+ --hash=sha256:4a2a52a56cd8c6a8f0f005d29c3a0ebc1822d31b0d0f39990c4c8e3a69d6c96e \
+ --hash=sha256:4abdf085bfa4eec318efccff567831b361ea56c045cc38366811552e3127c665 \
+ --hash=sha256:53fbdae45aa2a49a22e864ff4f4017416ef62c060a172085d3247ba0a101104e \
+ --hash=sha256:57b99544d91121b8bea570e4ddf61700f679a6b677c1f37966bc1a22e1d4cd5c \
+ --hash=sha256:57cc7a733a7e7d7a153682f35c9cf5d01e8269367b049c954779de36fc3d0b10 \
+ --hash=sha256:5dd73c6447947edcb82e5fecf96e1f146aeda0f169c7ad4c54df4d9f66f63fde \
+ --hash=sha256:5f895315ecfe5821a4a3a178cbbe7f62e6a73ae1f726138bef5bb153b2885ed8 \
+ --hash=sha256:60666833d7e65ebcfc48034a072de74349edbb62c9aaa3e6722fef31ca028eb6 \
+ --hash=sha256:659f9d6145fb2c58e8b31907283b6ba876570f5dd6e7e890d74c09614c436c8e \
+ --hash=sha256:729179cd8622815e8b6f6854d13a806fe710576e08895c77e5e4ad254609de9a \
+ --hash=sha256:7d7804a44c8048bb4b014a99353dd124663a12cd1d4613ba2bd3b457c3b1d539 \
+ --hash=sha256:86226d2474c80c3393fa07a9c366106029ae500716098b72b3ec3f67205524c3 \
+ --hash=sha256:8a7bf5a34dee15c86790414fa86a144e6d0dcc788bc83b565fdcbc080b4fbc90 \
+ --hash=sha256:8f383949b010c3e731c245f80351d19dc0c08f345e194fc46becb1cb279be3ff \
+ --hash=sha256:8f78f3dad11780b4cdd024cdb92ce43cb170929297c00f2f4555c2b103f51e55 \
+ --hash=sha256:92f524541ce74b8a12491d8934164a5c57e983da24826547c212f60123de400b \
+ --hash=sha256:9a0c1840959e1742dcd7fa4f7e9b80eea298049542f233e98d6d7a9441ed292c \
+ --hash=sha256:9a20c5eba3ec49c2f4b281797021923fc68a86aeb66c5cda4fd0252fa8004951 \
+ --hash=sha256:9c7131494a3a318612b4ee4db98fe5bc50eb705f6b6536127c7ab776c524fd8b \
+ --hash=sha256:a631ea879cc553080ee62874f4284765c42ba08ee0279851a98a85e2ceb3cc8d \
+ --hash=sha256:a77b75bdb6899a64302ff923a5246e0747b3f0a3ecee7d61118db407a22c3f53 \
+ --hash=sha256:a81cd515934a5d51290aa66b059b7ed29c4a212e704f3c5e99e32877ff1c312c \
+ --hash=sha256:aa4bf12bdce20edc2a3b13a2776c474c5ab63e1817d53793714504476eeba82e \
+ --hash=sha256:af455ce65ada3d361f80c90c810d9bced4db5655ab9aa513024d6c71c5c476d5 \
+ --hash=sha256:b785948762a8d45fc58fc24a20251496829ace1817e9a7a508a348d6de2182c3 \
+ --hash=sha256:c0bc4471c156a0a1c70a607502434f477bc8dfe085eef905e55b4b0d66bcd3a5 \
+ --hash=sha256:c8ef597087db560514617143532b1fafc4825ebb2dda9a22418f548b113a0cc7 \
+ --hash=sha256:cf067b66cee2248220b29df33b60eb4840d9e7b9b75545d6b922f9c41d88c4ee \
+ --hash=sha256:d0a1154ce081f1720082a133cfe12356c59f62dad2b93a7a1844bf1dcd010d85 \
+ --hash=sha256:d3f66ff200ea166e606cb3c5cb1bd2fc714effbec2e262a5d67ce60450c8234a \
+ --hash=sha256:d5921aa45f4c1f8c1a8d8185eb347e02aa4c3071278a2e2dd56368d54433d643 \
+ --hash=sha256:e30c9a6fd9734784941384a2e25fad3c22881a7682f378914676aa7e795acdb7 \
+ --hash=sha256:e33a76e38f03bb5de026b9f66ccf23dc01ddd2223221096992cb52ac22e62538 \
+ --hash=sha256:e6c51061667983dc801502aff9140bbc4f0e0d97f879586f17fb2f9a7e49c381 \
+ --hash=sha256:f985661644879e4520d28a995fcb2afeb951bc15a1d51412eb8e5f36da85b6fe \
+ --hash=sha256:fe07cf7de162acc09d021e02154b1f760bca742c62609ec0ae586a6a1e0579ac
+ # via
+ # -r requirements.in
+ # aiortc
+av==17.1.0 ; (python_full_version < '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (platform_machine == 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32') \
--hash=sha256:1284addf3c0dd939887a9722dc30df2241a97471ad52c3c507e31583ae22ff02 \
--hash=sha256:1370b11a697eb3f2555906f8ab3519b0cfe48425d7830a3996ad42e6bffafda5 \
--hash=sha256:19264c9bb4bee404accc7ce9ec461f2044b7f577a70234d29aafde31ed17de46 \
@@ -133,7 +187,9 @@ av==17.1.0 \
--hash=sha256:fa64e1f1500d01c4a98e7a41dc1a9a35fb4dfe71f5de0389264ec1192200c76a \
--hash=sha256:ff457ed419348e5b8e8c811d341389b052c5e4d5839da3794d019b125b9fe830 \
--hash=sha256:ffbd78d73d2c9bf31e9a007c992faec3991428b2941a3b085b84fb82e8c32d19
- # via aiortc
+ # via
+ # -r requirements.in
+ # aiortc
backports-tarfile==1.2.0 ; python_full_version < '3.12' \
--hash=sha256:77e284d754527b01fb1e6fa8a1afe577858ebe4e9dad8919e34c862cb399bc34 \
--hash=sha256:d75e02c268746e1b8144c278978b6e98e85de6ad16f8e4b0844a154557eca991
@@ -446,10 +502,8 @@ cryptography==46.0.3 ; platform_machine == 'ARM64' and sys_platform == 'win32' \
--hash=sha256:f260d0d41e9b4da1ed1e0f1ce571f97fe370b152ab18778e9e8f67d6af432018
# via
# -r requirements.in
- # aiortc
# google-auth
# pyjwt
- # pyopenssl
cryptography==48.0.1 ; platform_machine == 'x86_64' and sys_platform == 'darwin' \
--hash=sha256:08a597acce1ff37f347400087776599e2348a3a8bc53b44120e463cd274efe4a \
--hash=sha256:09f73a725d582cef64b91281a322cd798d14a33b2b6f2b7ad9531dc336d84c02 \
@@ -571,7 +625,7 @@ distro==1.9.0 \
# anthropic
# google-genai
# openai
-dnspython==2.8.0 \
+dnspython==2.8.0 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af \
--hash=sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f
# via aioice
@@ -609,7 +663,7 @@ google-auth==2.55.1 \
--hash=sha256:eada68dfd52b3b81191827601e2a0c3fa12540c818534b630ddc5355769c3995 \
--hash=sha256:fb2d9b730f2c9b8d326ec8d7222f21aef2ead15bf0513793d6442485d87af0a1
# via google-genai
-google-crc32c==1.8.0 \
+google-crc32c==1.8.0 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:014a7e68d623e9a4222d663931febc3033c5c7c9730785727de2a81f87d5bab8 \
--hash=sha256:01f126a5cfddc378290de52095e2c7052be2ba7656a9f0caf4bcd1bfb1833f8a \
--hash=sha256:0470b8c3d73b5f4e3300165498e4cf25221c7eb37f1159e221d1825b6df8a7ff \
@@ -690,7 +744,7 @@ idna==3.18 \
# anyio
# httpx
# requests
-ifaddr==0.2.0 \
+ifaddr==0.2.0 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:085e0305cfe6f16ab12d72e2024030f5d52674afad6911bb1eee207177b8a748 \
--hash=sha256:cc0cbfcaabf765d44595825fb96a99bb12c79716b73b44330ea38ee2b0c4aed4
# via aioice
@@ -1656,7 +1710,7 @@ pydantic-settings==2.14.2 \
# via
# -r requirements.in
# mcp
-pyee==13.0.1 \
+pyee==13.0.1 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8 \
--hash=sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228
# via aiortc
@@ -1668,7 +1722,7 @@ pyjwt==2.13.0 \
--hash=sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423 \
--hash=sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728
# via mcp
-pylibsrtp==1.0.0 \
+pylibsrtp==1.0.0 ; platform_machine != 'ARM64' or sys_platform != 'win32' \
--hash=sha256:2696bdb2180d53ac55d0eb7b58048a2aa30cd4836dd2ca683669889137a94d2a \
--hash=sha256:293c9f2ac21a2bd689c477603a1aa235d85cf252160e6715f0101e42a43cbedc \
--hash=sha256:4ddb562e443cf2e557ea2dfaeef0d7e6b90e96dd38eb079b4ab2c8e34a79f50b \
@@ -1682,7 +1736,7 @@ pylibsrtp==1.0.0 \
--hash=sha256:c134fa09e7b80a5b7fed626230c5bc257fd771bd6978e754343e7a61d96bc7e6 \
--hash=sha256:f02e616c9dfab2b03b32d8cc7b748f9d91814c0211086f987629a60f05f6e2cc
# via aiortc
-pyopenssl==26.2.0 ; (platform_machine == 'x86_64' and sys_platform == 'darwin') or (platform_machine == 'ARM64' and sys_platform == 'win32') \
+pyopenssl==26.2.0 ; platform_machine == 'x86_64' and sys_platform == 'darwin' \
--hash=sha256:4f9d971bc5298b8bc1fab282803da04bf000c755d4ad9d99b52de2569ca19a70 \
--hash=sha256:8c6fcecd1183a7fc897548dfe388b0cdb7f37e018200d8409cf33959dbe35387
# via aiortc
diff --git a/scripts/ci/check_danger_metadata.py b/scripts/ci/check_danger_metadata.py
index 9af89a552f..ec80a49d0f 100644
--- a/scripts/ci/check_danger_metadata.py
+++ b/scripts/ci/check_danger_metadata.py
@@ -30,7 +30,6 @@ _WEB = _REPO / "jarvis" / "ui" / "web"
# Copy of jarvis.cli_ctl.safety._DANGEROUS_MARKERS — parity-tested, see above.
DANGEROUS_MARKERS: tuple[str, ...] = (
"/restart",
- "/call",
"/outbound",
"/dispatch",
"/rerun",
diff --git a/scripts/config-soll.json b/scripts/config-soll.json
index 66ae36ad28..dc6313c5c7 100644
--- a/scripts/config-soll.json
+++ b/scripts/config-soll.json
@@ -8,8 +8,8 @@
"tts": {
"provider": "grok-voice",
"fallback": "grok-voice",
- "voice_de": "leo",
- "voice_en": "leo",
+ "voice_de": "Kore",
+ "voice_en": "Kore",
"language_code": "auto",
"chunk_by_sentence": false,
"seed": 7,
@@ -65,7 +65,7 @@
},
"stt": {
"provider": "groq-api",
- "model": "large-v3",
+ "model": "whisper-large-v3",
"bias_prompt": "Jarvis, OpenClaw, Codex, Gemini, Grok, Claude, Anthropic, OpenAI, OpenRouter, Whisper, Subagent, Sub-Agent, Mission-Manager, Critic-Loop, Critic, Worker, Router-Brain, Router, Kontrollierer, Voice-Pipeline, Wake-Word, Silero, VAD, TTS, STT, Telemetry, Transkript, Token, Provider, Plugin, Sprechblase, Orb, Mascot, Quip, Browser, Terminal, Repository, Branch, Commit, Push, Pull-Request, Issue, Merge, Refactor, Deployment, Screenshot, Debuggen, Workflow, Microservice, Container, Docker, Kubernetes, FastAPI, React, TypeScript, Python, JSON, Markdown, Logfile, Konfiguration, Endpoint, Webhook, API-Key, Service-Account, Cloud, Google Cloud, Vertex AI, BigQuery, GitHub, Twilio, ElevenLabs, OAuth, Credential Manager, Frontend, Backend, Skript, Daemon, Hangup, Auflegen, Denkpause, submitted, distanziert, erkennt",
"language": "auto",
"models": {
diff --git a/tests/contract/test_ack_provider_protocol.py b/tests/contract/test_ack_provider_protocol.py
index ac1b853d56..b8270a46eb 100644
--- a/tests/contract/test_ack_provider_protocol.py
+++ b/tests/contract/test_ack_provider_protocol.py
@@ -27,6 +27,7 @@ from typing import Any
import pytest
from jarvis.brain.ack_brain.config import (
+ SUPPORTED_PROVIDERS,
GeminiAckProviderConfig,
GrokAckProviderConfig,
OllamaAckProviderConfig,
@@ -348,6 +349,12 @@ def test_registry_contains_all_known_adapter_classes() -> None:
assert set(REGISTRY.values()) == expected
+def test_supported_provider_names_match_registry() -> None:
+ """Config documentation and runtime registration must not drift again."""
+
+ assert set(SUPPORTED_PROVIDERS) - {"follow_brain"} == set(REGISTRY)
+
+
# ---------------------------------------------------------------------------
# Case 2: Empty utterance never raises
# ---------------------------------------------------------------------------
diff --git a/tests/integration/test_websocket_echo.py b/tests/integration/test_websocket_echo.py
index 0258bdcee8..5338ed28f0 100644
--- a/tests/integration/test_websocket_echo.py
+++ b/tests/integration/test_websocket_echo.py
@@ -13,6 +13,7 @@ import time
import pytest
from fastapi.testclient import TestClient
+from jarvis.audio import mic_level
from jarvis.core.bus import EventBus
from jarvis.core.config import JarvisConfig
from jarvis.core.events import ErrorOccurred, SystemStarted
@@ -61,7 +62,7 @@ def test_bus_event_forwarded_as_envelope(web_server: WebServer) -> None:
assert "timestamp_ns" in frame
assert "payload" in frame
assert frame["payload"]["version"]
- assert elapsed_ms < 500, f"Latenz {elapsed_ms:.1f}ms ≥ 500ms"
+ assert elapsed_ms < 500, f"Latency {elapsed_ms:.1f}ms >= 500ms"
def test_direct_bus_publish_reaches_client(web_server: WebServer) -> None:
@@ -103,7 +104,24 @@ def test_ping_command_returns_pong(web_server: WebServer) -> None:
ws.send_json({"type": "command", "action": "ping", "payload": {"n": 42}})
frame = ws.receive_json()
assert frame["type"] == "pong"
- assert frame["payload"] == {"n": 42}
+ assert frame["payload"] == {"n": 42}
+
+
+def test_native_microphone_level_reaches_web_client(web_server: WebServer) -> None:
+ had_subscribers = mic_level.has_subscribers()
+ with TestClient(web_server.app) as client:
+ with client.websocket_connect("/ws") as ws:
+ _receive_welcome(ws)
+ assert mic_level.has_subscribers()
+
+ mic_level.feed(0.1)
+ frame = ws.receive_json()
+
+ assert frame["type"] == "audio.level"
+ assert 0.0 < frame["input"] <= 1.0
+
+ if not had_subscribers:
+ assert not mic_level.has_subscribers()
def test_invalid_frame_publishes_error_event(web_server: WebServer) -> None:
diff --git a/tests/unit/agentic_ide/test_account_spawn.py b/tests/unit/agentic_ide/test_account_spawn.py
index cd7420d951..397070e742 100644
--- a/tests/unit/agentic_ide/test_account_spawn.py
+++ b/tests/unit/agentic_ide/test_account_spawn.py
@@ -13,6 +13,8 @@ prevents that, and it is pinned down here.
from __future__ import annotations
+import asyncio
+import threading
from pathlib import Path
import pytest
@@ -411,6 +413,54 @@ async def test_the_trust_seeding_and_the_setup_run_under_one_lock(
assert events.index("lock") < events.index("trust:account")
+async def test_same_account_setup_waiters_do_not_fill_the_default_executor(
+ registry: Registry, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+) -> None:
+ """Only the async gate owner may enter blocking account preparation."""
+ second = agent_accounts.create_account("claude", "Second seat")
+ await registry.start(
+ str(tmp_path),
+ [
+ {"agent": "claude", "account": second.id},
+ {"agent": "claude", "account": second.id},
+ ],
+ )
+ real_prepare = registry._prepare_spawn
+ release = threading.Event()
+ entered = threading.Event()
+ counter_lock = threading.Lock()
+ active = 0
+ peak = 0
+
+ def _blocking_prepare(*args: object) -> dict[str, str] | None:
+ nonlocal active, peak
+ with counter_lock:
+ active += 1
+ peak = max(peak, active)
+ entered.set()
+ try:
+ release.wait(timeout=2.0)
+ return real_prepare(*args) # type: ignore[arg-type]
+ finally:
+ with counter_lock:
+ active -= 1
+
+ monkeypatch.setattr(registry, "_prepare_spawn", _blocking_prepare)
+ tasks = [
+ asyncio.create_task(_attach(registry, term.name))
+ for term in registry.session.terminals
+ ]
+ for _ in range(100):
+ if entered.is_set():
+ break
+ await asyncio.sleep(0.01)
+ assert entered.is_set()
+ await asyncio.sleep(0.05)
+ assert peak == 1
+ release.set()
+ await asyncio.gather(*tasks)
+
+
async def test_a_pane_on_the_builtin_login_is_not_pre_trusted_twice(
registry: Registry, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
) -> None:
diff --git a/tests/unit/agentic_ide/test_spawn_intent.py b/tests/unit/agentic_ide/test_spawn_intent.py
index 636356507f..1a6b8abe2e 100644
--- a/tests/unit/agentic_ide/test_spawn_intent.py
+++ b/tests/unit/agentic_ide/test_spawn_intent.py
@@ -33,7 +33,11 @@ NAMES = ["Alex", "Blake", "Casey", "Dana"]
# The maintainer's own phrasings (voice request 2026-07-25).
("Spawne 5 neue Terminals", 5, None), # i18n-allow: spoken input under test
("Spawne 5 neue Claude Code Terminals", 5, "claude"), # i18n-allow: spoken input under test
- ("Spawne fünf neue Claude Code Terminals", 5, "claude"), # i18n-allow: spoken input under test
+ (
+ "Spawne fünf neue Claude Code Terminals", # i18n-allow: spoken input under test
+ 5,
+ "claude",
+ ),
# Number words, all three locales.
("Öffne drei Codex Terminals", 3, "codex"), # i18n-allow: spoken input under test
("Open two Codex terminals", 2, "codex"),
@@ -112,6 +116,49 @@ def test_non_requests_are_left_alone(utterance: str) -> None:
assert intent.detect_spawn(utterance) is None, utterance
+def test_live_browser_shortcut_question_stays_a_normal_conversation() -> None:
+ """A browser-tab question must never open a coding pane.
+
+ The live Realtime transcript started with a prepositional question, so the
+ old question guard missed it. ``tab`` plus the open verb then claimed the
+ turn as an Agentic IDE action and answered that T7 was open instead of
+ answering the shortcut question.
+ """
+ utterance = (
+ "Mit welcher Tastenkombination kann ich in meinem Chrome Browser einen "
+ "neuen Tab öffnen, wo meine Konfigurationen noch nicht da sind"
+ ) # i18n-allow: production transcript under test
+
+ assert intent.detect_spawn(utterance, names=NAMES) is None
+ assert intent.owns_turn(utterance, names=NAMES) is False
+
+
+ "utterance",
+ [
+ "Kann ich noch drei Terminals öffnen?", # i18n-allow: fixture
+ "With which shortcut can I open a browser tab?",
+ "Can I open three more terminals?",
+ "¿Puedo abrir tres terminales?",
+ ],
+)
+def test_information_questions_never_open_panes(utterance: str) -> None:
+ assert intent.detect_spawn(utterance, names=NAMES) is None
+ assert intent.owns_turn(utterance, names=NAMES) is False
+
+
+ "utterance",
+ [
+ "Öffne einen neuen Tab in Chrome", # i18n-allow: spoken input under test
+ "Open a new browser tab",
+ ],
+)
+def test_browser_tab_commands_never_open_coding_panes(utterance: str) -> None:
+ assert intent.detect_spawn(utterance, names=NAMES) is None
+ assert intent.owns_turn(utterance, names=NAMES) is False
+
+
def test_workspace_owns_a_terminal_spawn_even_though_it_names_the_vehicle() -> None:
"""The precedence both routing gates read.
@@ -120,15 +167,17 @@ def test_workspace_owns_a_terminal_spawn_even_though_it_names_the_vehicle() -> N
delegation marker, so returning True here is the entire fix — neither gate
needs its own copy of this rule, and the two cannot drift apart.
"""
- assert intent.owns_turn("Spawne 5 neue Terminals", names=NAMES) is True # i18n-allow: spoken input under test
+ utterance = "Spawne 5 neue Terminals" # i18n-allow: spoken input under test
+ assert intent.owns_turn(utterance, names=NAMES) is True
assert intent.owns_turn("Open three more Claude Code terminals", names=NAMES) is True
# Without a workspace open (no call-signs) it STILL owns the turn: the
# feature opens a session in the recent folder, so a background mission
# would be just as wrong there.
- assert intent.owns_turn("Spawne 5 neue Terminals", names=[]) is True # i18n-allow: spoken input under test
+ assert intent.owns_turn(utterance, names=[]) is True
# And the unchanged half: naming the vehicle without naming terminals still
# belongs to the background-agent path.
- assert intent.owns_turn("Spawne einen Agenten", names=NAMES) is False # i18n-allow: spoken input under test
+ background = "Spawne einen Agenten" # i18n-allow: spoken input under test
+ assert intent.owns_turn(background, names=NAMES) is False
# --------------------------------------------------------------------------- #
@@ -347,7 +396,9 @@ def test_follow_up_about_existing_terminals_does_not_spawn_worker_count() -> Non
def test_close_all_codex_terminals_is_a_workspace_intent() -> None:
- utterance = "Kannst du bitte alle Codex Terminals schließen?" # i18n-allow: production transcript under test
+ utterance = ( # i18n-allow: production transcript under test
+ "Kannst du bitte alle Codex Terminals schließen?"
+ )
found = intent.detect_close_fleet(utterance)
diff --git a/tests/unit/brain/test_ack_brain/test_config_provider.py b/tests/unit/brain/test_ack_brain/test_config_provider.py
index ea26ca70c8..68c31611f9 100644
--- a/tests/unit/brain/test_ack_brain/test_config_provider.py
+++ b/tests/unit/brain/test_ack_brain/test_config_provider.py
@@ -10,3 +10,21 @@ def test_grok_provider_configuration_is_startup_safe() -> None:
assert config.provider == "grok"
assert config.providers.grok.model == "grok-4.20-0309-non-reasoning"
+
+
+def test_unknown_optional_provider_does_not_abort_startup() -> None:
+ """A newer optional provider selection must degrade after config load."""
+
+ config = AckBrainConfig.model_validate(
+ {
+ "provider": "future-provider",
+ "providers": {
+ "future-provider": {"model": "future-model"},
+ },
+ }
+ )
+
+ assert config.provider == "future-provider"
+ assert config.providers.model_extra == {
+ "future-provider": {"model": "future-model"},
+ }
diff --git a/tests/unit/cli_ctl/test_danger_metadata.py b/tests/unit/cli_ctl/test_danger_metadata.py
index 604c76959c..925abbe038 100644
--- a/tests/unit/cli_ctl/test_danger_metadata.py
+++ b/tests/unit/cli_ctl/test_danger_metadata.py
@@ -36,6 +36,14 @@ def test_gate_passes_on_current_tree() -> None:
assert gate.unflagged_dangerous_routes() == []
+def test_voice_session_call_is_not_mistaken_for_outbound_telephony() -> None:
+ """Starting the local voice session is the wake button, not a phone call."""
+ gate = _load_gate_module()
+ assert not safety.is_dangerous("POST", "/api/voice/call")
+ assert not gate._matches_marker("/call", ["/api/voice"])
+ assert safety.is_dangerous("POST", "/api/telephony/outbound")
+
+
def _spec_with_flag(flagged: bool) -> dict:
op = {
"tags": ["demo"],
diff --git a/tests/unit/plugins/tool/test_run_shell.py b/tests/unit/plugins/tool/test_run_shell.py
index cf6772b742..bb1605f3d0 100644
--- a/tests/unit/plugins/tool/test_run_shell.py
+++ b/tests/unit/plugins/tool/test_run_shell.py
@@ -12,7 +12,7 @@ import sys
import pytest
-from jarvis.plugins.tool.run_shell import RunShellTool
+from jarvis.plugins.tool.run_shell import RunShellTool, _windows_subprocess_env
windows_only = pytest.mark.skipif(
sys.platform != "win32", reason="Windows shell semantics"
@@ -64,6 +64,41 @@ async def test_quoted_cmd_payload_is_executed() -> None:
assert "quoted-ok" in result.output["stdout"]
+@windows_only
+def test_windows_subprocess_env_compacts_semantic_path_duplicates(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setenv("SystemRoot", r"C:\Windows")
+ monkeypatch.setenv(
+ "PATH",
+ (
+ r'"C:\Tools";c:\tools\;%SystemRoot%\System32;'
+ r"C:\Windows\System32;C:\Other"
+ ),
+ )
+ monkeypatch.setenv("JARVIS_TEST_SENTINEL", "preserved")
+
+ env = _windows_subprocess_env()
+
+ assert env["PATH"].split(";") == [
+ r'"C:\Tools"',
+ r"%SystemRoot%\System32",
+ r"C:\Other",
+ ]
+ assert env["JARVIS_TEST_SENTINEL"] == "preserved"
+
+
+@windows_only
+def test_windows_subprocess_env_rejects_unique_oversized_path(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ entries = [rf"C:\unique\{index:04d}\{'x' * 40}" for index in range(180)]
+ monkeypatch.setenv("PATH", ";".join(entries))
+
+ with pytest.raises(ValueError, match="remains too long for cmd.exe"):
+ _windows_subprocess_env()
+
+
@posix_only
@pytest.mark.asyncio
async def test_posix_exec_path_unchanged() -> None:
diff --git a/tests/unit/realtime/test_input_transcription.py b/tests/unit/realtime/test_input_transcription.py
index 12efbb7514..7580fff6e1 100644
--- a/tests/unit/realtime/test_input_transcription.py
+++ b/tests/unit/realtime/test_input_transcription.py
@@ -133,7 +133,10 @@ async def test_a_failing_recognizer_never_kills_the_call() -> None:
first = await asyncio.wait_for(transcriber.next_event(), timeout=5.0)
assert first.kind == "speech_started"
- # No transcript follows, and closing still completes cleanly.
+ # The provider receives one explicit failure boundary so it can promote
+ # its own energy-gated preview; closing still completes cleanly.
+ failed = await asyncio.wait_for(transcriber.next_event(), timeout=5.0)
+ assert failed.kind == "transcript_failed"
await transcriber.close()
assert await asyncio.wait_for(transcriber.next_event(), timeout=5.0) is None
diff --git a/tests/unit/speech/test_pipeline_push_to_talk.py b/tests/unit/speech/test_pipeline_push_to_talk.py
index e819e61310..91d94193be 100644
--- a/tests/unit/speech/test_pipeline_push_to_talk.py
+++ b/tests/unit/speech/test_pipeline_push_to_talk.py
@@ -616,6 +616,212 @@ async def test_ptt_release_recovers_timed_out_native_probe_before_final_stt(
assert getattr(captured["transcript"], "text", "") == "final"
+async def test_release_does_not_wait_for_a_cosmetic_probe_without_provider_work():
+ """A local preview may outlive its UI slot; final STT must start immediately."""
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._stt_final_timeout_s = 8.0
+ stop_event = asyncio.Event()
+ inference_active = asyncio.Event()
+ parked = asyncio.Event()
+
+ async def _cosmetic_preview() -> None:
+ await parked.wait()
+
+ task = asyncio.create_task(_cosmetic_preview())
+ await pipe._stop_ptt_live_transcription(
+ task,
+ stop_event=stop_event,
+ inference_active=inference_active,
+ wait_for_inference=True,
+ )
+
+ assert stop_event.is_set()
+ assert task.cancelled()
+
+
+async def test_release_bounds_a_cosmetic_probe_that_ignores_cancellation():
+ """A broken cosmetic task cannot move the final-STT edge indefinitely."""
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._stt_final_timeout_s = 8.0
+ stop_event = asyncio.Event()
+ inference_active = asyncio.Event()
+ entered = asyncio.Event()
+ release = asyncio.Event()
+
+ async def _stubborn_preview() -> None:
+ entered.set()
+ try:
+ await asyncio.Event().wait()
+ except asyncio.CancelledError:
+ await release.wait()
+
+ task = asyncio.create_task(_stubborn_preview())
+ await entered.wait()
+ started = asyncio.get_running_loop().time()
+ await pipe._stop_ptt_live_transcription(
+ task,
+ stop_event=stop_event,
+ inference_active=inference_active,
+ wait_for_inference=True,
+ )
+
+ assert asyncio.get_running_loop().time() - started < 0.5
+ release.set()
+ await task
+
+
+async def test_dictation_provider_warmup_is_single_flight_and_joined():
+ """The first final call shares one post-ready native warm-up."""
+ import time
+
+ class _WarmProvider:
+ def __init__(self) -> None:
+ self.calls = 0
+
+ def warm_up(self) -> None:
+ self.calls += 1
+ time.sleep(0.05)
+
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._dictation_warmup_task = None
+ pipe._dictation_warmup_provider = None
+ provider = _WarmProvider()
+
+ pipe._schedule_dictation_warmup(provider)
+ pipe._schedule_dictation_warmup(provider)
+ assert await pipe._join_dictation_warmup(provider) is provider
+ pipe._schedule_dictation_warmup(provider)
+ assert await pipe._join_dictation_warmup(provider) is provider
+ assert provider.calls == 1
+
+
+async def test_live_provider_switch_joins_the_old_warmup_before_the_new_one():
+ """A settings switch never overlaps two native warm-up generations."""
+ import threading
+
+ old_started = threading.Event()
+ old_release = threading.Event()
+
+ class _OldProvider:
+ def warm_up(self) -> None:
+ old_started.set()
+ old_release.wait(timeout=2.0)
+
+ class _NewProvider:
+ def __init__(self) -> None:
+ self.calls = 0
+
+ def warm_up(self) -> None:
+ self.calls += 1
+
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._dictation_warmup_task = None
+ pipe._dictation_warmup_provider = None
+ pipe._dictation_warmup_succeeded_provider = None
+ pipe._dictation_warmup_shutdown = False
+ old = _OldProvider()
+ new = _NewProvider()
+ pipe._dictation_stt = lambda: new # type: ignore[method-assign]
+
+ pipe._schedule_dictation_warmup(old)
+ assert await asyncio.to_thread(old_started.wait, 1.0)
+ pipe._schedule_dictation_warmup(new)
+ joined = asyncio.create_task(pipe._join_dictation_warmup(new))
+ await asyncio.sleep(0.05)
+
+ assert not joined.done()
+ assert new.calls == 0
+ old_release.set()
+ assert await joined is new
+ assert new.calls == 1
+
+
+async def test_reset_releases_the_warmed_provider_before_a_live_switch():
+ """A provider switch must not pin the old GPU model in memory."""
+ import time
+
+ class _WarmProvider:
+ def warm_up(self) -> None:
+ time.sleep(0.01)
+
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._dictation_warmup_task = None
+ pipe._dictation_warmup_provider = None
+ pipe._dictation_warmup_succeeded_provider = None
+ pipe._dictation_stt_instance = _WarmProvider()
+ pipe._voice_stt_fallback_chain = None
+ pipe._voice_stt_fallback_instances = {}
+
+ pipe._schedule_dictation_warmup(pipe._dictation_stt_instance)
+ await pipe._join_dictation_warmup(pipe._dictation_stt_instance)
+ assert pipe._dictation_warmup_succeeded_provider is pipe._dictation_stt_instance
+
+ pipe._reset_dictation_stt()
+
+ assert pipe._dictation_warmup_succeeded_provider is None
+
+
+async def test_a_wedged_dictation_warmup_replaces_the_provider(monkeypatch):
+ """AP-24: timeout abandons the instance a native worker may still own."""
+ import threading
+
+ import jarvis.speech.pipeline as pipeline_module
+
+ started = threading.Event()
+ release = threading.Event()
+
+ class _WedgedProvider:
+ def warm_up(self) -> None:
+ started.set()
+ release.wait(timeout=5.0)
+
+ old = _WedgedProvider()
+ fresh = object()
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._dictation_warmup_task = None
+ pipe._dictation_warmup_provider = None
+ pipe._dictation_stt_instance = old
+ pipe._dictation_stt = lambda: fresh # type: ignore[method-assign]
+ monkeypatch.setattr(pipeline_module, "_DICTATION_WARMUP_JOIN_TIMEOUT_S", 0.02)
+ pipe._schedule_dictation_warmup(old)
+ await asyncio.to_thread(started.wait, 1.0)
+ try:
+ assert await pipe._join_dictation_warmup(old) is fresh
+ assert pipe._dictation_stt_instance is None
+ finally:
+ release.set()
+ await asyncio.sleep(0.05)
+
+
+async def test_an_independently_cancelled_warmup_replaces_the_provider():
+ """A cancelled waiter does not prove its native thread released the engine."""
+ import threading
+
+ started = threading.Event()
+ release = threading.Event()
+
+ class _Provider:
+ def warm_up(self) -> None:
+ started.set()
+ release.wait(timeout=5.0)
+
+ old = _Provider()
+ fresh = object()
+ pipe = SpeechPipeline.__new__(SpeechPipeline)
+ pipe._dictation_warmup_task = None
+ pipe._dictation_warmup_provider = None
+ pipe._dictation_stt_instance = old
+ pipe._dictation_stt = lambda: fresh # type: ignore[method-assign]
+ pipe._schedule_dictation_warmup(old)
+ await asyncio.to_thread(started.wait, 1.0)
+ pipe._dictation_warmup_task.cancel()
+ try:
+ assert await pipe._join_dictation_warmup(old) is fresh
+ finally:
+ release.set()
+ await asyncio.sleep(0.05)
+
+
async def test_ptt_hangup_recovers_live_probe_before_wake_rearm(monkeypatch):
"""A hard hangup never leaves a busy native STT engine for the wake path."""
pipe = _make_pipeline()
diff --git a/tests/unit/speech/test_turn_taking.py b/tests/unit/speech/test_turn_taking.py
index 8a672a05ac..008506d4c0 100644
--- a/tests/unit/speech/test_turn_taking.py
+++ b/tests/unit/speech/test_turn_taking.py
@@ -8,6 +8,7 @@ import pytest
from jarvis.core.bus import EventBus
from jarvis.core.events import TranscriptFinal, TranscriptionUpdate
from jarvis.core.protocols import AudioChunk, Transcript
+from jarvis.speech.continuation_buffer import ContinuationBuffer
from jarvis.speech.pipeline import (
_TIMEOUT_NO_ANSWER_PHRASE,
SpeechPipeline,
@@ -80,6 +81,7 @@ def _make_pipeline(
pipe._config = None
pipe._turn_state = TurnTakingState.LISTENING
pipe._pending_user_context = []
+ pipe._continuation_buffer = ContinuationBuffer()
pipe._last_endpoint_reason = None
pipe._session_has_assistant_spoken = False
pipe._player = None # no audio in unit tests; _emit_completeness_signal is safe with None
@@ -88,7 +90,13 @@ def _make_pipeline(
pipe._spawn_watchdog_tasks = []
pipe._spoken: list[tuple[str, str | None]] = []
- async def _brain(_text: str, _lang: str) -> str:
+ async def _brain(
+ _text: str,
+ _lang: str,
+ *,
+ consume_pending_voice_attachments: bool = False,
+ ) -> str:
+ del consume_pending_voice_attachments
return brain_response
async def _speak(
@@ -445,7 +453,13 @@ async def test_brain_call_timeout_returns_to_listening_without_hanging() -> None
pipe = _make_pipeline(FakeSTT(text="Mach das Licht an"))
pipe._brain_timeout_s = 0.05
- async def _slow_brain(_text: str, _lang: str) -> str:
+ async def _slow_brain(
+ _text: str,
+ _lang: str,
+ *,
+ consume_pending_voice_attachments: bool = False,
+ ) -> str:
+ del consume_pending_voice_attachments
await asyncio.sleep(1.0)
return "ignored"
@@ -712,6 +726,37 @@ async def test_streaming_long_tool_loop_speaks_real_answer_not_timeout() -> None
assert pipe._turn_state == TurnTakingState.LISTENING
+async def test_streaming_legacy_adapter_keeps_voice_confirmation_enabled() -> None:
+ pipe = _make_streaming_pipeline(
+ FakeSTT(text="Run the monitored action"),
+ stream_chunks=[],
+ all_failed=False,
+ )
+ received_voice_confirm: list[bool] = []
+
+ class _PreAttachmentBrain:
+ async def generate_stream(
+ self,
+ _text: str,
+ *,
+ on_progress=None,
+ allow_voice_confirm: bool = False,
+ ):
+ received_voice_confirm.append(allow_voice_confirm)
+ if on_progress is not None:
+ on_progress()
+ yield "Done."
+
+ pipe._brain = _PreAttachmentBrain()
+
+ response, barged = await pipe._brain_streaming("Run it", "en")
+
+ assert response == "Done."
+ assert barged is False
+ assert received_voice_confirm == [True]
+
+
# ---------------------------------------------------------------------------
# BUG-018 (2026-05-11): STT-probe truncated real speech on low Whisper
# confidence. The probe's "empty tail" signal originally accepted three
@@ -941,7 +986,13 @@ async def test_brain_timeout_speaks_fallback_instead_of_silent_hangup() -> None:
pipe._streaming_enabled = lambda: False # exercise the _brain_with_ack path
pipe._brain_timeout_s = 0.05
- async def _stalling_brain(_text: str, _lang: str) -> str:
+ async def _stalling_brain(
+ _text: str,
+ _lang: str,
+ *,
+ consume_pending_voice_attachments: bool = False,
+ ) -> str:
+ del consume_pending_voice_attachments
await asyncio.sleep(0.5) # exceeds the 0.05s brain timeout
return "never reached"
diff --git a/tests/unit/ui/web/test_ws_dead_socket.py b/tests/unit/ui/web/test_ws_dead_socket.py
index 0d147a63d3..2d5efb4a3f 100644
--- a/tests/unit/ui/web/test_ws_dead_socket.py
+++ b/tests/unit/ui/web/test_ws_dead_socket.py
@@ -2,14 +2,14 @@
Live incident 2026-06-14: when a WebSocket client disconnected uncleanly,
``ws.receive_json()`` raised ``RuntimeError('WebSocket is not connected ...')``
-instead of ``WebSocketDisconnect``. The handler's ``except Exception: ... continue``
-then re-called ``receive_json`` on the closed socket indefinitely, writing the
+instead of ``WebSocketDisconnect``. Retrying any receive failure then re-called
+``receive_json`` on the closed socket indefinitely, writing the
traceback at ~9 MB/s (the log rotated three 9.7 MB files in two seconds),
wedging the event loop and triggering a self-restart that cancelled every
in-flight sub-agent mission with ``app_shutdown``.
-The fix: a dead-socket ``RuntimeError`` ends the loop (``break``) like a
-disconnect; only genuinely recoverable malformed-frame errors ``continue``.
+The fix: every receive error ends the loop. The handler may report it
+best-effort, but never reads from a socket whose state is uncertain.
"""
from __future__ import annotations
@@ -30,10 +30,11 @@ class _LoopGuard(BaseException):
class _DeadSocketWS:
"""Fake WebSocket that fails every ``receive_json`` like a closed socket."""
- def __init__(self, cap: int = 5) -> None:
+ def __init__(self, error: Exception, cap: int = 5) -> None:
self.recv_calls = 0
self.cap = cap
self.closed = False
+ self.error = error
async def accept(self) -> None: # noqa: D401
return None
@@ -45,15 +46,24 @@ class _DeadSocketWS:
self.recv_calls += 1
if self.recv_calls > self.cap:
raise _LoopGuard()
- raise RuntimeError('WebSocket is not connected. Need to call "accept" first.')
+ raise self.error
async def close(self) -> None:
self.closed = True
-async def test_handle_ws_breaks_on_dead_socket_does_not_loop() -> None:
+ "error",
+ [
+ RuntimeError('WebSocket is not connected. Need to call "accept" first.'),
+ ValueError("malformed JSON frame"),
+ ],
+)
+async def test_handle_ws_breaks_on_any_receive_error_does_not_loop(
+ error: Exception,
+) -> None:
srv = WebServer(JarvisConfig(), bus=EventBus())
- ws = _DeadSocketWS(cap=5)
+ ws = _DeadSocketWS(error, cap=5)
try:
await asyncio.wait_for(srv._handle_ws(ws), timeout=5.0)
except _LoopGuard:
diff --git a/tests/unit/web/test_voice_mode_route.py b/tests/unit/web/test_voice_mode_route.py
index 768aba5861..36f3d4acab 100644
--- a/tests/unit/web/test_voice_mode_route.py
+++ b/tests/unit/web/test_voice_mode_route.py
@@ -86,6 +86,7 @@ def test_get_voice_mode(monkeypatch):
# pin configured in this app fixture).
assert body["active_provider_label"] == "OpenAI Realtime"
assert body["active_model"] == "gpt-realtime"
+ assert body["active_model_label"] == "GPT Realtime (default)"
assert body["session_active"] is False
assert body["active_session_mode"] is None
@@ -116,6 +117,8 @@ def test_get_voice_mode_reports_browser_offer_capability(monkeypatch):
body = TestClient(_app(mode="realtime")).get("/api/settings/voice-mode").json()
assert body["active_provider"] == "codex-subscription-realtime"
+ assert body["active_model"] == "auto"
+ assert body["active_model_label"] == "ChatGPT-Live (model chosen by OpenAI)"
assert body["requires_webrtc_offer"] is True
assert body["transport_offer_ready"] is True
assert body["transport_offer_detail"] == "Embedded desktop WebRTC offer is ready."
@@ -328,4 +331,5 @@ def test_get_voice_mode_reports_effective_active_engine(monkeypatch):
assert body["active_session_mode"] == "realtime"
assert body["active_session_provider"] == "openai-realtime"
assert body["active_session_model"] == "gpt-realtime-2.1"
+ assert body["active_session_model_label"] == "GPT Realtime 2.1"
assert body["transitioning"] is False
diff --git a/uv.lock b/uv.lock
index aeb4635bde..1a8ea5b8c4 100644
--- a/uv.lock
+++ b/uv.lock
@@ -173,6 +173,19 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/1a/99/84ba7273339d0f3dfa57901b846489d2e5c2cd731470167757f1935fffbd/aiohttp_retry-2.9.1-py3-none-any.whl", hash = "sha256:66d2759d1921838256a05a3f80ad7e724936f083e35be5abb5e16eed6be6dc54", size = 9981, upload-time = "2024-11-06T10:44:52.917Z" },
]
+[[package]]
+name = "aioice"
+version = "0.10.2"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "dnspython", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "ifaddr", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/67/04/df7286233f468e19e9bedff023b6b246182f0b2ccb04ceeb69b2994021c6/aioice-0.10.2.tar.gz", hash = "sha256:bf236c6829ee33c8e540535d31cd5a066b531cb56de2be94c46be76d68b1a806", size = 44307, upload-time = "2025-11-28T15:56:48.836Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/c7/e3/0d23b1f930c17d371ce1ec36ee529f22fd19ebc2a07fe3418e3d1d884ce2/aioice-0.10.2-py3-none-any.whl", hash = "sha256:14911c15ab12d096dd14d372ebb4aecbb7420b52c9b76fdfcf54375dec17fcbf", size = 24875, upload-time = "2025-11-28T15:56:47.847Z" },
+]
+
[[package]]
name = "aiolimiter"
version = "1.2.1"
@@ -182,6 +195,26 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/f3/ba/df6e8e1045aebc4778d19b8a3a9bc1808adb1619ba94ca354d9ba17d86c3/aiolimiter-1.2.1-py3-none-any.whl", hash = "sha256:d3f249e9059a20badcb56b61601a83556133655c11d1eb3dd3e04ff069e5f3c7", size = 6711, upload-time = "2024-12-08T15:31:49.874Z" },
]
+[[package]]
+name = "aiortc"
+version = "1.15.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "aioice", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "av", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "cryptography", version = "48.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
+ { name = "cryptography", version = "49.0.0", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
+ { name = "google-crc32c", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "pyee", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "pylibsrtp", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+ { name = "pyopenssl", version = "26.2.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
+ { name = "pyopenssl", version = "26.4.0", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/2d/42/af1e5755f4cdeb5926ef4aee4bd99d2fbc04b497dfe09f036d359219993e/aiortc-1.15.0.tar.gz", hash = "sha256:ee6c0757ca070cf6d6bee441936d6ede24eef51211bbff6653409c540f72e625", size = 1182039, upload-time = "2026-07-13T19:26:43.314Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/0c/5f/8435ba02c9278b6cec6f168db92e1d3280dd3af8f2225e20dc7c3be5ab22/aiortc-1.15.0-py3-none-any.whl", hash = "sha256:4e1e54bff31a9c2cb654c7b7edc068085a7df53365e5df24a5cb24168e3f95f7", size = 93678, upload-time = "2026-07-13T19:26:42.241Z" },
+]
+
[[package]]
name = "aiosignal"
version = "1.4.0"
@@ -372,61 +405,43 @@ wheels = [
name = "av"
version = "15.1.0"
source = { registry = "https://pypi.org/simple" }
-resolution-markers = [
- "python_full_version == '3.13.*' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
- "python_full_version == '3.12.*' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
- "python_full_version < '3.12' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
-]
sdist = { url = "https://files.pythonhosted.org/packages/e9/c3/83e6e73d1592bc54436eae0bc61704ae0cff0c3cfbde7b58af9ed67ebb49/av-15.1.0.tar.gz", hash = "sha256:39cda2dc810e11c1938f8cb5759c41d6b630550236b3365790e67a313660ec85", size = 3774192, upload-time = "2025-08-30T04:41:56.076Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/47/58/4e44cf6939be7aba96a4abce024e1be11ba7539ecac74d09369b8c03aa05/av-15.1.0-cp311-cp311-macosx_13_0_arm64.whl", hash = "sha256:b785948762a8d45fc58fc24a20251496829ace1817e9a7a508a348d6de2182c3", size = 21767323, upload-time = "2025-08-30T04:39:37.989Z" },
{ url = "https://files.pythonhosted.org/packages/9b/f6/a946544cdb49f6d892d2761b1d61a8bc6ce912fe57ba06769bdc640c0a7f/av-15.1.0-cp311-cp311-macosx_13_0_x86_64.whl", hash = "sha256:9c7131494a3a318612b4ee4db98fe5bc50eb705f6b6536127c7ab776c524fd8b", size = 26946268, upload-time = "2025-08-30T04:39:40.601Z" },
+ { url = "https://files.pythonhosted.org/packages/70/7c/b33513c0af73d0033af59a98f035b521c5b93445a6af7e9efbf41a6e8383/av-15.1.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:2b9623ae848625c59213b610c8665817924f913580c7c5c91e0dc18936deb00d", size = 38062118, upload-time = "2025-08-30T04:39:43.928Z" },
+ { url = "https://files.pythonhosted.org/packages/5e/95/31b7fb34f9fea7c7389240364194f4f56ad2d460095038cc720f50a90bb3/av-15.1.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:c8ef597087db560514617143532b1fafc4825ebb2dda9a22418f548b113a0cc7", size = 39571086, upload-time = "2025-08-30T04:39:47.109Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/b0/7b0b45474a4e90c35c11d0032947d8b3c7386872957ce29c6f12add69a74/av-15.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:08eac47a90ebae1e2bd5935f400dd515166019bab4ff5b03c4625fa6ac3a0a5e", size = 40112634, upload-time = "2025-08-30T04:39:50.981Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/04/038b94bc9a1ee10a451c867d4a2fc91e845f83bfc2dae9df25893abcb57f/av-15.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:d3f66ff200ea166e606cb3c5cb1bd2fc714effbec2e262a5d67ce60450c8234a", size = 40878695, upload-time = "2025-08-30T04:39:54.493Z" },
+ { url = "https://files.pythonhosted.org/packages/1d/3d/9f8f96c0deeaaf648485a3dbd1699b2f0580f2ce8a36cb616c0138ba7615/av-15.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:57b99544d91121b8bea570e4ddf61700f679a6b677c1f37966bc1a22e1d4cd5c", size = 31335683, upload-time = "2025-08-30T04:39:57.861Z" },
{ url = "https://files.pythonhosted.org/packages/d1/58/de78b276d20db6ffcd4371283df771721a833ba525a3d57e753d00a9fe79/av-15.1.0-cp312-cp312-macosx_13_0_arm64.whl", hash = "sha256:40c5df37f4c354ab8190c6fd68dab7881d112f527906f64ca73da4c252a58cee", size = 21760991, upload-time = "2025-08-30T04:40:00.801Z" },
{ url = "https://files.pythonhosted.org/packages/56/cc/45f85775304ae60b66976360d82ba5b152ad3fd91f9267d5020a51e9a828/av-15.1.0-cp312-cp312-macosx_13_0_x86_64.whl", hash = "sha256:af455ce65ada3d361f80c90c810d9bced4db5655ab9aa513024d6c71c5c476d5", size = 26953097, upload-time = "2025-08-30T04:40:03.998Z" },
+ { url = "https://files.pythonhosted.org/packages/f3/f8/2d781e5e71d02fc829487e775ccb1185e72f95340d05f2e84eb57a11e093/av-15.1.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:86226d2474c80c3393fa07a9c366106029ae500716098b72b3ec3f67205524c3", size = 38319710, upload-time = "2025-08-30T04:40:07.701Z" },
+ { url = "https://files.pythonhosted.org/packages/ac/13/37737ef2193e83862ccacff23580c39de251da456a1bf0459e762cca273c/av-15.1.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:11326f197e7001c4ca53a83b2dbc67fd39ddff8cdf62ce6be3b22d9f3f9338bd", size = 39915519, upload-time = "2025-08-30T04:40:11.066Z" },
+ { url = "https://files.pythonhosted.org/packages/26/e9/e8032c7b8f2a4129a03f63f896544f8b7cf068e2db2950326fa2400d5c47/av-15.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a631ea879cc553080ee62874f4284765c42ba08ee0279851a98a85e2ceb3cc8d", size = 40286166, upload-time = "2025-08-30T04:40:14.561Z" },
+ { url = "https://files.pythonhosted.org/packages/e2/23/612c0fd809444d04b8387a2dfd942ccc77829507bd78a387ff65a9d98c24/av-15.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:8f383949b010c3e731c245f80351d19dc0c08f345e194fc46becb1cb279be3ff", size = 41150592, upload-time = "2025-08-30T04:40:17.951Z" },
+ { url = "https://files.pythonhosted.org/packages/15/74/6f8e38a3b0aea5f28e72813672ff45b64615f2c69e6a4a558718c95edb9f/av-15.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:d5921aa45f4c1f8c1a8d8185eb347e02aa4c3071278a2e2dd56368d54433d643", size = 31336093, upload-time = "2025-08-30T04:40:21.393Z" },
{ url = "https://files.pythonhosted.org/packages/2e/bc/78b2ffa8235eeffc29aa4a8cc47b02e660cfec32f601f39a00975fb06d0e/av-15.1.0-cp313-cp313-macosx_13_0_arm64.whl", hash = "sha256:2f77853c3119c59d1bff4214ccbe46e3133eccff85ed96adee51c68684443f4e", size = 21726244, upload-time = "2025-08-30T04:40:24.14Z" },
{ url = "https://files.pythonhosted.org/packages/1a/99/66d69453a2dce028e6e8ebea085d90e880aac03d3a3ab7d8ec16755ffd75/av-15.1.0-cp313-cp313-macosx_13_0_x86_64.whl", hash = "sha256:c0bc4471c156a0a1c70a607502434f477bc8dfe085eef905e55b4b0d66bcd3a5", size = 26918663, upload-time = "2025-08-30T04:40:27.557Z" },
+ { url = "https://files.pythonhosted.org/packages/fa/51/1a7dfbeda71f2772bc46d758af0e7fab1cc8388ce4bc7f24aecbc4bfd764/av-15.1.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:37839d4fa1407f047af82560dfc0f94d8d6266071eff49e1cbe16c4483054621", size = 38041408, upload-time = "2025-08-30T04:40:30.811Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/97/2c4e0288ad4359b6064cb06ae79c2ff3a84ac73d27e91f2161b75fcd86fa/av-15.1.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:729179cd8622815e8b6f6854d13a806fe710576e08895c77e5e4ad254609de9a", size = 39642563, upload-time = "2025-08-30T04:40:34.617Z" },
+ { url = "https://files.pythonhosted.org/packages/ea/94/2362502149e276d00957edabcc201a5f4d5109a8a7b4fd30793714a532f3/av-15.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4abdf085bfa4eec318efccff567831b361ea56c045cc38366811552e3127c665", size = 40022119, upload-time = "2025-08-30T04:40:37.703Z" },
+ { url = "https://files.pythonhosted.org/packages/df/58/1a0ce1b3835d9728da0a7a54aeffaa0a2b1a88405eaed9322efd55212a54/av-15.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f985661644879e4520d28a995fcb2afeb951bc15a1d51412eb8e5f36da85b6fe", size = 40885158, upload-time = "2025-08-30T04:40:40.952Z" },
+ { url = "https://files.pythonhosted.org/packages/30/e6/054bb64e424d90b77ed5fc6a7358e4013fb436154c998fc90a89a186313f/av-15.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:7d7804a44c8048bb4b014a99353dd124663a12cd1d4613ba2bd3b457c3b1d539", size = 31312256, upload-time = "2025-08-30T04:40:44.224Z" },
{ url = "https://files.pythonhosted.org/packages/6f/8b/89eae6dca10d7d2b83c131025a31ccc750be78699ac0304439faa1d1df99/av-15.1.0-cp314-cp314-macosx_13_0_arm64.whl", hash = "sha256:5dd73c6447947edcb82e5fecf96e1f146aeda0f169c7ad4c54df4d9f66f63fde", size = 21730645, upload-time = "2025-08-30T04:40:47.259Z" },
{ url = "https://files.pythonhosted.org/packages/a3/f0/abffaf69405ed68041524be12a1e294faf396971d6a0e70eb00e93687df7/av-15.1.0-cp314-cp314-macosx_13_0_x86_64.whl", hash = "sha256:a81cd515934a5d51290aa66b059b7ed29c4a212e704f3c5e99e32877ff1c312c", size = 26913753, upload-time = "2025-08-30T04:40:50.445Z" },
+ { url = "https://files.pythonhosted.org/packages/37/9e/7af078bcfc3cd340c981ac5d613c090ab007023d2ac13b05acd52f22f069/av-15.1.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:57cc7a733a7e7d7a153682f35c9cf5d01e8269367b049c954779de36fc3d0b10", size = 38027048, upload-time = "2025-08-30T04:40:54.076Z" },
+ { url = "https://files.pythonhosted.org/packages/02/76/1f9dac11ad713e3619288993ea04e9c9cf4ec0f04e5ee81e83b8129dd8f3/av-15.1.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:a77b75bdb6899a64302ff923a5246e0747b3f0a3ecee7d61118db407a22c3f53", size = 39565396, upload-time = "2025-08-30T04:40:57.84Z" },
+ { url = "https://files.pythonhosted.org/packages/8b/32/2188c46e2747247458ffc26b230c57dd28e61f65ff7b9e6223a411af5e98/av-15.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d0a1154ce081f1720082a133cfe12356c59f62dad2b93a7a1844bf1dcd010d85", size = 40015050, upload-time = "2025-08-30T04:41:01.091Z" },
+ { url = "https://files.pythonhosted.org/packages/1e/41/b57fbce9994580619d7574817ece0fe0e7b822cde2af57904549d0150b8d/av-15.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:8a7bf5a34dee15c86790414fa86a144e6d0dcc788bc83b565fdcbc080b4fbc90", size = 40821225, upload-time = "2025-08-30T04:41:04.349Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/36/e85cd1f0d3369c6764ad422882895d082f7ececb66d3df8aeae3234ef7a6/av-15.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:e30c9a6fd9734784941384a2e25fad3c22881a7682f378914676aa7e795acdb7", size = 31311750, upload-time = "2025-08-30T04:41:07.744Z" },
{ url = "https://files.pythonhosted.org/packages/80/d8/08a681758a4e49adfda409a6a35eff533f42654c6a6cfa102bc5cae1a728/av-15.1.0-cp314-cp314t-macosx_13_0_arm64.whl", hash = "sha256:60666833d7e65ebcfc48034a072de74349edbb62c9aaa3e6722fef31ca028eb6", size = 21828343, upload-time = "2025-08-30T04:41:10.81Z" },
{ url = "https://files.pythonhosted.org/packages/4a/52/29bec3fe68669b21f7d1ab5d94e21f597b8dfd37f50a3e3c9af6a8da925c/av-15.1.0-cp314-cp314t-macosx_13_0_x86_64.whl", hash = "sha256:53fbdae45aa2a49a22e864ff4f4017416ef62c060a172085d3247ba0a101104e", size = 27001666, upload-time = "2025-08-30T04:41:13.822Z" },
-]
-
-[[package]]
-name = "av"
-version = "18.0.0"
-source = { registry = "https://pypi.org/simple" }
-resolution-markers = [
- "(python_full_version >= '3.14' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
- "python_full_version >= '3.14' and sys_platform == 'linux'",
- "python_full_version == '3.13.*' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
- "(python_full_version == '3.13.*' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version == '3.13.*' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
- "python_full_version == '3.13.*' and sys_platform == 'linux'",
- "python_full_version == '3.12.*' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
- "python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
- "(python_full_version == '3.12.*' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version == '3.12.*' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
- "(python_full_version < '3.12' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
- "python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux'",
- "python_full_version == '3.12.*' and sys_platform == 'linux'",
- "python_full_version < '3.12' and platform_machine != 'x86_64' and sys_platform == 'linux'",
-]
-sdist = { url = "https://files.pythonhosted.org/packages/ae/a4/570a5a35c8638aba01e739925846c35fdd6b0756a15526766d0a4dd3b7df/av-18.0.0.tar.gz", hash = "sha256:4ef7e72c3d3a872584a1215173b16e0226811037f40dcdbf75992631098df1ba", size = 4340222, upload-time = "2026-07-02T06:37:58.907Z" }
-wheels = [
- { url = "https://files.pythonhosted.org/packages/18/4a/9e3463df030e063d757fa12f0f39be6541b45b06b5bad48c2ce361b924bf/av-18.0.0-cp311-abi3-macosx_11_0_x86_64.whl", hash = "sha256:149289d40e732a6e49c9530bc245b49d9964cfd1c8c9e06778703b7d5bba6b25", size = 22499354, upload-time = "2026-07-02T06:36:58.751Z" },
- { url = "https://files.pythonhosted.org/packages/84/74/6732f17b96dc23fd23b876b2805435855abdc8a3b397142be4e581165de8/av-18.0.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:4d683b7747a0ba9222b8a5f81e41db5f796e7f64473454ec4fe2548e083c2fa0", size = 33387843, upload-time = "2026-07-02T06:37:05.097Z" },
- { url = "https://files.pythonhosted.org/packages/6d/b9/7708c43fed7ae28b4a1bad060b4221e3334cd827cec24f7165902a6ac1f4/av-18.0.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:ae56b40b6f8b067a8ad2dac664fbfbabac7f7a55b9a7bb031eb99289252bc017", size = 35536910, upload-time = "2026-07-02T06:37:08.806Z" },
- { url = "https://files.pythonhosted.org/packages/5a/94/eba99691d184f6a395a242d54dc370e2fd2265e95bbc98e2963a0fdbdd6c/av-18.0.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:ea2e8ebbce521f21b55df9400e00d721623c9020ef158f5a188a96130be0743f", size = 38984619, upload-time = "2026-07-02T06:37:11.861Z" },
- { url = "https://files.pythonhosted.org/packages/c9/cf/0d7aee07fe16aa9ffdf96043c14bed5485a52c0dea4259de87aa306ecab4/av-18.0.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ef96dabb3e50dac249913145dff5424b302b257fd95dcb64be3c7b7a8aef16d1", size = 34451176, upload-time = "2026-07-02T06:37:15.154Z" },
- { url = "https://files.pythonhosted.org/packages/76/92/810da80b12680d4c4fe235bd1b4003289be9213ac7f114b77b8ecf0e3b3e/av-18.0.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:0f65518a184613e41536f29e8758c8e3d8293e46bf5bef108f04f925bbfa3f44", size = 36619869, upload-time = "2026-07-02T06:37:18.495Z" },
- { url = "https://files.pythonhosted.org/packages/11/85/0f121ff43dc5a70696676c98a8f1674e2fa787614c2abaacb15fa1a9bc99/av-18.0.0-cp311-abi3-win_amd64.whl", hash = "sha256:aaf4d354d2beaa6651e4f92e54409a578bde64f79c0beef9a30b388d06f7c629", size = 27556236, upload-time = "2026-07-02T06:37:21.388Z" },
- { url = "https://files.pythonhosted.org/packages/8b/f6/2509754d4d2356abc6fc0ea3d57c12ade29bac23a1fb7fc215a53ca518fb/av-18.0.0-cp311-abi3-win_arm64.whl", hash = "sha256:adac2b3833b6cb9bd6cb52664a522b94db453615b3675b1dbb26e13fe1c80da6", size = 20221133, upload-time = "2026-07-02T06:37:23.88Z" },
- { url = "https://files.pythonhosted.org/packages/e2/25/4ee23a7f1609adf9b2f140c7a8ffade64a1449d89ab431d922a809eebf19/av-18.0.0-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:88dd8e35e9242662b409a6a05fd24a6775d949eb05da0ba31cab4f250eacbab5", size = 22740741, upload-time = "2026-07-02T06:37:26.659Z" },
- { url = "https://files.pythonhosted.org/packages/c3/e5/69397019aed280a72a43e97a252dee4295df1a9e608848452e5300ec4dab/av-18.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:88ce194c2201c6a6d40336adee8a5ddde46ed743eacb500e3ae9368d1c6d889e", size = 36749881, upload-time = "2026-07-02T06:37:33.096Z" },
- { url = "https://files.pythonhosted.org/packages/37/3a/1614d74f0d676ea6745eb59553c9ad01ca25db523cba808d522e838f4f5b/av-18.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:aa15e567a018cc94a26b0ab45da676dee70c4146ace6e92e47d30cc9689cbfbe", size = 38645927, upload-time = "2026-07-02T06:37:37.086Z" },
- { url = "https://files.pythonhosted.org/packages/6b/3c/5f54710d69b0ea93634134f92b49c7a2a7fd27da5486a8a7e6251ac1cfb4/av-18.0.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:613153e48cefc91700746dde0ad0282d4677b194cba22cc771de14c78411cf8b", size = 40454783, upload-time = "2026-07-02T06:37:40.904Z" },
- { url = "https://files.pythonhosted.org/packages/26/92/8293e6a267e0591b543abd96ae01e7e8ed228509bdb4e4644a8a8395d90f/av-18.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:30404f53ca1ea7f350ac86ff22a2c04f903014758e9b33f398c5a62de34bd84f", size = 37573117, upload-time = "2026-07-02T06:37:44.856Z" },
- { url = "https://files.pythonhosted.org/packages/10/0c/38ed7601277ae57dfe857d040be4762530fd728efff45c2fb8f035fef96a/av-18.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6882a48f7aec2863c96cddee3256ff2da98f7fb6cbed83cee9d7e70a8f186a6b", size = 39669026, upload-time = "2026-07-02T06:37:48.761Z" },
- { url = "https://files.pythonhosted.org/packages/c8/95/0636ca04d5d89d01c49bd366d2b660cc85d1f8117c476b2be62eb0c70855/av-18.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:55a646e9afce9fdc5de5224205a8a12c7ed1ba9803145dcc876c40bfc03a109b", size = 28448336, upload-time = "2026-07-02T06:37:52.477Z" },
- { url = "https://files.pythonhosted.org/packages/01/20/1e24450ea981c44ed328691496fd2774dfa9fa3c3b00fd07f72fd5614abe/av-18.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:96f594ff506a09475e5549359352332049a25d37a08f00b4623f7f6e92e45b9c", size = 21377289, upload-time = "2026-07-02T06:37:55.935Z" },
+ { url = "https://files.pythonhosted.org/packages/9d/54/2c1d1faced66d708f5df328e800997cb47f90b500a214130c3a0f2ad601e/av-15.1.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:e6c51061667983dc801502aff9140bbc4f0e0d97f879586f17fb2f9a7e49c381", size = 39496753, upload-time = "2025-08-30T04:41:16.759Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/76/06ded5e52c4dcc2d9b5184c6da8de5ea77bd7ecb79a59a2b9700f1984949/av-15.1.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:2f80ec387f04aa34868662b11018b5f09654ae1530a61e24e92a142a24b10b62", size = 40784729, upload-time = "2025-08-30T04:41:20.491Z" },
+ { url = "https://files.pythonhosted.org/packages/52/ef/797b76f3b39c99a96e387f501bbc07dca340b27d3dda12862fe694066b63/av-15.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:4975e03177d37d8165c99c8d494175675ba8acb72458fb5d7e43f746a53e0374", size = 41284953, upload-time = "2025-08-30T04:41:23.949Z" },
+ { url = "https://files.pythonhosted.org/packages/31/47/e4656f00e62fd059ea5a40b492dea784f5aecfe1dfac10c0d7a0664ce200/av-15.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8f78f3dad11780b4cdd024cdb92ce43cb170929297c00f2f4555c2b103f51e55", size = 41985340, upload-time = "2025-08-30T04:41:27.561Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/c9/15bb4fd7a1f39d70db35af2b9c20a0ae19e4220eb58a8b8446e903b98d72/av-15.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9a20c5eba3ec49c2f4b281797021923fc68a86aeb66c5cda4fd0252fa8004951", size = 31487337, upload-time = "2025-08-30T04:41:30.591Z" },
]
[[package]]
@@ -955,6 +970,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" },
]
+[[package]]
+name = "dnspython"
+version = "2.8.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/8c/8b/57666417c0f90f08bcafa776861060426765fdb422eb10212086fb811d26/dnspython-2.8.0.tar.gz", hash = "sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f", size = 368251, upload-time = "2025-09-07T18:58:00.022Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" },
+]
+
[[package]]
name = "docopt"
version = "0.6.2"
@@ -1014,8 +1038,7 @@ name = "faster-whisper"
version = "1.2.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
- { name = "av", version = "15.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and platform_machine != 'x86_64' and sys_platform == 'darwin'" },
- { name = "av", version = "18.0.0", source = { registry = "https://pypi.org/simple" }, marker = "(python_full_version < '3.14' and platform_machine == 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
+ { name = "av", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
{ name = "ctranslate2", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
{ name = "huggingface-hub", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
{ name = "onnxruntime", version = "1.23.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and sys_platform == 'darwin'" },
@@ -1212,6 +1235,36 @@ requests = [
{ name = "requests" },
]
+[[package]]
+name = "google-crc32c"
+version = "1.8.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/03/41/4b9c02f99e4c5fb477122cd5437403b552873f014616ac1d19ac8221a58d/google_crc32c-1.8.0.tar.gz", hash = "sha256:a428e25fb7691024de47fecfbff7ff957214da51eddded0da0ae0e0f03a2cf79", size = 14192, upload-time = "2025-12-16T00:35:25.142Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/5d/ef/21ccfaab3d5078d41efe8612e0ed0bfc9ce22475de074162a91a25f7980d/google_crc32c-1.8.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:014a7e68d623e9a4222d663931febc3033c5c7c9730785727de2a81f87d5bab8", size = 31298, upload-time = "2025-12-16T00:20:32.241Z" },
+ { url = "https://files.pythonhosted.org/packages/c5/b8/f8413d3f4b676136e965e764ceedec904fe38ae8de0cdc52a12d8eb1096e/google_crc32c-1.8.0-cp311-cp311-macosx_12_0_x86_64.whl", hash = "sha256:86cfc00fe45a0ac7359e5214a1704e51a99e757d0272554874f419f79838c5f7", size = 30872, upload-time = "2025-12-16T00:33:58.785Z" },
+ { url = "https://files.pythonhosted.org/packages/f6/fd/33aa4ec62b290477181c55bb1c9302c9698c58c0ce9a6ab4874abc8b0d60/google_crc32c-1.8.0-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:19b40d637a54cb71e0829179f6cb41835f0fbd9e8eb60552152a8b52c36cbe15", size = 33243, upload-time = "2025-12-16T00:40:21.46Z" },
+ { url = "https://files.pythonhosted.org/packages/71/03/4820b3bd99c9653d1a5210cb32f9ba4da9681619b4d35b6a052432df4773/google_crc32c-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:17446feb05abddc187e5441a45971b8394ea4c1b6efd88ab0af393fd9e0a156a", size = 33608, upload-time = "2025-12-16T00:40:22.204Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/43/acf61476a11437bf9733fb2f70599b1ced11ec7ed9ea760fdd9a77d0c619/google_crc32c-1.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:71734788a88f551fbd6a97be9668a0020698e07b2bf5b3aa26a36c10cdfb27b2", size = 34439, upload-time = "2025-12-16T00:35:20.458Z" },
+ { url = "https://files.pythonhosted.org/packages/e9/5f/7307325b1198b59324c0fa9807cafb551afb65e831699f2ce211ad5c8240/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:4b8286b659c1335172e39563ab0a768b8015e88e08329fa5321f774275fc3113", size = 31300, upload-time = "2025-12-16T00:21:56.723Z" },
+ { url = "https://files.pythonhosted.org/packages/21/8e/58c0d5d86e2220e6a37befe7e6a94dd2f6006044b1a33edf1ff6d9f7e319/google_crc32c-1.8.0-cp312-cp312-macosx_12_0_x86_64.whl", hash = "sha256:2a3dc3318507de089c5384cc74d54318401410f82aa65b2d9cdde9d297aca7cb", size = 30867, upload-time = "2025-12-16T00:38:31.302Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/a9/a780cc66f86335a6019f557a8aaca8fbb970728f0efd2430d15ff1beae0e/google_crc32c-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:14f87e04d613dfa218d6135e81b78272c3b904e2a7053b841481b38a7d901411", size = 33364, upload-time = "2025-12-16T00:40:22.96Z" },
+ { url = "https://files.pythonhosted.org/packages/21/3f/3457ea803db0198c9aaca2dd373750972ce28a26f00544b6b85088811939/google_crc32c-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cb5c869c2923d56cb0c8e6bcdd73c009c36ae39b652dbe46a05eb4ef0ad01454", size = 33740, upload-time = "2025-12-16T00:40:23.96Z" },
+ { url = "https://files.pythonhosted.org/packages/df/c0/87c2073e0c72515bb8733d4eef7b21548e8d189f094b5dad20b0ecaf64f6/google_crc32c-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:3cc0c8912038065eafa603b238abf252e204accab2a704c63b9e14837a854962", size = 34437, upload-time = "2025-12-16T00:35:21.395Z" },
+ { url = "https://files.pythonhosted.org/packages/d1/db/000f15b41724589b0e7bc24bc7a8967898d8d3bc8caf64c513d91ef1f6c0/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:3ebb04528e83b2634857f43f9bb8ef5b2bbe7f10f140daeb01b58f972d04736b", size = 31297, upload-time = "2025-12-16T00:23:20.709Z" },
+ { url = "https://files.pythonhosted.org/packages/d7/0d/8ebed0c39c53a7e838e2a486da8abb0e52de135f1b376ae2f0b160eb4c1a/google_crc32c-1.8.0-cp313-cp313-macosx_12_0_x86_64.whl", hash = "sha256:450dc98429d3e33ed2926fc99ee81001928d63460f8538f21a5d6060912a8e27", size = 30867, upload-time = "2025-12-16T00:43:14.628Z" },
+ { url = "https://files.pythonhosted.org/packages/ce/42/b468aec74a0354b34c8cbf748db20d6e350a68a2b0912e128cabee49806c/google_crc32c-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3b9776774b24ba76831609ffbabce8cdf6fa2bd5e9df37b594221c7e333a81fa", size = 33344, upload-time = "2025-12-16T00:40:24.742Z" },
+ { url = "https://files.pythonhosted.org/packages/1c/e8/b33784d6fc77fb5062a8a7854e43e1e618b87d5ddf610a88025e4de6226e/google_crc32c-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:89c17d53d75562edfff86679244830599ee0a48efc216200691de8b02ab6b2b8", size = 33694, upload-time = "2025-12-16T00:40:25.505Z" },
+ { url = "https://files.pythonhosted.org/packages/92/b1/d3cbd4d988afb3d8e4db94ca953df429ed6db7282ed0e700d25e6c7bfc8d/google_crc32c-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:57a50a9035b75643996fbf224d6661e386c7162d1dfdab9bc4ca790947d1007f", size = 34435, upload-time = "2025-12-16T00:35:22.107Z" },
+ { url = "https://files.pythonhosted.org/packages/21/88/8ecf3c2b864a490b9e7010c84fd203ec8cf3b280651106a3a74dd1b0ca72/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:e6584b12cb06796d285d09e33f63309a09368b9d806a551d8036a4207ea43697", size = 31301, upload-time = "2025-12-16T00:24:48.527Z" },
+ { url = "https://files.pythonhosted.org/packages/36/c6/f7ff6c11f5ca215d9f43d3629163727a272eabc356e5c9b2853df2bfe965/google_crc32c-1.8.0-cp314-cp314-macosx_12_0_x86_64.whl", hash = "sha256:f4b51844ef67d6cf2e9425983274da75f18b1597bb2c998e1c0a0e8d46f8f651", size = 30868, upload-time = "2025-12-16T00:48:12.163Z" },
+ { url = "https://files.pythonhosted.org/packages/56/15/c25671c7aad70f8179d858c55a6ae8404902abe0cdcf32a29d581792b491/google_crc32c-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b0d1a7afc6e8e4635564ba8aa5c0548e3173e41b6384d7711a9123165f582de2", size = 33381, upload-time = "2025-12-16T00:40:26.268Z" },
+ { url = "https://files.pythonhosted.org/packages/42/fa/f50f51260d7b0ef5d4898af122d8a7ec5a84e2984f676f746445f783705f/google_crc32c-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8b3f68782f3cbd1bce027e48768293072813469af6a61a86f6bb4977a4380f21", size = 33734, upload-time = "2025-12-16T00:40:27.028Z" },
+ { url = "https://files.pythonhosted.org/packages/08/a5/7b059810934a09fb3ccb657e0843813c1fee1183d3bc2c8041800374aa2c/google_crc32c-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:d511b3153e7011a27ab6ee6bb3a5404a55b994dc1a7322c0b87b29606d9790e2", size = 34878, upload-time = "2025-12-16T00:35:23.142Z" },
+ { url = "https://files.pythonhosted.org/packages/52/c5/c171e4d8c44fec1422d801a6d2e5d7ddabd733eeda505c79730ee9607f07/google_crc32c-1.8.0-pp311-pypy311_pp73-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:87fa445064e7db928226b2e6f0d5304ab4cd0339e664a4e9a25029f384d9bb93", size = 28615, upload-time = "2025-12-16T00:40:29.298Z" },
+ { url = "https://files.pythonhosted.org/packages/9c/97/7d75fe37a7a6ed171a2cf17117177e7aab7e6e0d115858741b41e9dd4254/google_crc32c-1.8.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f639065ea2042d5c034bf258a9f085eaa7af0cd250667c0635a3118e8f92c69c", size = 28800, upload-time = "2025-12-16T00:40:30.322Z" },
+]
+
[[package]]
name = "google-genai"
version = "2.9.0"
@@ -1424,6 +1477,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/1e/5e/d4e9f1a599fb8e573b7b87160658329fbf28d19eac2718f51fc3def3aa5a/idna-3.18-py3-none-any.whl", hash = "sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2", size = 65455, upload-time = "2026-06-02T14:34:06.319Z" },
]
+[[package]]
+name = "ifaddr"
+version = "0.2.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/e8/ac/fb4c578f4a3256561548cd825646680edcadb9440f3f68add95ade1eb791/ifaddr-0.2.0.tar.gz", hash = "sha256:cc0cbfcaabf765d44595825fb96a99bb12c79716b73b44330ea38ee2b0c4aed4", size = 10485, upload-time = "2022-06-15T21:40:27.561Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/9c/1f/19ebc343cc71a7ffa78f17018535adc5cbdd87afb31d7c34874680148b32/ifaddr-0.2.0-py3-none-any.whl", hash = "sha256:085e0305cfe6f16ab12d72e2024030f5d52674afad6911bb1eee207177b8a748", size = 12314, upload-time = "2022-06-15T21:40:25.756Z" },
+]
+
[[package]]
name = "importlib-metadata"
version = "9.0.0"
@@ -2567,14 +2629,16 @@ wheels = [
[[package]]
name = "personal-jarvis"
-version = "1.2.0"
+version = "1.2.2"
source = { editable = "." }
dependencies = [
{ name = "aiofiles" },
{ name = "aiolimiter" },
+ { name = "aiortc", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
{ name = "aiosqlite" },
{ name = "anthropic" },
{ name = "audioop-lts", marker = "python_full_version >= '3.13'" },
+ { name = "av", marker = "platform_machine == 'arm64' and sys_platform == 'darwin'" },
{ name = "click" },
{ name = "croniter" },
{ name = "cryptography", version = "46.0.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'ARM64' and sys_platform == 'win32'" },
@@ -2659,7 +2723,7 @@ desktop-macos = [
{ name = "pyobjc-framework-screencapturekit", marker = "sys_platform == 'darwin'" },
]
dev = [
- { name = "av", version = "15.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
+ { name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
{ name = "comtypes", marker = "sys_platform == 'win32'" },
{ name = "faster-whisper", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
{ name = "global-hotkeys", marker = "sys_platform == 'win32'" },
@@ -2687,7 +2751,7 @@ dev = [
{ name = "win10toast-click", marker = "sys_platform == 'win32'" },
]
full = [
- { name = "av", version = "15.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
+ { name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
{ name = "comtypes", marker = "sys_platform == 'win32'" },
{ name = "discord-py" },
{ name = "faster-whisper", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
@@ -2717,7 +2781,7 @@ full = [
{ name = "win10toast-click", marker = "sys_platform == 'win32'" },
]
local-voice = [
- { name = "av", version = "15.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
+ { name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
{ name = "faster-whisper", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
{ name = "sherpa-onnx", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
{ name = "webrtcvad-wheels", marker = "(python_full_version < '3.14' and platform_machine != 'ARM64') or (python_full_version < '3.14' and sys_platform != 'win32')" },
@@ -2726,7 +2790,7 @@ telephony = [
{ name = "twilio" },
]
tts-eval = [
- { name = "av", version = "15.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
+ { name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'" },
{ name = "faster-whisper", marker = "(python_full_version < '3.14' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
]
ultrawiki-postgres = [
@@ -2738,9 +2802,11 @@ ultrawiki-postgres = [
requires-dist = [
{ name = "aiofiles", specifier = ">=24.1" },
{ name = "aiolimiter", specifier = ">=1.1" },
+ { name = "aiortc", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'", specifier = ">=1.13" },
{ name = "aiosqlite", specifier = ">=0.21" },
{ name = "anthropic", specifier = ">=0.96" },
{ name = "audioop-lts", marker = "python_full_version >= '3.13'" },
+ { name = "av", marker = "platform_machine == 'arm64' and sys_platform == 'darwin'", specifier = "==15.1.0" },
{ name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin' and extra == 'local-voice'", specifier = "==15.1.0" },
{ name = "av", marker = "python_full_version < '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin' and extra == 'tts-eval'", specifier = "==15.1.0" },
{ name = "click", specifier = ">=8.1" },
@@ -3391,6 +3457,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/77/c1/6e422f34e569cf8e18df68d1939c81c099d2b61e4f7d9621c8a77560799c/pydantic_settings-2.14.2-py3-none-any.whl", hash = "sha256:a20c97b37910b6550d5ea50fbcc2d4187defe58cd57070b73863d069419c9440", size = 61715, upload-time = "2026-06-19T13:44:55.02Z" },
]
+[[package]]
+name = "pyee"
+version = "13.0.1"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "typing-extensions", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/8b/04/e7c1fe4dc78a6fdbfd6c337b1c3732ff543b8a397683ab38378447baa331/pyee-13.0.1.tar.gz", hash = "sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8", size = 31655, upload-time = "2026-02-14T21:12:28.044Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/a0/c4/b4d4827c93ef43c01f599ef31453ccc1c132b353284fc6c87d535c233129/pyee-13.0.1-py3-none-any.whl", hash = "sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228", size = 15659, upload-time = "2026-02-14T21:12:26.263Z" },
+]
+
[[package]]
name = "pygetwindow"
version = "0.0.9"
@@ -3465,6 +3543,28 @@ crypto = [
{ name = "cryptography", version = "49.0.0", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
]
+[[package]]
+name = "pylibsrtp"
+version = "1.0.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "cffi", marker = "platform_machine != 'ARM64' or sys_platform != 'win32'" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/0d/a6/6e532bec974aaecbf9fe4e12538489fb1c28456e65088a50f305aeab9f89/pylibsrtp-1.0.0.tar.gz", hash = "sha256:b39dff075b263a8ded5377f2490c60d2af452c9f06c4d061c7a2b640612b34d4", size = 10858, upload-time = "2025-10-13T16:12:31.552Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/aa/af/89e61a62fa3567f1b7883feb4d19e19564066c2fcd41c37e08d317b51881/pylibsrtp-1.0.0-cp310-abi3-macosx_10_9_x86_64.whl", hash = "sha256:822c30ea9e759b333dc1f56ceac778707c51546e97eb874de98d7d378c000122", size = 1865017, upload-time = "2025-10-13T16:12:15.62Z" },
+ { url = "https://files.pythonhosted.org/packages/8d/0e/8d215484a9877adcf2459a8b28165fc89668b034565277fd55d666edd247/pylibsrtp-1.0.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:aaad74e5c8cbc1c32056c3767fea494c1e62b3aea2c908eda2a1051389fdad76", size = 2182739, upload-time = "2025-10-13T16:12:17.121Z" },
+ { url = "https://files.pythonhosted.org/packages/57/3f/76a841978877ae13eac0d4af412c13bbd5d83b3df2c1f5f2175f2e0f68e5/pylibsrtp-1.0.0-cp310-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9209b86e662ebbd17c8a9e8549ba57eca92a3e87fb5ba8c0e27b8c43cd08a767", size = 2732922, upload-time = "2025-10-13T16:12:18.348Z" },
+ { url = "https://files.pythonhosted.org/packages/0e/14/cf5d2a98a66fdfe258f6b036cda570f704a644fa861d7883a34bc359501e/pylibsrtp-1.0.0-cp310-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:293c9f2ac21a2bd689c477603a1aa235d85cf252160e6715f0101e42a43cbedc", size = 2434534, upload-time = "2025-10-13T16:12:20.074Z" },
+ { url = "https://files.pythonhosted.org/packages/bd/08/a3f6e86c04562f7dce6717cd2206a0f84ca85c5e38121d998e0e330194c3/pylibsrtp-1.0.0-cp310-abi3-manylinux_2_28_i686.whl", hash = "sha256:81fb8879c2e522021a7cbd3f4bda1b37c192e1af939dfda3ff95b4723b329663", size = 2345818, upload-time = "2025-10-13T16:12:21.439Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/d5/130c2b5b4b51df5631684069c6f0a6761c59d096a33d21503ac207cf0e47/pylibsrtp-1.0.0-cp310-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:4ddb562e443cf2e557ea2dfaeef0d7e6b90e96dd38eb079b4ab2c8e34a79f50b", size = 2774490, upload-time = "2025-10-13T16:12:22.659Z" },
+ { url = "https://files.pythonhosted.org/packages/91/e3/715a453bfee3bea92a243888ad359094a7727cc6d393f21281320fe7798c/pylibsrtp-1.0.0-cp310-abi3-musllinux_1_2_i686.whl", hash = "sha256:f02e616c9dfab2b03b32d8cc7b748f9d91814c0211086f987629a60f05f6e2cc", size = 2372603, upload-time = "2025-10-13T16:12:24.036Z" },
+ { url = "https://files.pythonhosted.org/packages/e3/56/52fa74294254e1f53a4ff170ee2006e57886cf4bb3db46a02b4f09e1d99f/pylibsrtp-1.0.0-cp310-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:c134fa09e7b80a5b7fed626230c5bc257fd771bd6978e754343e7a61d96bc7e6", size = 2451269, upload-time = "2025-10-13T16:12:25.475Z" },
+ { url = "https://files.pythonhosted.org/packages/1e/51/2e9b34f484cbdd3bac999bf1f48b696d7389433e900639089e8fc4e0da0d/pylibsrtp-1.0.0-cp310-abi3-win32.whl", hash = "sha256:bae377c3b402b17b9bbfbfe2534c2edba17aa13bea4c64ce440caacbe0858b55", size = 1247503, upload-time = "2025-10-13T16:12:27.39Z" },
+ { url = "https://files.pythonhosted.org/packages/c3/70/43db21af194580aba2d9a6d4c7bd8c1a6e887fa52cd810b88f89096ecad2/pylibsrtp-1.0.0-cp310-abi3-win_amd64.whl", hash = "sha256:8d6527c4a78a39a8d397f8862a8b7cdad4701ee866faf9de4ab8c70be61fd34d", size = 1601659, upload-time = "2025-10-13T16:12:29.037Z" },
+ { url = "https://files.pythonhosted.org/packages/8e/ec/6e02b2561d056ea5b33046e3cad21238e6a9097b97d6ccc0fbe52b50c858/pylibsrtp-1.0.0-cp310-abi3-win_arm64.whl", hash = "sha256:2696bdb2180d53ac55d0eb7b58048a2aa30cd4836dd2ca683669889137a94d2a", size = 1159246, upload-time = "2025-10-13T16:12:30.285Z" },
+]
+
[[package]]
name = "pymsgbox"
version = "2.0.1"
@@ -3722,6 +3822,53 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a8/6c/817119a52efcc229a30ceff56a0641005a431806a1f555e0571626ba313a/pyobjc_framework_webkit-12.2.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:5d91527c9950c79269dd0d70f2bb8668c298dd06930637c1c063ce5f274a87e5", size = 50967, upload-time = "2026-06-19T16:19:35.474Z" },
]
+[[package]]
+name = "pyopenssl"
+version = "26.2.0"
+source = { registry = "https://pypi.org/simple" }
+resolution-markers = [
+ "python_full_version >= '3.14' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version == '3.13.*' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version == '3.12.*' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'darwin'",
+]
+dependencies = [
+ { name = "cryptography", version = "48.0.1", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'x86_64' and sys_platform == 'darwin'" },
+ { name = "typing-extensions", marker = "python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'darwin'" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/1a/51/27a5ad5f939d08f690a326ef9582cda7140555180db71695f6fb747d6a36/pyopenssl-26.2.0.tar.gz", hash = "sha256:8c6fcecd1183a7fc897548dfe388b0cdb7f37e018200d8409cf33959dbe35387", size = 182195, upload-time = "2026-05-04T23:06:09.72Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/73/b8/a0e2790ae249d6f38c9f66de7a211621a7ab2650217bcd04e1262f578a56/pyopenssl-26.2.0-py3-none-any.whl", hash = "sha256:4f9d971bc5298b8bc1fab282803da04bf000c755d4ad9d99b52de2569ca19a70", size = 55823, upload-time = "2026-05-04T23:06:08.395Z" },
+]
+
+[[package]]
+name = "pyopenssl"
+version = "26.4.0"
+source = { registry = "https://pypi.org/simple" }
+resolution-markers = [
+ "(python_full_version >= '3.14' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
+ "python_full_version >= '3.14' and sys_platform == 'linux'",
+ "python_full_version >= '3.14' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version == '3.13.*' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
+ "(python_full_version == '3.13.*' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version == '3.13.*' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
+ "python_full_version == '3.13.*' and sys_platform == 'linux'",
+ "python_full_version == '3.12.*' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
+ "python_full_version < '3.12' and platform_machine != 'x86_64' and sys_platform == 'darwin'",
+ "(python_full_version == '3.12.*' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version == '3.12.*' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
+ "(python_full_version < '3.12' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version < '3.12' and sys_platform != 'darwin' and sys_platform != 'linux' and sys_platform != 'win32')",
+ "python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux'",
+ "python_full_version == '3.12.*' and sys_platform == 'linux'",
+ "python_full_version < '3.12' and platform_machine != 'x86_64' and sys_platform == 'linux'",
+]
+dependencies = [
+ { name = "cryptography", version = "49.0.0", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine != 'x86_64' and sys_platform == 'darwin') or (platform_machine != 'ARM64' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'win32')" },
+ { name = "typing-extensions", marker = "(python_full_version < '3.13' and platform_machine != 'x86_64' and sys_platform == 'darwin') or (python_full_version < '3.13' and platform_machine != 'ARM64' and sys_platform == 'win32') or (python_full_version < '3.13' and sys_platform != 'darwin' and sys_platform != 'win32')" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/3f/e8/7325d258199b159eb2c03fe32107533e2832e70e63f4fb88a6aa00023201/pyopenssl-26.4.0.tar.gz", hash = "sha256:28dfcce0162b9211413e26dfbfdf1d24317fbeba18fc93c12400a1856b2a0bc7", size = 182046, upload-time = "2026-08-01T19:50:50.512Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/51/ad/2cf6d3fa2fae5c79e1ed9960c0d42badd0f94d81dd12b50604cdc839e648/pyopenssl-26.4.0-py3-none-any.whl", hash = "sha256:f0eb0cb2d581d3ad2b9c489468485e7f2ab6727d08401bcf9d824c3caddf3c1c", size = 56026, upload-time = "2026-08-01T19:50:48.94Z" },
+]
+
[[package]]
name = "pypdf"
version = "6.14.2"