diff --git a/frontends/tuiapp_v2.py b/frontends/tuiapp_v2.py index c8694c5d2..0fa9158f0 100644 --- a/frontends/tuiapp_v2.py +++ b/frontends/tuiapp_v2.py @@ -6676,13 +6676,12 @@ def _on_stream(self, agent_id, task_id, text, done): m.done = True found = m break - if found and agent_id == self.current_id: - if found._segment_widgets: - try: self._stream_update_assistant(found) - except Exception: self._refresh_messages() - else: - self._refresh_messages() - if refresh_chrome: + if found and agent_id == self.current_id: + if found._segment_widgets: + try: self._stream_update_assistant(found) + except Exception: self._refresh_messages() + else: + self._refresh_messages() self._refresh_sidebar() self._refresh_topbar() self._ensure_spinner()