diff --git a/lumen/ai/ui.py b/lumen/ai/ui.py index 7d19a5c9..cc9a6cb7 100644 --- a/lumen/ai/ui.py +++ b/lumen/ai/ui.py @@ -335,6 +335,9 @@ def _global_export_notebook(self): async def _update_conversation(self, event=None, tab=None): active = self._explorations.active + if len(self._conversations) <= active: + return + if tab is None: # When user switches tabs and coordinator is running # wait to switch the conversation context