INNER CODE UNIT · Python

_store_workspace_diff

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

    def _store_workspace_diff(
        self, stats: list[tuple[str, int, int]], diff_text: str,
        journal: Any | None = None, failure: str = "",
    ) -> None:
        self._workspace_diff_pending = False
        if failure:
            # An empty result from a failed read is indistinguishable from a
            # clean tree, which would hide the tab, drop the status counters
            # and tell the user nothing changed on disk. Keep the last good
            # snapshot and say the reading is stale instead.
            self._workspace_diff_error = failure
            self.diff_pane.show_error(failure)
            self._refresh_sidebar_titles()
            if self._completed_workspace_pending:
                # Resolve the reveal off the last good snapshot rather than
                # leaving the sidebar waiting on a read that will not arrive.
                self._completed_workspace_pending = False
                self._completed_workspace_needs_followup = False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…