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(marketplace): publish BrainToolsChanged when connected plugin refreshes
rubenluetke10-beepc1c341392e72
diff --git a/jarvis/marketplace/plugin_registry.py b/jarvis/marketplace/plugin_registry.pyindex e7d2885491..283992ec4e 100644--- a/jarvis/marketplace/plugin_registry.py+++ b/jarvis/marketplace/plugin_registry.py@@ -192,7 +192,7 @@ class PluginToolRegistry:if plugin is not None:await self._connect_plugin(plugin)now_has_tools = any(t.name.startswith(f"{plugin_id}/") for t in self._tools.values())- changed = had_tools != now_has_tools+ changed = had_tools or now_has_toolsif changed:await self._publish_brain_tools_changed(plugin_id, connected=now_has_tools)diff --git a/tests/unit/marketplace/test_plugin_registry.py b/tests/unit/marketplace/test_plugin_registry.pyindex 506fa99316..ae2531e0fd 100644--- a/tests/unit/marketplace/test_plugin_registry.py+++ b/tests/unit/marketplace/test_plugin_registry.py@@ -137,6 +137,22 @@ async def test_refresh_reconnect_publishes_connected_event():assert "plugin_connected:google-calendar" in reasons+async def test_refresh_already_connected_publishes_event():+ catalog = PluginCatalog(version=1, schema_version="1", plugins=[_calendar_plugin()])+ store = _store_with_calendar()+ bus = _RecordingBus()+ reg = PluginToolRegistry(catalog=catalog, token_store=store,+ client_factory=_FakeClient, bus=bus)+ await reg.bootstrap()+ assert reg.active_tools()+ bus.events.clear()+ await reg.refresh_plugin("google-calendar")+ assert reg.active_tools()+ reasons = [getattr(e, "reason", "") for e in bus.events]+ assert "plugin_connected:google-calendar" in reasons++@pytest.mark.asyncioasync def test_concurrent_bootstrap_and_refresh_no_corruption():"""bootstrap() and refresh_plugin() fired concurrently (server start vs a