diff --git a/frontends/tuiapp_v2.py b/frontends/tuiapp_v2.py index 2c7244d4..217aa608 100644 --- a/frontends/tuiapp_v2.py +++ b/frontends/tuiapp_v2.py @@ -3974,6 +3974,11 @@ def _refresh_bottombar(self): def _refresh_sidebar(self): if not self.is_mounted: return + now = time.monotonic() + if hasattr(self, '_last_sidebar_refresh'): + if now - self._last_sidebar_refresh < 1.0: + return + self._last_sidebar_refresh = now self.query_one("#sidebar", Static).update(render_sidebar(self.sessions, self.current_id)) def _at_bottom(self, container) -> bool: