fix(auth): treat empty credential pool entries as unauthenticated

Fixes #28140

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rudi193-cmd
2026-05-18 19:33:02 -07:00
committed by Teknium
parent 8dca28775e
commit 95846eddd2

View File

@@ -1232,7 +1232,7 @@ def list_authenticated_providers(
try: try:
from hermes_cli.auth import _load_auth_store from hermes_cli.auth import _load_auth_store
store = _load_auth_store() store = _load_auth_store()
if store and hermes_id in store.get("credential_pool", {}): if store and store.get("credential_pool", {}).get(hermes_id):
has_creds = True has_creds = True
except Exception: except Exception:
pass pass