From 7cff855c8a4d42c7974d1fa7b3f741fa6e70ac49 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 5 Oct 2026 22:35:58 -0700 Subject: [PATCH] fix: the dashboard reads update.log through the one log-path resolver The status route rebuilt /logs/update.log by hand while hermes_cli.logs.log_file_path("update") already owns that placement (root home for the update tee). One resolver, so a future move cannot split the writer and this reader. --- hermes_cli/web_routers/actions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hermes_cli/web_routers/actions.py b/hermes_cli/web_routers/actions.py index f0c60579a0..661379ac1c 100644 --- a/hermes_cli/web_routers/actions.py +++ b/hermes_cli/web_routers/actions.py @@ -379,10 +379,9 @@ async def get_action_status(name: str, lines: int = 200): if name == "hermes-update": # ``hermes update`` mirrors to the ROOT home's update.log (main_dashboard), never this # dashboard's profile home: read it where it is written. - from hermes_constants import get_default_hermes_root + from hermes_cli.logs import log_file_path - durable_update_action_id = _durable_completed_update_action_id( - _tail_lines(get_default_hermes_root() / "logs" / "update.log", 2000)) + durable_update_action_id = _durable_completed_update_action_id(_tail_lines(log_file_path("update"), 2000)) spawned_action_id = (_latest_spawned_update_action_id(_tail_lines(log_dir / log_file_name, 2000)) or _persisted_action_id(log_dir, name) or _ACTION_IDS.get(name)) if durable_update_action_id != spawned_action_id: