Skip to content

Commit 77ca101

Browse files
committed
fix(tui): resolve undefined refresh_chrome in _on_stream exit-boundary replay
1 parent c85b59e commit 77ca101

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

frontends/tuiapp_v2.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6676,13 +6676,12 @@ def _on_stream(self, agent_id, task_id, text, done):
66766676
m.done = True
66776677
found = m
66786678
break
6679-
if found and agent_id == self.current_id:
6680-
if found._segment_widgets:
6681-
try: self._stream_update_assistant(found)
6682-
except Exception: self._refresh_messages()
6683-
else:
6684-
self._refresh_messages()
6685-
if refresh_chrome:
6679+
if found and agent_id == self.current_id:
6680+
if found._segment_widgets:
6681+
try: self._stream_update_assistant(found)
6682+
except Exception: self._refresh_messages()
6683+
else:
6684+
self._refresh_messages()
66866685
self._refresh_sidebar()
66876686
self._refresh_topbar()
66886687
self._ensure_spinner()

0 commit comments

Comments
 (0)