fix: show session aggregates when history is unavailable - #13
Merged
zhumengzhu merged 1 commit intoSep 4, 2026
Merged
Conversation
Owner
|
Thanks @sebas77 — reviewed carefully and verified the fix against the real data path:
One minor nit for future PRs: the new term re-invokes Merging now — this will ship in v0.7.4 tonight (2026-09-04). Thanks for the solid reproduction and disclosure. |
zhumengzhu
added a commit
that referenced
this pull request
Sep 5, 2026
PR #13 (show session aggregates when history is unavailable) is the only change since 0.7.3; release as a patch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The sidebar shows Waiting for cache data when its per-message history list is empty, even if OpenCode session.get() already provides valid aggregate cache and token metrics.
This can occur when the initial history fetch is unavailable or resolves before the TUI message mirror is populated. The aggregate metrics remain valid, but the panel is hidden because hasData() only considers message-derived lineages and sub-agent data.
Fix
Treat a non-empty main-session aggregate as data for panel visibility.
Per-turn history remains responsible for trends and lineage details; if it is unavailable, the existing incomplete-history indicator remains applicable.
Validation