-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
agent:copilotAssigned to GitHub Copilot agentAssigned to GitHub Copilot agentenhancementNew feature or requestNew feature or request
Description
Context
packages/storage/src/aggregation-queries.ts has team-level aggregation but no way to filter by agent. The sessions table now has an indexed agent_id column (migration v5).
Work Items
- Add
agentId?: stringtoAggregationTimeFilterinterface - Wire it into
buildTimeConditions()to join/filter againstsessions.agent_id - Refactor
agentSummaries()to use indexedsessions.agent_idinstead ofjson_extract()on RunStarted event data — much faster for large datasets - Update tests
Files
packages/storage/src/aggregation-queries.tspackages/storage/src/types.ts(AggregationTimeFilter)packages/storage/tests/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agent:copilotAssigned to GitHub Copilot agentAssigned to GitHub Copilot agentenhancementNew feature or requestNew feature or request