Skip to content

Commit 5047ffd

Browse files
aqua5230claude
andcommitted
release: 0.22.7 — eliminate panel-switch flicker
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a4f08c9 commit 5047ffd

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
All notable changes to usage are documented here.
66
Format follows [Keep a Changelog](https://keepachangelog.com/).
77

8+
## [0.22.7] - 2026-06-23
9+
10+
### Fixed
11+
- **Switching panels no longer flickers**: every switch tore down the WKWebView and reloaded its HTML, exposing the dark backing layer until the load finished — a visible flicker, plus the popover closed and reopened. usage now caches each panel's web view (lazily, capped at 6 with LRU eviction) inside a container view and switches by toggling visibility and re-injecting the latest state, so a previously-opened panel reappears instantly with no reload. The first build of a panel fades in from a same-color overlay that is removed on the first successful paint (or after a 1.5s safety timeout). The popover no longer closes and reopens on switch.
12+
813
## [0.22.6] - 2026-06-23
914

1015
### Fixed

CHANGELOG.zh-TW.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
本檔記錄 usage 所有重要變更。格式參考 [Keep a Changelog](https://keepachangelog.com/)
66

7+
## [0.22.7] - 2026-06-23
8+
9+
### 修正
10+
- **切換面板不再閃爍**:原本每次切換都會把網頁視圖(WKWebView)整個丟掉並重載 HTML,在載入完成前露出底層深色背景——看得到的閃爍,且 popover 還會先關再開。usage 現在把每款面板的網頁視圖快取在一個容器視圖裡(用到才建、上限 6 並依最久未用淘汰),切換時只切換顯示/隱藏並重新注入最新狀態,因此先前開過的面板會瞬間重現、不再重載。某面板第一次建立時,會從同色遮罩淡入(首次成功繪製後移除,或 1.5 秒保險逾時後移除)。切換面板時 popover 不再關閉重開。
11+
712
## [0.22.6] - 2026-06-23
813

914
### 修正

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "usage"
3-
version = "0.22.6"
3+
version = "0.22.7"
44
description = "usage — 在 macOS menu bar 顯示 Claude Code 用量的繁中小工具(也提供終端機 TUI)"
55
readme = "README.md"
66
requires-python = ">=3.13"

0 commit comments

Comments
 (0)