Skip to content

TokenStep 0.2.22: refresh the Token Rank board and show board tokens - #28

Merged
Backtthefuture merged 4 commits into
mainfrom
fix/refresh-token-rank
Sep 28, 2026
Merged

Backtthefuture merged 4 commits into
mainfrom
fix/refresh-token-rank

Conversation

@Backtthefuture

@Backtthefuture Backtthefuture commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • refreshNow() (popover and main window refresh buttons, ⌘R) now also calls refreshTokenRank(force: true). Before, a manual refresh only updated usage and quotas, so the board could stay up to 30 minutes old.
  • New AppState.isRefreshingForDisplay: the refresh buttons and the main window's sync pill keep showing "同步中" until the board is back, but only when Token Rank is linked (shouldShowAgentWorkRank).
  • The popover's rank row shows the viewer's tokens on the board (myBoardTokens, already computed but never displayed), with English and Traditional Chinese strings.
  • Release documents for 0.2.22.

Test plan

  • CI (swift test, fixture checks, build)
  • After release: with Token Rank linked, press refresh in the popover and check that the rank updates and the spinner waits for it
  • The rank row shows "榜单用量 …" matching the board
  • With Token Rank not linked, the refresh button behaves as before

🤖 Generated with Claude Code

Backtthefuture and others added 4 commits September 27, 2026 17:52
refreshNow() refreshed usage and quotas but never the leaderboard, so
the board could stay up to 30 minutes old after a manual refresh. It
now forces a leaderboard fetch too, and the refresh buttons keep
spinning until the board is back when Token Rank is linked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release notes, CHANGELOG, README and the build default, via
script/prepare_release.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rank row already knew the viewer's token count on the board but
never showed it. It now sits on the right of the rank, e.g.
"#35 / 1200 人 … 榜单用量 28.5M".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Backtthefuture Backtthefuture changed the title TokenStep 0.2.22: refresh the Token Rank board from the refresh button TokenStep 0.2.22: refresh the Token Rank board and show board tokens Sep 28, 2026
@Backtthefuture
Backtthefuture merged commit 137322e into main Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant