mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
_enforce_grok_cost_budget killed + evicted the container without calling _finalize_spawn_session, so the open agent_spawn_sessions row stayed open (ended_at IS NULL) and the burned usage/cost was never recorded in the dashboard. Call _finalize_spawn_session(exit_reason='cost_cap') BEFORE popping the instance — it reads self._instances[agent_id] for the model + usage_session_id, which the pop would lose.