Skip to content

fix: use consistent date range for menubar status queries#136

Merged
iamtoruk merged 1 commit intogetagentseal:mainfrom
Miles-dev-29:fix/menubar-stale-price
Apr 22, 2026
Merged

fix: use consistent date range for menubar status queries#136
iamtoruk merged 1 commit intogetagentseal:mainfrom
Miles-dev-29:fix/menubar-stale-price

Conversation

@Miles-dev-29
Copy link
Copy Markdown

Problem

The menubar was showing stale prices. For example, menu bar showed $13.22 while the panel showed $23.86 for Claude.

Root Cause

The --provider all query used end: now (current moment) while --provider claude used end: endOfDay.

Sessions with timestamps slightly after now was captured were:

  • Excluded from all providers query
  • Included in specific provider query

This caused the totals to mismatch.

Fix

Use periodInfo.range consistently across all parseAllSessions calls in the menubar json status command.

Testing

Verified with continuous monitoring for 15+ minutes. All checks pass.

The menubar showed stale prices because provider all used end:now while provider specific queries used end:endOfDay. Sessions with timestamps after now was captured were excluded from all providers but included in specific provider queries.

Use periodInfo.range consistently across all parseAllSessions calls in menubar json status.
@iamtoruk iamtoruk merged commit bd83196 into getagentseal:main Apr 22, 2026
2 of 3 checks passed
iamtoruk added a commit that referenced this pull request Apr 22, 2026
Stale menubar price fix (#136), variable-width status item default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants