Skip to content

Timeline data does not accurately reflect actual usage patterns #58

@GalDayan

Description

@GalDayan

Bug Report

Issue: The "Total Usage Over Time" chart does not accurately represent actual agent usage. Real work periods are shown as small spikes while other periods show disproportionately large activity.

Expected:
If significant work happened from 10:00-12:00 (Israel time), that period should show a prominent spike in the chart.

Actual:

  • Heavy usage periods (10:00-12:00) show minimal activity
  • The chart shows a large spike at Mar 12 05:00-07:00 instead
  • Data distribution doesn't match actual usage patterns

Screenshot:
See image showing discrepancy - large spike at wrong time, minimal activity during actual heavy usage.

Possible causes:

  1. Timezone handling issues (sessions recorded in UTC but displayed incorrectly)
  2. Cost/token aggregation logic not reflecting actual session intensity
  3. Session bucketing (hourly grouping) miscalculating totals
  4. Chart data filtering excluding valid sessions

Priority: P1 — affects core analytics reliability

Related:

  • PR fix: demo/mock data respects time window filters and zoom #57 fixed timezone issues in date parsing, but aggregation logic may still be off
  • Should verify that session.cost and session.tokens are being summed correctly per time bucket
  • Need to validate that all sessions in a time range are included in the bucket calculation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions