Tokens use percentage show corrupted in TUI #3667

Open
opened 2026-02-16 17:41:03 -05:00 by yindo · 2 comments
Owner

Originally created by @jazik on GitHub (Dec 19, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Not sure what triggered this but at some point the token percentage turned to:

Image

The % is gone and the number is printed shifted.

OpenCode version

1.0.164

Steps to reproduce

Not sure what triggered this, I have quite long complicated session ongoing and after couple hours this happened. And now it is permanent. I can get a trace or anything what would help if someone would share what to provide. I'll try to keep session open.

Screenshot and/or share link

No response

Operating System

Fedora 42

Terminal

GNOME Terminal with oh-my-zsh and PowerLevel10k fonts, https://github.com/jazik/termenv

Originally created by @jazik on GitHub (Dec 19, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Not sure what triggered this but at some point the token percentage turned to: <img width="161" height="100" alt="Image" src="https://github.com/user-attachments/assets/1bb19a05-a92e-45f3-92f0-75199a0b0754" /> The % is gone and the number is printed shifted. ### OpenCode version 1.0.164 ### Steps to reproduce Not sure what triggered this, I have quite long complicated session ongoing and after couple hours this happened. And now it is permanent. I can get a trace or anything what would help if someone would share what to provide. I'll try to keep session open. ### Screenshot and/or share link _No response_ ### Operating System Fedora 42 ### Terminal GNOME Terminal with oh-my-zsh and PowerLevel10k fonts, https://github.com/jazik/termenv
yindo added the opentuibug labels 2026-02-16 17:41:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 19, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #229: bug: Missing validation for token calculations causes display issue - This appears to be the exact same problem with token percentage displaying incorrectly in the TUI due to float64 calculation issues being converted to int.
  • #1864: tui rendering artifacting - General TUI rendering issues that might be related.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 19, 2025): This issue might be a duplicate of existing issues. Please check: - #229: bug: Missing validation for token calculations causes display issue - This appears to be the exact same problem with token percentage displaying incorrectly in the TUI due to float64 calculation issues being converted to int. - #1864: tui rendering artifacting - General TUI rendering issues that might be related. Feel free to ignore if none of these address your specific case.
Author
Owner

@jazik commented on GitHub (Dec 19, 2025):

Image
@jazik commented on GitHub (Dec 19, 2025): <img width="409" height="48" alt="Image" src="https://github.com/user-attachments/assets/86e9fc76-c500-4ea4-a121-af110cd9a8c5" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3667