Skip to content
Back to skills

477 2026 02 02 Resource Bar Usage Totals 9dc2c823

ASecurity

The resource bar now reads token totals from accumulated usage metrics rather than heuristic message counts, keeping the UI aligned with provider-reported usage.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 1, 2026
researchapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 1, 2026

npx -y skills add tools-only/X-Skills --skill 477-2026-02-02-resource-bar-usage-totals_9dc2c823 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 477 2026 02 02 Resource Bar Usage Totals 9dc2c823?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 477 2026 02 02 Resource Bar Usage Totals 9dc2c823
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-477-2026-02-02-resource-bar-usage-totals-9dc2c823/badge)](https://www.skillsdirectory.com/skills/tools-only-477-2026-02-02-resource-bar-usage-totals-9dc2c823)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
title: Resource bar shows usage-total tokens
link: resource-bar-usage-totals
type: delta
path: src/tunacode/ui/app.py
depth: 0
seams: [S, M]
ontological_relations:
  - relates_to: [[resource-bar]]
  - affects: [[usage-tracking]]
  - affects: [[ui-tokens]]
tags:
  - ui
  - tokens
  - usage
created_at: 2026-02-02T17:05:00-06:00
updated_at: 2026-02-02T17:05:00-06:00
uuid: d674d5bd-6143-48dc-a434-8c6b9cce387b
---

# Resource bar shows usage-total tokens

## Summary

The resource bar now reads token totals from accumulated usage metrics rather than
heuristic message counts, keeping the UI aligned with provider-reported usage.

## Context

`TextualReplApp._update_resource_bar()` previously used `conversation.total_tokens`,
which is derived from per-message estimation.

## Changes

- Switched resource bar token source to `session.usage.session_total_usage.total_tokens`.

## Behavioral Impact

- Token display reflects API usage totals after each request.
- Context-window counts are no longer used for the UI token indicator.

## Related Cards

- [[usage-total-token-source]]
- [[remove-heuristic-token-counting]]

Files in this skill

  • README.md1 KB
  • skill.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.