docs(auth): note get_default_hermes_root in the global-store memo docstring

(cherry picked from commit 64de1a13f967c5735d861b972fe6c65e89f5af17)
This commit is contained in:
spfcraze
2026-08-03 16:01:09 -04:00
committed by Teknium
parent 47400fe2af
commit 2a5093eeff
+2 -1
View File
@@ -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