From 95846eddd2a2453049a090c2e8f9a96c5f1f480b Mon Sep 17 00:00:00 2001 From: rudi193-cmd <236912655+rudi193-cmd@users.noreply.github.com> Date: Mon, 18 May 2026 19:33:02 -0700 Subject: [PATCH] fix(auth): treat empty credential pool entries as unauthenticated Fixes #28140 Co-Authored-By: Claude Sonnet 4.6 --- hermes_cli/model_switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermes_cli/model_switch.py b/hermes_cli/model_switch.py index 727905270e1..d1691ab2858 100644 --- a/hermes_cli/model_switch.py +++ b/hermes_cli/model_switch.py @@ -1232,7 +1232,7 @@ def list_authenticated_providers( try: from hermes_cli.auth import _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 except Exception: pass