The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(auth): drop impossible auth_store dict guard
kshitijk4poor96cce6843db9
diff --git a/agent/credential_pool.py b/agent/credential_pool.pyindex f69f0e79a65..cd64a15a1a7 100644--- a/agent/credential_pool.py+++ b/agent/credential_pool.py@@ -831,7 +831,7 @@ def _singleton_target_for_entry(pool: "CredentialPool", entry: "PooledCredentialdef _store_owns_pool_provider(auth_store: Dict[str, Any], provider: str) -> bool:"""True when an already-loaded *auth_store* has its own rows for *provider*."""- pool = auth_store.get("credential_pool") if isinstance(auth_store, dict) else None+ pool = auth_store.get("credential_pool")entries = pool.get(provider) if isinstance(pool, dict) else Nonereturn isinstance(entries, list) and bool(entries)