You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: menu bar usage strip stuck on the first segment. The 5h/7d (and Gemini's Pro/Flash/Flash Lite) rotation was frozen in v3.1.1–v3.3.0 — every cell only ever showed its first window. Root cause was a SwiftUI Timer.publish(...).autoconnect() recreated on every body re-evaluation; UserDefaults.didChangeNotification churn (mostly from AppKit's own NSStatusItem autosave) was retriggering body fast enough to cancel the subscription before its 3-second countdown could fire. The publisher is now a single process-wide instance.
中文
修复:菜单栏用量条卡在第一段不轮换。 v3.1.1 – v3.3.0 期间 5h / 7d(以及 Gemini 的 Pro / Flash / Flash Lite)轮转显示失效,每个 cell 永远只显示第一个窗口。原因是 SwiftUI 里 Timer.publish(...).autoconnect() 写在了 body 内部,每次 body 重算都会新建 publisher、取消订阅、重置 3 秒倒计时;而 UserDefaults.didChangeNotification(主要来自 AppKit NSStatusItem 自身的位置自动保存)触发 body 重算的频率高于 1Hz,定时器永远等不到一次 fire。改为进程级单例后修复。