Skip to content

Add daily budget remaining metric for weekly/monthly limits #46274

Closed as not planned

Description

@zumik3-del

Feature request

Show the remaining daily budget in % for weekly and monthly usage cards in the panel.

Formula

remainingDays = ceil(resetInSec / 86400)
dailyRemaining = (100% / remainingDays) - currentUsagePercent
  • Positive value → still have budget left for today
  • Negative value → already exceeded today's fair share

Example

Today is Monday, weekly usage at 20%, reset in 6 days:

  • remainingDays = 6
  • dailyRemaining = (1/6) - 0.20 = -3.3% → over budget

Changes

  1. providers/OpencodeGo.qml — compute secondaryDailyRemaining and monthlyDailyRemaining from resetInSec
  2. Panel.qml — add "Daily budget: ±X%" line in weekly/monthly cards
  3. formatUtils.js — add formatDaily(fraction) for signed formatting

Display

  • Green if > 0, red if < 0
  • Show in panel cards only (not bar widget)

Activity

  1. github-actions commented on Aug 30, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature request titles must start with [FEATURE]: (e.g., [FEATURE]: Add daily budget remaining metric for weekly/monthly limits)

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions commented on Aug 30, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions