Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

fix(agent): initialize _fallback_active_index on Agent

P.N. Betad249b89f560f
diff --git a/cubepi/agent/agent.py b/cubepi/agent/agent.py
index bc2d8c0..bed0ce5 100644
--- a/cubepi/agent/agent.py
+++ b/cubepi/agent/agent.py
@@ -311,6 +311,7 @@ class Agent(Generic[TMessage]):
self._listeners: list[Callable] = []
self._active_signal: asyncio.Event | None = None
self._active_done: asyncio.Event | None = None
+ self._fallback_active_index: int = 0
@property
def state(self) -> AgentState: