Skip to content

feat: surface Cloud Agent usage from usage events - #7

Merged
pj-workspace merged 1 commit into
mainfrom
feat/cloud-agent-usage
Aug 5, 2026
Merged

pj-workspace merged 1 commit into
mainfrom
feat/cloud-agent-usage

Conversation

@pj-workspace

Copy link
Copy Markdown
Owner

Summary

  • Parse cloudAgentId and isHeadless from get-filtered-usage-events so Cloud Agent runs are no longer dropped at decode time
  • Add overview card with request count, spend, tokens, unique agents, and top models
  • Add Events tab source filter (All / Cloud Agent / Local), badges, and expanded Agent ID
  • Label USAGE_EVENT_KIND_INCLUDED_IN_ULTRA events correctly

Test plan

  • ./scripts/build-app.sh release succeeds
  • Open app, wait for full event cache load
  • Overview → Cloud Agent usage shows non-zero stats when Cloud Agent events exist
  • Events → filter by Cloud Agent; rows show badge and bc-... ID when expanded

Production risk

Low — read-only parsing and UI on existing usage events API; no auth or billing logic changes.

Parse cloudAgentId/isHeadless from billing events, add overview stats,
source filtering in the event list, and Ultra included kind labeling.
Copilot AI lite review requested due to automatic review settings August 5, 2026 09:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@pj-workspace
pj-workspace merged commit 98ad9e3 into main Aug 5, 2026
1 check passed
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