INNER CODE UNIT · Python

on_render

ApodexAI/FrontierAgent · apodex/tui/app.py:687

    async def on_render(self, message: Render) -> None:
        """Apply one queued UI mutation, in order (see messages.Render)."""
        try:
            result = message.fn(self)
            if inspect.isawaitable(result):
                await result
        except Exception:
            logger.exception("TUI render mutation failed")

    def _refresh_sidebar_titles(self) -> None:
        """Keep tab labels' off-screen counts current.

        Driven from the status tick rather than wired into every mutation, so no
        code path can forget it. Cached because ``Static.update`` refreshes
        unconditionally and this runs 2.5×/s.
        """
        for widget_id, label, summary in (
            ("#sidebar-tab-plan", "Plan", self.todos_pane.summary()),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…