INNER CODE UNIT · Python

_mark_llm_degraded

pikpikcu/airecon · airecon/tui/app.py:363

    def _mark_llm_degraded(self, reason: str = "") -> None:
        if not self._processing:
            return
        self._llm_degraded_until = max(
            self._llm_degraded_until,
            time.monotonic() + self._LLM_DEGRADED_SECONDS,
        )
        if reason:
            logger.warning(
                "Marking LLM status degraded due to recovery event: %s", reason
            )
        try:
            self.query_one("#status-bar", StatusBar).set_status(llm_degraded=True)
        except Exception as e:
            logger.debug("Expected failure in _mark_llm_degraded set_status: %s", e)

    def compose(self) -> ComposeResult:
        yield Header()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…