INNER CODE UNIT · Python
_refresh_chrome
ApodexAI/FrontierAgent · apodex/tui/app.py:825
def _refresh_chrome(self) -> None:
"""Synchronize the title, sidebar and status with mutable session state."""
self.query_one("#title", Static).update(
self._title_text()
)
self.set_usage(self.session.usage, self.session.cfg.context_window)
try:
from apodex.todo import get_todos
self.show_todos(get_todos())
except Exception:
logger.exception("failed to restore TUI plan state")
self._refresh_status()
self._refresh_attachments()
def _refresh_attachments(self) -> None:
"""Render compact attachment chips without exposing original host paths."""
bar = getattr(self, "attachments_bar", None)
manager = getattr(self.session, "attachments", None)