The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: pin the hit-path copy guard on the provider snapshot cache
kshitij51743f490467
diff --git a/tests/providers/test_provider_registry.py b/tests/providers/test_provider_registry.pyindex e97fd964fcb..c31879dcba0 100644--- a/tests/providers/test_provider_registry.py+++ b/tests/providers/test_provider_registry.py@@ -46,6 +46,11 @@ def test_list_providers_reuses_cached_snapshot_until_registration_changes():assert providers.list_providers() == [first]+ # Hit-path copy guard: mutating a CACHED return must not corrupt the+ # module-level snapshot for later callers (aliasing bug class).+ providers.list_providers().clear()+ assert providers.list_providers() == [first]+second = _profile("beta")providers.register_provider(second)