Regression: Session context info missing from header in v1.0.191 #3785

Closed
opened 2026-02-16 17:41:27 -05:00 by yindo · 1 comment
Owner

Originally created by @tonthanhhung on GitHub (Dec 23, 2025).

Originally assigned to: @rekram1-node on GitHub.

Bug

Session context information (tokens used and percentage) is no longer displayed in the top panel header in v1.0.191. This was working in v1.0.190.

Root Cause

In v1.0.191, the ContextInfo component was accidentally removed from packages/opencode/src/cli/cmd/tui/routes/session/header.tsx as part of the "Changed task tool container to block layout" change.

The removed code includes:

  • ContextInfo component that displayed tokens and percentage
  • context memo that calculated token usage from last assistant message
  • cost memo that calculated total cost
  • remeda imports (pipe, sumBy)

Expected Behavior

The header should display context info showing:

  • Total tokens used
  • Percentage of context limit (if applicable)
  • Total cost

Version

Broken: v1.0.191
Working: v1.0.190

Originally created by @tonthanhhung on GitHub (Dec 23, 2025). Originally assigned to: @rekram1-node on GitHub. ## Bug Session context information (tokens used and percentage) is no longer displayed in the top panel header in v1.0.191. This was working in v1.0.190. ## Root Cause In v1.0.191, the `ContextInfo` component was accidentally removed from `packages/opencode/src/cli/cmd/tui/routes/session/header.tsx` as part of the "Changed task tool container to block layout" change. The removed code includes: - `ContextInfo` component that displayed tokens and percentage - `context` memo that calculated token usage from last assistant message - `cost` memo that calculated total cost - `remeda` imports (pipe, sumBy) ## Expected Behavior The header should display context info showing: - Total tokens used - Percentage of context limit (if applicable) - Total cost ## Version Broken: v1.0.191 Working: v1.0.190
yindo added the opentui label 2026-02-16 17:41:27 -05:00
yindo closed this issue 2026-02-16 17:41:28 -05:00
Author
Owner

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

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

  • #6026: [FEATURE]: Option to always show context tokens/percentage in header or footer
  • #5801: Tokens use percentage show corrupted in TUI

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

@github-actions[bot] commented on GitHub (Dec 23, 2025): This issue might be a duplicate of existing issues. Please check: - #6026: [FEATURE]: Option to always show context tokens/percentage in header or footer - #5801: Tokens use percentage show corrupted in TUI Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3785