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.

docs(bugs): record BUG-226 and pin display-only errors in the chat binding (#317)

Ruben Lütke9d63860385e7
diff --git a/docs/BUGS.md b/docs/BUGS.md
index a6faa116cf..7bde7d3491 100644
--- a/docs/BUGS.md
+++ b/docs/BUGS.md
@@ -15934,6 +15934,52 @@ permission need. The rows to close these are in `docs/macos-permissions.md` sect
(each carries a "superseded" note), ADR-0038, `docs/os-parity.md`,
`docs/product/privacy-safety-and-support/permissions.md`.
+## BUG-226: an agent's answer never came back during a browser voice call — the user had to ask for it (HIGH, FIXED 2026-10-02)
+
+**Symptom.** In a GPT-Live call Jarvis sent Jarvis-Scout a research task and
+said "I'll tell you when it's done". Scout finished five minutes later; Jarvis
+stayed silent for the rest of the call until the user asked "is Scout back?".
+In the same call a mission's "Almost there" line came out in a second, classic
+TTS voice on top of the live call. Scout's finished research was also filed as
+"blocked".
+
+**Cause.** Three gaps:
+
+1. A browser or native live call (`jarvis/live/session.py`) runs beside the
+ speech pipeline. The pipeline never got its handle (`_active_realtime_handle`
+ stays `None`), and `_voice_engine_transitioning` stayed `True` for the whole
+ call, because only the desktop realtime path clears it on `audio_ready`. So
+ `_agent_reply_needs_session()` was true for the entire call: every
+ `society.lead` / `agentic_ide.readback` result waited in the delegation inbox
+ until the call ended, and `_realtime_session_owns_voice()` was false, so
+ other readbacks fell through to classic TTS.
+2. Even with a handle, the pipeline offers owed replies only on its own
+ `LISTENING` transitions and settles them on the desktop `turn_complete`. A
+ live call has neither, so a delivered reply would have stayed "in flight"
+ and blocked every later one.
+3. `agent_chat/media.py` emits a `kind: error` event when a mentioned picture
+ cannot be displayed; `society/runtime.py::_watch_turn` treated any error
+ event as a failed turn.
+
+**Fix.** (1) The pipeline treats an active `jarvis.live` call as the realtime
+voice owner (`_live_call`, `_realtime_voice_handle`, `_agent_reply_floor_open`).
+(2) The live session reports conversational pauses (`ready_for_report`,
+`_notify_pause` → `SpeechPipeline.live_call_paused`) — on every indicator
+change, when the user falls silent, when a tool task finishes and when audio
+first flows — and tracks a handed-over report (sent → started → done/failed,
+20 s start timeout). The pipeline settles its in-flight reply on that outcome,
+offers an unvoiced one again (at most `_LIVE_REPLY_MAX_ATTEMPTS`, then the next
+call), and keeps a reply that was still on its way at hang-up for the next call
+(`live_call_ended`). Several results finishing together are still one grouped
+report; results arriving while one is spoken follow at the next pause.
+(3) Display errors carry `display_only`, picture rows carry `media_only`; the
+society turn watcher and the agent MCP tool ignore both for the turn's status
+and final text.
+Guards: `tests/unit/speech/test_live_call_agent_replies.py`,
+`tests/unit/live/test_report_delivery.py`,
+`tests/unit/society/test_chat_binding.py::test_a_picture_that_could_not_be_shown_does_not_block_finished_work`,
+`tests/unit/agent_chat/test_media.py::test_display_errors_are_marked_so_they_never_fail_the_turn`.
+
## BUG-227: "send Jarvis Scout a message" found no agent when speech misheard the name (HIGH, FIXED 2026-10-02)
**Symptom.** On a voice call the user asked Jarvis to message their agent
diff --git a/tests/unit/society/test_chat_binding.py b/tests/unit/society/test_chat_binding.py
index 8d7f0fb750..89ccdcca43 100644
--- a/tests/unit/society/test_chat_binding.py
+++ b/tests/unit/society/test_chat_binding.py
@@ -1102,6 +1102,38 @@ async def test_failed_turn_becomes_a_blocked_result(tmp_path: Path):
await rt.close()
+async def test_a_picture_that_could_not_be_shown_does_not_block_finished_work(tmp_path: Path):
+ """Live 2026-10-02: Scout's finished research came back "blocked" because
+ two screenshots it mentioned could not be displayed in its chat."""
+ import asyncio
+
+ svc = FakeTurnService(AgentChatStore(tmp_path / "agent_chat.db"))
+ cfg = SimpleNamespace(memory=SimpleNamespace(data_dir=str(tmp_path / "data")))
+ rt = SocietyRuntime(
+ tmp_path, seed_starter_team=False, chat_service=lambda: svc, cfg=lambda: cfg
+ )
+ await rt.ensure_started()
+ try:
+ await rt.roster.create(name="Scout", provider="openai")
+ env = await rt.say(from_agent="user", to_agent="scout", text="x", msg_type=MsgType.ASSIGN)
+ for q in list(svc.queues["society:scout"]):
+ for kind, payload in (
+ ("assistant_text", {"text": "Research done: three findings."}),
+ ("assistant_text", {"text": "![image](/media/a.png)", "media_only": True}),
+ ("error", {"message": "Media could not be displayed: a.png",
+ "display_only": True}),
+ ("turn_finished", {"status": "ok"}),
+ ):
+ q.put_nowait({"kind": kind, "payload": {"turn_id": "turn-1", **payload}})
+ await asyncio.sleep(0.05)
+ result = (await rt.store.events_for_trace(env.trace_id))[-1]
+ assert result.msg_type is MsgType.RESULT
+ assert result.payload["status"] == "done"
+ assert result.payload["done"] == "Research done: three findings."
+ finally:
+ await rt.close()
+
+
async def test_empty_successful_turn_does_not_claim_task_completion(tmp_path: Path):
import asyncio