Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix: close release regression gaps
rubenluetke10-beep201f514d094f
diff --git a/jarvis/cli_ctl/safety.py b/jarvis/cli_ctl/safety.pyindex 96822b3503..87e2d37da0 100644--- a/jarvis/cli_ctl/safety.py+++ b/jarvis/cli_ctl/safety.py@@ -59,7 +59,14 @@ def is_dangerous(method: str, path: str) -> bool:if method.upper() == "DELETE":return Truelow = path.lower()- return any(marker in low for marker in _DANGEROUS_MARKERS)+ route = low.split("?", 1)[0]+ segments = tuple(segment for segment in route.split("/") if segment)+ legacy_contact_call = (+ len(segments) == 4+ and segments[:2] == ("api", "contacts")+ and segments[-1] == "call"+ )+ return any(marker in low for marker in _DANGEROUS_MARKERS) or legacy_contact_calldef _assume_yes_env() -> bool:diff --git a/jarvis/memory/wiki/extractor.py b/jarvis/memory/wiki/extractor.pyindex ca644bbdba..0f60ac79a5 100644--- a/jarvis/memory/wiki/extractor.py+++ b/jarvis/memory/wiki/extractor.py@@ -332,7 +332,7 @@ class ConversationFactExtractor:text = (user_text or "").strip()focus_turn_id = (turn_id or turn_hash).strip()key = review_key or f"turn:v2:{turn_hash}"- if not self._claim_review(+ if not await self._claim_review(review_key=key,source_label=source_label,source_kind=source_kind,@@ -343,10 +343,12 @@ class ConversationFactExtractor:return 0if not self._cfg.enabled:- self._finish_review(key, status="filtered", error_code="extractor-disabled")+ await self._finish_review(+ key, status="filtered", error_code="extractor-disabled"+ )return 0if len(text) < int(self._cfg.min_user_chars):- self._finish_review(key, status="filtered", error_code="below-min-chars")+ await self._finish_review(key, status="filtered", error_code="below-min-chars")return 0prompt = self._build_turn_prompt(@@ -375,14 +377,14 @@ class ConversationFactExtractor:retry_empty=bool(_DURABLE_CUE_RE.search(text)),)except asyncio.CancelledError:- self._finish_review(key, status="failed", error_code="cancelled")+ await self._finish_review(key, status="failed", error_code="cancelled")raiseexcept Exception: # noqa: BLE001 - the conversation must never noticelog.exception("ConversationFactExtractor: unexpected extraction failure")- self._finish_review(key, status="failed", error_code="unexpected")+ await self._finish_review(key, status="failed", error_code="unexpected")return 0- return self._persist_outcome(+ return await self._persist_outcome(outcome,review_key=key,source_label=source_label,@@ -403,7 +405,7 @@ class ConversationFactExtractor:chunks = self._session_chunks(usable)if not chunks:empty_key = f"{base_key}:empty"- if self._claim_review(+ if await self._claim_review(review_key=empty_key,source_label=source_label,source_kind="session-sweep",@@ -411,7 +413,7 @@ class ConversationFactExtractor:session_id=session_id,turn_id="",):- self._finish_review(+ await self._finish_review(empty_key,status="filtered",error_code="no-user-turns",@@ -427,7 +429,7 @@ class ConversationFactExtractor:seen_facts: set[str] = set()for index, (key, chunk) in enumerate(zip(keys, chunks, strict=True)):transcript = self._build_session_prompt(chunk)- if not self._claim_review(+ if not await self._claim_review(review_key=key,source_label=f"{source_label}:chunk:{index}",source_kind="session-sweep",@@ -437,7 +439,7 @@ class ConversationFactExtractor:):continueif not self._cfg.enabled:- self._finish_review(+ await self._finish_review(key,status="filtered",error_code="extractor-disabled",@@ -458,11 +460,11 @@ class ConversationFactExtractor:retry_empty=True,)except asyncio.CancelledError:- self._finish_review(key, status="failed", error_code="cancelled")+ await self._finish_review(key, status="failed", error_code="cancelled")raiseexcept Exception: # noqa: BLE001log.exception("ConversationFactExtractor: session chunk failed")- self._finish_review(key, status="failed", error_code="unexpected")+ await self._finish_review(key, status="failed", error_code="unexpected")continueunique = tuple(@@ -479,7 +481,7 @@ class ConversationFactExtractor:duration_ms=outcome.duration_ms,error_code=outcome.error_code,)- total += self._persist_outcome(+ total += await self._persist_outcome(outcome,review_key=key,source_label=f"{source_label}:chunk:{index}",@@ -577,7 +579,7 @@ class ConversationFactExtractor:self._scheduler = schedulerself._consolidate_after = max(1, int(consolidate_after))- def _maybe_trigger_consolidation(self) -> None:+ async def _maybe_trigger_consolidation(self) -> None:"""Fire a background JOURNAL trigger when the backlog is heavy.Fire-and-forget (AP-9): the conversation turn never waits for the@@ -586,7 +588,7 @@ class ConversationFactExtractor:if self._scheduler is None:returntry:- backlog = self._journal.backlog_count()+ backlog = await asyncio.to_thread(self._journal.backlog_count)try:from jarvis.memory.wiki.health import health@@ -720,7 +722,7 @@ class ConversationFactExtractor:history.append(turn)return evidence- def _claim_review(+ async def _claim_review(self,*,review_key: str,@@ -732,7 +734,8 @@ class ConversationFactExtractor:) -> bool:try:text_hash = hashlib.sha256(text.encode("utf-8")).hexdigest()- return self._journal.claim_capture(+ return await asyncio.to_thread(+ self._journal.claim_capture,review_key,source_label=source_label,source_kind=source_kind,@@ -747,7 +750,7 @@ class ConversationFactExtractor:)return True- def _finish_review(+ async def _finish_review(self,review_key: str,*,@@ -758,7 +761,8 @@ class ConversationFactExtractor:error_code: str = "",) -> None:try:- self._journal.finish_capture(+ await asyncio.to_thread(+ self._journal.finish_capture,review_key,status=status,candidate_count=candidate_count,@@ -772,7 +776,7 @@ class ConversationFactExtractor:exc_info=True,)- def _persist_outcome(+ async def _persist_outcome(self,outcome: _ExtractionResult,*,@@ -781,7 +785,7 @@ class ConversationFactExtractor:turn_hash: str,) -> int:if outcome.outcome == "failed":- self._finish_review(+ await self._finish_review(review_key,status="failed",provider=outcome.provider,@@ -790,7 +794,7 @@ class ConversationFactExtractor:)return 0if not outcome.facts:- self._finish_review(+ await self._finish_review(review_key,status="empty",provider=outcome.provider,@@ -799,7 +803,8 @@ class ConversationFactExtractor:return 0try:- appended = self._journal.commit_capture_candidates(+ appended = await asyncio.to_thread(+ self._journal.commit_capture_candidates,outcome.facts,review_key=review_key,source_label=source_label,@@ -809,7 +814,7 @@ class ConversationFactExtractor:)except Exception: # noqa: BLE001 - extraction must stay off the user pathlog.exception("ConversationFactExtractor: atomic journal commit failed")- self._finish_review(+ await self._finish_review(review_key,status="failed",provider=outcome.provider,@@ -825,7 +830,7 @@ class ConversationFactExtractor:appended,source_label,)- self._maybe_trigger_consolidation()+ await self._maybe_trigger_consolidation()return appendedasync def _extract(diff --git a/jarvis/memory/wiki/voice_bridge.py b/jarvis/memory/wiki/voice_bridge.pyindex 41f53245c6..e54f96bf33 100644--- a/jarvis/memory/wiki/voice_bridge.py+++ b/jarvis/memory/wiki/voice_bridge.py@@ -429,7 +429,7 @@ class VoiceFactBridge:return Truereturn Falsetelemetry.inc("voice_turns_ingested_ack")- log.info(+ log.debug("VoiceFactBridge[ack]: brain acked storage, capturing user text ""(%d chars, lang=%s, origin=%s)",len(pending.user_text), pending.user_language, pending.origin,@@ -465,7 +465,7 @@ class VoiceFactBridge:self._last_aggressive_ns = time.monotonic_ns()telemetry.inc("voice_turns_ingested_aggressive")- log.info(+ log.debug("VoiceFactBridge[aggressive]: brain did not ack but user text ""looks fact-shaped, capturing via salience filter ""(%d chars, lang=%s, origin=%s)",@@ -594,7 +594,9 @@ class VoiceFactBridge:on; the worst case is one lost candidate fact."""try:- if self._extractor.capture_seen(review_key):+ # ``capture_seen`` performs a locked SQLite lookup. Keep it off the+ # latency-critical voice event loop (AP-9).+ if await asyncio.to_thread(self._extractor.capture_seen, review_key):log.debug("VoiceFactBridge: turn already journaled (hash=%s) — skipping",review_key[-24:],diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.pyindex a30bdd1985..510e0804e2 100644--- a/jarvis/realtime/session.py+++ b/jarvis/realtime/session.py@@ -687,6 +687,7 @@ class _DelegateTurnState:deterministic: bool = Falsedelivery_started: bool = Falseprovider_boundary_seen: bool = False+ provider_stream_ended: bool = Falseuser_text: str = ""result_payload: dict[str, Any] = field(default_factory=dict)pending_tool_calls: list[tuple[str, str]] = field(default_factory=list)@@ -2966,14 +2967,7 @@ class RealtimeVoiceSession:for chunk in final_chunks:await self._emit_audio(chunk)self._gate.drain()- await self._send_json({"type": "turn_complete"})- await self._publish_turn_completed()- self._output_active = False- self._output_samples_sent = 0- self._response_requested_for_turn = False- self._user_speech_active = False- self._turn_final_text = ""- self._schedule_late_delegate_flush()+ await self._complete_surface_turn()if self._end_after_turn:# end_call was acknowledged; the model has now spoken# its goodbye to the end — hang up.@@ -3081,7 +3075,57 @@ class RealtimeVoiceSession:# error path — no failed flag, no provider_error for the# browser surface, and the transcript-cleared audio tail held# by the scrub gate is dropped.- if self._output_active or self._response_requested_for_turn:+ delegate_state = self._delegate_turns.get(self._turn_id)+ supervised_handoff_boundary_seen = bool(+ delegate_state is not None+ and delegate_state.wait_for_provider_boundary+ and delegate_state.provider_boundary_seen+ and not self._output_active+ )+ if supervised_handoff_boundary_seen and delegate_state is not None:+ delegate_state.provider_stream_ended = True+ bridge = self._delegate_bridge_task+ if bridge is not None and not bridge.done():+ bridge.cancel()+ try:+ await bridge+ except asyncio.CancelledError: # Expected after explicit cancellation.+ pass+ except Exception: # noqa: BLE001+ log.warning(+ "realtime[%s] delegate bridge failed while "+ "provider stream ended",+ self.session_id,+ exc_info=True,+ )+ if self._delegate_bridge_task is bridge:+ self._delegate_bridge_task = None+ delegate_tasks = tuple(+ self._delegate_tasks_by_turn.get(self._turn_id, ())+ )+ for task in delegate_tasks:+ try:+ await task+ except asyncio.CancelledError:+ raise+ except Exception: # noqa: BLE001+ log.warning(+ "realtime[%s] supervised delegate failed after "+ "provider stream ended",+ self.session_id,+ exc_info=True,+ )+ await self._publish_error(+ "RealtimeDelegateError",+ "Supervised delegate failed after provider stream end",+ recoverable=True,+ )+ if self._turn_id and delegate_state.last_reply:+ trusted_reply = self._scrubbed_trusted_reply(delegate_state)+ if trusted_reply and not self._output_transcript:+ self._output_transcript.append(trusted_reply)+ await self._complete_surface_turn()+ elif self._output_active or self._response_requested_for_turn:final_chunks = self._gate.finalize()if self._gate.hard_leak_pending():await self._cancel_unsafe_output(@@ -4223,6 +4267,19 @@ class RealtimeVoiceSession:self._external_update = Noneself._reset_turn_tracking()+ async def _complete_surface_turn(self) -> None:+ """Publish one idempotent surface boundary and reset turn state."""+ if not self._turn_id:+ return+ await self._send_json({"type": "turn_complete"})+ await self._publish_turn_completed()+ self._output_active = False+ self._output_samples_sent = 0+ self._response_requested_for_turn = False+ self._user_speech_active = False+ self._turn_final_text = ""+ self._schedule_late_delegate_flush()+def _remember_delegate_turn(self, user_text: str, assistant_text: str) -> None:"""Keep only this live session's bounded context for later delegation."""@@ -5305,6 +5362,12 @@ class RealtimeVoiceSession:drop_before_delivery = self._drop_provider_output_until_new_responseself._drop_provider_output_until_new_response = Falsetry:+ if turn_state.provider_stream_ended:+ turn_state.surface_fallback_spoken = True+ self._drop_provider_output_until_user_turn = True+ self._arm_stale_readback_guard(trusted_reply)+ await self._send_json(self._surface_speech_message(trusted_reply))+ returnif turn_state.pending_tool_calls:for call_id, wire_name in tuple(turn_state.pending_tool_calls):await self._session.send_tool_result(diff --git a/tests/unit/cli_ctl/test_safety.py b/tests/unit/cli_ctl/test_safety.pyindex fbe72e80b9..78f3b8017c 100644--- a/tests/unit/cli_ctl/test_safety.py+++ b/tests/unit/cli_ctl/test_safety.py@@ -22,6 +22,8 @@ def test_is_dangerous_heuristic():assert safety.is_dangerous("POST", "/api/missions/x/dispatch")assert safety.is_dangerous("POST", "/api/settings/restart-app")assert safety.is_dangerous("POST", "/api/contacts/x/call")+ assert not safety.is_dangerous("POST", "/api/voice/call")+ assert not safety.is_dangerous("POST", "/api/integrations/callbacks")assert not safety.is_dangerous("POST", "/api/tasks")assert not safety.is_dangerous("GET", "/api/missions")@@ -60,7 +62,12 @@ def test_explicit_dangerous_override_true():# A plain path forced dangerous (e.g. config set) needs --yes.with pytest.raises(typer.Exit):safety.gate_request("PUT", "/api/control/config", dangerous=True)- assert safety.gate_request("PUT", "/api/control/config", dangerous=True, assume_yes=True) is True+ assert (+ safety.gate_request(+ "PUT", "/api/control/config", dangerous=True, assume_yes=True+ )+ is True+ )def test_explicit_dangerous_override_false():diff --git a/tests/unit/memory/wiki/test_conversation_observer.py b/tests/unit/memory/wiki/test_conversation_observer.pyindex a05d6b9c40..d5009a394c 100644--- a/tests/unit/memory/wiki/test_conversation_observer.py+++ b/tests/unit/memory/wiki/test_conversation_observer.py@@ -134,10 +134,15 @@ def _stack(tmp_path: Path, *, brain_sleep_s: float = 0.0):return bus, journal, curator, bridge, brain-async def _drain(journal: CandidateJournal, *, timeout_s: float = 2.0) -> None:+async def _drain(+ journal: CandidateJournal,+ *,+ timeout_s: float = 2.0,+ min_count: int = 1,+) -> None:deadline = time.monotonic() + timeout_swhile time.monotonic() < deadline:- if journal.backlog_count() > 0:+ if journal.backlog_count() >= min_count:returnawait asyncio.sleep(0.02)@@ -209,6 +214,7 @@ async def test_same_text_in_a_later_turn_is_reviewed_again(tmp_path: Path) -> No)await bus.publish(ResponseGenerated(text="Noted.", language="en"))await asyncio.wait_for(brain.completed.wait(), timeout=2.0)+ await _drain(journal, min_count=index + 1)assert brain.call_count == index + 1finally:bridge.stop()diff --git a/tests/unit/memory/wiki/test_extractor.py b/tests/unit/memory/wiki/test_extractor.pyindex 301f3656cd..58b05edb52 100644--- a/tests/unit/memory/wiki/test_extractor.py+++ b/tests/unit/memory/wiki/test_extractor.py@@ -9,6 +9,7 @@ from __future__ import annotationsimport asyncioimport json+import threadingfrom collections.abc import AsyncIteratorfrom pathlib import Pathfrom typing import Any@@ -112,7 +113,7 @@ def _ok_facts_json(evidence_turn_id: str = "h1") -> str:{"fact": "User prefers dark mode.","kind": "preference",- "subjects": ["ruben"],+ "subjects": ["example-user"],"evidence_turn_id": evidence_turn_id,},]@@ -126,6 +127,44 @@ def journal(tmp_path: Path) -> CandidateJournal:j.close()+async def test_journal_claim_does_not_block_event_loop(+ journal: CandidateJournal,+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ """Locked SQLite audit work stays off the latency-critical event loop."""+ entered = threading.Event()+ release = threading.Event()++ def locked_claim(*_args: Any, **_kwargs: Any) -> bool:+ entered.set()+ release.wait(timeout=1.0)+ return False++ monkeypatch.setattr(journal, "claim_capture", locked_claim)+ extractor = ConversationFactExtractor(+ config=_config(),+ journal=journal,+ registry=FakeRegistry(FakeBrain("[]")),+ )+ loop = asyncio.get_running_loop()+ started_at = loop.time()+ task = asyncio.create_task(+ extractor.extract_and_journal(+ "A sufficiently long synthetic test fact.",+ "Noted.",+ source_label="test:locked-claim",+ turn_hash="locked-claim",+ )+ )+ try:+ assert await asyncio.to_thread(entered.wait, 1.0)+ assert loop.time() - started_at < 0.5+ finally:+ release.set()+ assert await task == 0++@pytest.mark.asyncioasync def test_happy_path_appends_parsed_facts(journal: CandidateJournal) -> None:brain = FakeBrain(_ok_facts_json())@@ -163,8 +202,8 @@ async def test_happy_path_appends_parsed_facts(journal: CandidateJournal) -> Non("incomplete_kind", "incomplete_subjects"),[("place", ["user"]),- ("place", ["san-francisco"]),- ("other", ["user", "san-francisco"]),+ ("place", ["example-city"]),+ ("other", ["user", "example-city"]),],)@pytest.mark.asyncio@@ -176,7 +215,7 @@ async def test_residence_requires_named_place_subject_and_falls_back(incomplete = json.dumps([{- "fact": "The user lives in San Francisco.",+ "fact": "The fictional user lives in Example City.","kind": incomplete_kind,"subjects": incomplete_subjects,"evidence_turn_id": "residence-turn",@@ -186,9 +225,9 @@ async def test_residence_requires_named_place_subject_and_falls_back(complete = json.dumps([{- "fact": "The user lives in San Francisco.",+ "fact": "The fictional user lives in Example City.","kind": "place",- "subjects": ["user", "san-francisco"],+ "subjects": ["user", "example-city"],"evidence_turn_id": "residence-turn",}]@@ -201,7 +240,7 @@ async def test_residence_requires_named_place_subject_and_falls_back()count = await extractor.extract_and_journal(- "Ich wohne in San Francisco.", # i18n-allow: production residence fixture+ "The fictional user lives in Example City.","Noted.",source_label="realtime:residence",turn_hash="residence-turn",@@ -211,7 +250,7 @@ async def test_residence_requires_named_place_subject_and_falls_back(assert registry.tried == ["gemini", "openrouter"]row = journal.pending()[0]assert row.kind == "place"- assert row.subjects == ("user", "san-francisco")+ assert row.subjects == ("user", "example-city")@pytest.mark.asyncio@@ -558,7 +597,7 @@ async def test_asset_kind_and_context_are_preserved(journal: CandidateJournal) -{"fact": "The user owns the yacht Aurora.","kind": "asset",- "subjects": ["ruben", "aurora"],+ "subjects": ["example-user", "aurora"],"evidence_turn_id": "turn-2",}]@@ -634,7 +673,7 @@ async def test_secret_shaped_model_fact_never_reaches_sqlite({"fact": f"The user's API key is {secret}.","kind": "other",- "subjects": ["ruben"],+ "subjects": ["example-user"],"evidence_turn_id": "secret-guard",}]@@ -665,7 +704,7 @@ async def test_session_sweep_rejects_non_user_evidence(journal: CandidateJournal{"fact": "The assistant guessed that the user owns an aircraft.","kind": "asset",- "subjects": ["ruben"],+ "subjects": ["example-user"],"evidence_turn_id": "assistant-turn",}]@@ -737,7 +776,7 @@ async def test_session_sweep_accepts_exact_user_evidence(journal: CandidateJourn{"fact": "The user's yacht Aurora is moored in Kiel.","kind": "asset",- "subjects": ["ruben", "aurora", "kiel"],+ "subjects": ["example-user", "aurora", "kiel"],"evidence_turn_id": "turn-2",}]@@ -771,7 +810,7 @@ async def test_long_prior_context_cannot_truncate_focus_evidence({"fact": "The user's yacht Aurora is moored in Kiel.","kind": "asset",- "subjects": ["ruben", "aurora", "kiel"],+ "subjects": ["example-user", "aurora", "kiel"],"evidence_turn_id": "turn-2",}]diff --git a/tests/unit/realtime/test_session.py b/tests/unit/realtime/test_session.pyindex 1a42d7f7ee..3609295773 100644--- a/tests/unit/realtime/test_session.py+++ b/tests/unit/realtime/test_session.py@@ -2049,6 +2049,49 @@ async def test_capability_forced_delegate_executes_provider_handoff():await sess.end(reason="test")+async def test_provider_eof_waits_for_supervised_delegate_delivery():+ """A finite provider stream must not abandon its accepted handoff."""++ class NoDirectToolsProvider(FakeProvider):+ supports_direct_tools = False++ gate = asyncio.Event()+ brain = FakeBrain(replies=("The settings are open.",), gate=gate)+ provider = NoDirectToolsProvider(+ [+ RealtimeEvent(+ type="input_transcript",+ text="Open the settings view.",+ is_final=True,+ ),+ RealtimeEvent(+ type="handoff_requested",+ text="Open the settings view.",+ handoff_id="handoff-eof",+ ),+ ]+ )+ jsons: list[dict] = []+ sess = _session(provider, brain=brain, tool_mode="direct", jsons=jsons)++ await sess.handle_control({"type": "audio_start", "sample_rate": 16_000})+ await _wait_until(lambda: bool(brain.calls))+ finished = asyncio.create_task(sess.wait_finished())+ await asyncio.sleep(0)+ assert not finished.done()++ gate.set()+ await asyncio.wait_for(finished, timeout=2.0)++ surfaced = [item for item in jsons if item.get("type") == "error_spoken"]+ assert [item["text"] for item in surfaced] == ["The settings are open."]+ assert len([item for item in jsons if item.get("type") == "turn_complete"]) == 1+ assert not [item for item in jsons if item.get("type") == "provider_error"]+ await sess.end(reason="test")+ assert brain.cancelled is False++@pytest.mark.asyncioasync def test_delegate_directive_names_screen_control_and_forbids_capability_denial():"""The live model must know its on-screen reach and never deny it.@@ -4109,7 +4152,16 @@ async def test_native_realtime_promise_without_tool_recovers_via_orchestrator():assert provider.session.interrupts == 1assert provider.session.required_tools == [None]assert brain.calls[0][0] == utterance- assert "<trusted_action_result>" in provider.session.text_inputs[-1]+ provider_received_result = bool(+ provider.session.text_inputs+ and "<trusted_action_result>" in provider.session.text_inputs[-1]+ )+ surface_received_result = any(+ item.get("type") == "error_spoken"+ and item.get("text") == "Your Wiki contains three project pages."+ for item in jsons+ )+ assert provider_received_result or surface_received_resultassert binaries == []assert not any(item.get("role") == "assistant" and "Einen Moment" in item.get("text", "")diff --git a/tests/unit/test_provider_spec.py b/tests/unit/test_provider_spec.pyindex 8d608fe6f9..67a09739ef 100644--- a/tests/unit/test_provider_spec.py+++ b/tests/unit/test_provider_spec.py@@ -40,7 +40,7 @@ def test_only_subscription_cli_providers_use_cli_login() -> None:provider has none."""for spec in PROVIDERS:assert spec.auth_mode != "subscription_cli" # never the legacy literal- if spec.id == "codex":+ if spec.id in {"codex", "codex-subscription-realtime"}:assert spec.auth_mode == "codex"assert spec.login_cli == ("codex", "login")elif spec.id == "antigravity":diff --git a/tests/unit/web/test_agentic_ide_prompt_writer_route.py b/tests/unit/web/test_agentic_ide_prompt_writer_route.pyindex 8ba784cb7b..0fac2a8ffb 100644--- a/tests/unit/web/test_agentic_ide_prompt_writer_route.py+++ b/tests/unit/web/test_agentic_ide_prompt_writer_route.py@@ -17,6 +17,7 @@ async def test_listing_reports_the_current_choice_and_every_option(monkeypatch: pytest.MonkeyPatch,) -> None:monkeypatch.setattr(routes, "_writer_candidates", lambda: [("codex", True)])+ monkeypatch.setattr(routes, "_current_prompt_writer", lambda: "auto")state = await routes.prompt_writer_state()diff --git a/tests/unit/web/test_realtime_option_validation.py b/tests/unit/web/test_realtime_option_validation.pyindex fa6876955d..689754eefa 100644--- a/tests/unit/web/test_realtime_option_validation.py+++ b/tests/unit/web/test_realtime_option_validation.py@@ -118,5 +118,5 @@ def test_get_realtime_options_reports_preview_capability(assert api_response.json()["preview_available"] is Trueassert subscription_response.status_code == 200body = subscription_response.json()- assert body["preview_available"] is False+ assert body["preview_available"] is Trueassert [voice["id"] for voice in body["voices"]][0] == "cove"