From d3832a24bcd44536f48846a239f92b41e93d10dd Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Fri, 10 Jul 2026 18:44:38 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20fast-version=20follow-ups=20=E2=80=94=20?= =?UTF-8?q?PROJECT=5FROOT=20NameError=20+=20renamed=20output=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _print_fast_version_info referenced the PROJECT_ROOT module constant, which is defined AFTER the ultrafast exit point. On current main this is a LIVE latent bug: the Termux fast path NameErrors on --version (eb4040242 changed the print to use PROJECT_ROOT without noticing the constant doesn't exist yet on that path). Compute the root locally. - PR tests asserted the old 'Project:' label; main renamed it to 'Install directory:' (eb4040242). Expectations updated. --- hermes_cli/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hermes_cli/main.py b/hermes_cli/main.py index 20d5dd5f42d73..533767d7c5dd6 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -457,7 +457,10 @@ def _print_fast_version_info() -> None: from hermes_cli import __release_date__, __version__ print(f"Hermes Agent v{__version__} ({__release_date__})") - print(f"Install directory: {PROJECT_ROOT}") + # PROJECT_ROOT (module constant) is defined AFTER the ultrafast exit — + # referencing it here NameErrors (live bug on main since eb4040242 broke + # the Termux fast path). Compute it locally. + print(f"Install directory: {_project_root_str_fast()}") print(f"Python: {sys.version.split()[0]}")