Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(agentic-ide): harden the in-flight brief ledger against an empty entry

rubenluetke10-beep2ddfe4c2b341
diff --git a/jarvis/agentic_ide/fanout.py b/jarvis/agentic_ide/fanout.py
index 5b629b91c0..8c583c6ec6 100644
--- a/jarvis/agentic_ide/fanout.py
+++ b/jarvis/agentic_ide/fanout.py
@@ -531,14 +531,16 @@ async def deliver(
try:
delivery = await _one(name)
finally:
+ # Truthiness, not `is not None`: an empty list left behind by a
+ # sibling must not make pop() raise inside a finally clause.
starts = _IN_FLIGHT.get(key)
- if starts is not None:
+ if starts:
if started in starts:
starts.remove(started)
else: # pragma: no cover - defensive, clocks are monotonic
starts.pop()
- if not starts:
- _IN_FLIGHT.pop(key, None)
+ if not _IN_FLIGHT.get(key):
+ _IN_FLIGHT.pop(key, None)
try:
from .prompt_composer import announce_delivery