Oliver-ai-bot_2.0/backend/app/services
Vadym Samoilenko 829808081a fix: sync_agent always fetches usage stats via own DB session
Previously sync_agent was called without db in all 3 agent endpoints,
so usage_stats was None and tokens/conversations/unique_users were never
sent to the collector (showing N/A in AgentHub). Now sync_agent opens
its own AsyncSession when no db is passed, avoiding the closed
request-scoped session issue.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 21:33:24 +01:00
..
__init__.py feat: sync Nexus agents to AgentHub collector on create/update/status change 2026-03-30 18:38:59 +01:00
agent_collector.py fix: sync_agent always fetches usage stats via own DB session 2026-03-30 21:33:24 +01:00
agent_usage.py feat: code interpreter, agent analytics/execute APIs, usage sync, RAG scoping fixes 2026-03-30 20:13:27 +01:00