Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(web): stop warning when index.html is briefly absent during a rebuild
rubenluetke10-beepb299254eed17
diff --git a/jarvis/ui/web/spa_build.py b/jarvis/ui/web/spa_build.pyindex fd3f3d2893..af52eec10e 100644--- a/jarvis/ui/web/spa_build.py+++ b/jarvis/ui/web/spa_build.py@@ -117,6 +117,10 @@ def recover_conflicted_index(index_file: Path, dist_dir: Path) -> str | None:"""try:lines = index_file.read_text(encoding="utf-8", errors="replace").splitlines(keepends=True)+ except FileNotFoundError:+ # A rebuild removes index.html for a moment; there is no conflict to+ # recover and nothing to warn about — the caller serves the holding page.+ return Noneexcept OSError:logging.getLogger(__name__).warning("Cannot inspect the conflicted frontend index at %s", index_file, exc_info=Truediff --git a/tests/unit/ui/web/test_spa_build_completeness.py b/tests/unit/ui/web/test_spa_build_completeness.pyindex bed156df7b..9276cefa28 100644--- a/tests/unit/ui/web/test_spa_build_completeness.py+++ b/tests/unit/ui/web/test_spa_build_completeness.py@@ -289,3 +289,10 @@ class TestTheRealAppServesTheHoldingPage:dist = _dist(tmp_path, index=False)assert isinstance(self._response(monkeypatch, dist), HTMLResponse)+++def test_a_missing_index_during_a_rebuild_is_not_a_conflict(tmp_path, caplog) -> None:+ """A rebuild deletes index.html for a moment: that is the holding-page case,+ not a conflicted merge, and it logged a warning with a traceback each time."""+ assert recover_conflicted_index(tmp_path / "index.html", tmp_path) is None+ assert not [r for r in caplog.records if r.levelname == "WARNING"]