[PR #3405] Bug fix/3322 web and tui report token usage differently #10632

Closed
opened 2026-02-16 18:15:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3405

State: closed
Merged: Yes


addresses #3322

Summary of Changes Since opentui Branch

The main focus has been on standardizing token usage metrics across the TUI and Web interfaces:

Key Changes:

  1. Token Metrics Alignment - Unified how token usage is calculated and displayed between TUI and Web UI
  2. Enhanced TUI Sidebar - Added total token usage display in the TUI session sidebar
  3. Improved Share UI - Enhanced the Web Share component to surface token usage information
  4. Comprehensive Testing - Added extensive test coverage for token metrics consistency

Visual design

image image
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3405 **State:** closed **Merged:** Yes --- addresses #3322 ## Summary of Changes Since `opentui` Branch The main focus has been on **standardizing token usage metrics across the TUI and Web interfaces**: ### Key Changes: 1. **Token Metrics Alignment** - Unified how token usage is calculated and displayed between TUI and Web UI 3. **Enhanced TUI Sidebar** - Added total token usage display in the TUI session sidebar 4. **Improved Share UI** - Enhanced the Web Share component to surface token usage information 5. **Comprehensive Testing** - Added extensive test coverage for token metrics consistency ### Visual design <img width="349" height="409" alt="image" src="https://github.com/user-attachments/assets/be906db5-cdd3-4e7c-938f-ee1d3c9cb510" /> <img width="906" height="134" alt="image" src="https://github.com/user-attachments/assets/a4303b8c-a7c2-45b1-97da-ebf329709559" />
yindo added the pull-request label 2026-02-16 18:15:20 -05:00
yindo closed this issue 2026-02-16 18:15:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10632