mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
The header context count differed from the OpenCode TUI and dipped then jumped back up mid-session: - cache write tokens were left out of the total, so context stored as a cache write was dropped and then reappeared as a cache read on the next step - the newest assistant message without token data was skipped only one message back, so a step without usage showed 0 or a stale count The total now includes cache write tokens and the newest assistant message that reports tokens is counted, matching the TUI: messages before the latest completed compaction are ignored, messages at or after a revert point are ignored, and the indicator is hidden when no message qualifies or the total is zero.