From 2a5093eefffafafe45df2430e7efcf9ca9c94f9a Mon Sep 17 00:00:00 2001 From: spfcraze Date: Mon, 3 Aug 2026 16:01:09 -0400 Subject: [PATCH] docs(auth): note get_default_hermes_root in the global-store memo docstring (cherry picked from commit 64de1a13f967c5735d861b972fe6c65e89f5af17) --- hermes_cli/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hermes_cli/auth.py b/hermes_cli/auth.py index efb120ab27..c10032c305 100644 --- a/hermes_cli/auth.py +++ b/hermes_cli/auth.py @@ -1106,7 +1106,8 @@ def _load_global_auth_store() -> Dict[str, Any]: Memoised keyed on the global auth file's path + mtime (same pattern as ``_nous_auth_status_cache``): read_credential_pool() -> load_pool() runs this once per provider row in the /model picker, and the path resolution - + JSON parse cost ~105us+ per call even when nothing changed. The global + (``_global_auth_file_path()`` -> ``get_default_hermes_root()``) + JSON + parse cost ~105us+ per call even when nothing changed. The global store only changes when the user authenticates at global scope (writes always go through _save_auth_store, which touches the file), so the mtime key keeps the memo freshness-correct. Callers must treat the returned