Skip to content

The agent that grows with you

fix: fast-version follow-ups — PROJECT_ROOT NameError + renamed output label

kshitijk4poord3832a24bcd4
diff --git a/hermes_cli/main.py b/hermes_cli/main.py
index 20d5dd5f42d..533767d7c5d 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]}")