Skip to content

Commit dd46108

Browse files
aqua5230claude
andcommitted
release: 0.24.9 — fix ZipImportError in analysis report
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 9f2a692 commit dd46108

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.24.9] - 2026-07-08
9+
10+
### Fixed
11+
- **Analysis report occasionally failed with `ZipImportError: bad local file header`**: `analyzer/reporter.py` imported three single-file modules (`persona_loader.py`, `subscription.py`, `ai_updates_loader.py`) that lived outside the package directories py2app already unzips, so they still loaded through `python313.zip` — the same failure mode the earlier adapters/analyzer/ui packaging fix was meant to close. Moved all three under `analyzer/` so the entire report pipeline is now free of zipimport.
12+
813
## [0.24.8] - 2026-07-07
914

1015
### Changed

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.24.9] - 2026-07-08
8+
9+
### 修正
10+
- **分析報告偶爾產生失敗,跳出 `ZipImportError: bad local file header`**`analyzer/reporter.py` 依賴的三個單一檔案模組(`persona_loader.py``subscription.py``ai_updates_loader.py`)躺在 py2app 既有解壓套件目錄之外,仍會被打包進 `python313.zip`、走 zipimport 載入——跟先前 adapters/analyzer/ui 打包修復要堵住的是同一種失敗模式。已把三個模組搬進 `analyzer/` 目錄,報告流程現在完全不再經過 zipimport。
11+
712
## [0.24.8] - 2026-07-07
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.24.8"
3+
version = "0.24.9"
44
description = "usage — 在 macOS menu bar 顯示 Claude Code 用量的繁中小工具(也提供終端機 TUI)"
55
readme = "README.md"
66
requires-python = ">=3.13"

0 commit comments

Comments
 (0)