feat: enhance billing dashboard with historical data & security hardening

- Fix usage tracking zero-value bug with self-healing logic
- Add month selector for historical usage views
- Implement start-of-month graceful initialization
- Merge PR #372: Harden user-scoped access in subscription routes
- Fix UI bugs in UsageDashboard component
This commit is contained in:
ajaysi
2026-03-05 10:21:56 +05:30
parent 261c224dca
commit 26131232c7
8 changed files with 234 additions and 161 deletions

View File

@@ -555,7 +555,10 @@ async def get_agent_huddle_feed_endpoint(
try:
user_id = str(current_user.get("id"))
service = AgentActivityService(db, user_id)
feed = service.get_huddle_feed(
# Use run_in_threadpool to execute the blocking service call in a separate thread
feed = await run_in_threadpool(
service.get_huddle_feed,
since=since,
cursor=cursor,
runs_limit=runs_limit,