Skip to content

fix: Replace budget display with actual token usage tracking #250

Closed

Description

@vybe

Problem

The current budget widget on the agent detail page is meaningless:

  • It estimates costs based on assumptions about API keys
  • It resets on agent/container restart
  • It displays fabricated data that doesn't reflect reality

Solution

  1. Remove the current budget/cost display entirely
  2. Replace with actual tokens used display
  3. Pull token usage from execution history data already stored in the database

Acceptance Criteria

  • Current budget widget removed from agent detail view
  • New "Tokens Used" display shows actual token consumption from execution records
  • Data persists across agent restarts (sourced from DB, not container state)
  • Data persists across container restarts (verify token counts survive docker restart)
  • Validated: stop/start agent and confirm token usage data is unchanged

Activity

  1. vybe commented on May 3, 2026

    @vybe
    ContributorAuthor

    /claim

  2. github-actions commented on May 3, 2026

    @github-actions

    Claimed by @vybe. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/250-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #250
  3. added
    status-in-progress
    on May 3, 2026
  4. added
    status-in-dev
    and removed
    status-in-progress
    on May 3, 2026
  5. added a commit that references this issue on Jun 1, 2026
  6. vybe commented on Jun 1, 2026

    @vybe
    ContributorAuthor

    Shipped in v0.6.0 (released via #998).

  7. removed
    status-in-dev
    on Jun 1, 2026
  8. added
    complexity-low
    theme-ui-ux
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p2theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions