CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
test(recorder): assert chunk+response listener dedupe symmetry with meter
xf gong41f5cc495a08
diff --git a/tests/tracing/test_recorder.py b/tests/tracing/test_recorder.pyindex 24623d2..1456c81 100644--- a/tests/tracing/test_recorder.py+++ b/tests/tracing/test_recorder.py@@ -1565,9 +1565,13 @@ class TestFallbackChainCoverage:tracer = Tracer(service_name="t", agent_name="a", exporters=[exporter])tracer.attach(agent)- # Each event type registered exactly once on the shared provider.- request_listeners = list(getattr(shared, "_request_listeners", []))- assert len(request_listeners) == 1, request_listeners+ # Each event type registered exactly once on the shared provider —+ # matches the meter dedupe test for symmetry. Without the chunk /+ # response asserts, a regression that double-subscribed only the+ # streaming or terminal listener would slip through.+ assert len(getattr(shared, "_request_listeners", [])) == 1+ assert len(getattr(shared, "_chunk_listeners", [])) == 1+ assert len(getattr(shared, "_response_listeners", [])) == 1await tracer.shutdown()