Skip to content

feat: count requests in usage reports - #444

Open
ils15 wants to merge 1 commit into
slkiser:mainfrom
ils15:feature/442-usage-request-count
Open

ils15 wants to merge 1 commit into
slkiser:mainfrom
ils15:feature/442-usage-request-count

Conversation

@ils15

@ils15 ils15 commented Nov 8, 2026

Copy link
Copy Markdown

Summary

Add the completed-request count to the usage report and display it in the Web Usage view and TUI /quota_usage output. A request is a completed, non-aborted assistant message with usage metadata, or a usage-bearing compaction.

Linked issue

Fixes #442

OpenCode validation

  • OpenCode v2.2.5; dark theme; Web 1440×900; TUI 1600×1000.
  • Tested Web Usage and TUI /quota_usage; the after screenshots show 3 requests.
  • The TUI evidence has its local path and terminal/session identifier redacted.

Before-and-after evidence

Web Usage

Before: Before — Web Usage

After: After — Web Usage

TUI /quota_usage

Before: Before — TUI quota usage

After: After — TUI quota usage

Surface checks

  • Tested: Web Usage; TUI /quota_usage.
  • Not tested: sidebar open/collapsed, status line, toasts, other tabs/settings, Web /quota and /quota_status, Desktop GUI/commands (Desktop unavailable), CLI show/status, export, telemetry, and agent tools. No Desktop coverage is claimed.

Verification

  • The pre-commit hook passed (vp check --fix --no-error-on-unmatched-pattern).
  • The pre-push pnpm verify hook passed: checks, TypeScript/version and v4-history verification, build, full test suite (148 files passed, 1 skipped; 3,947 tests passed, 2 skipped), and package-content verification.
  • Themis code review: PASS.

Integration recommendation

Consider #442 before #441. The branches touch shared paths; if main advances, resolve or rebase #441 independently against main. This PR targets main and is not stacked on #441.

@github-actions github-actions Bot added the feature New feature or behavior change label Nov 8, 2026
@ils15
ils15 marked this pull request as ready for review November 8, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usage tab shows tokens and cost but no request count

1 participant