github jlcodes99/cockpit-tools v0.20.7
Cockpit Tools v0.20.7

latest release: v0.20.8
10 hours ago

更新日志(中文)

[0.20.7] - 2026-03-24

变更

  • 悬浮账号卡片现已在多窗口之间实时同步导入、删除、OAuth 完成和当前账号切换结果:各平台账号页与账号 store 现在会统一发出账号同步事件,悬浮卡片在账号管理动作完成后会立即刷新,不再需要手动重载或等窗口重新聚焦;实例绑定的悬浮卡片仍会保持绑定账号视图。
  • Windsurf 账号页里的官方配额面板现已补上每日/每周进度条,并区分 low 与 critical 两档告警颜色:来自 Windsurf 官方 plan snapshot 的 quota 项现在会复用统一的配额进度条样式,不再只显示百分比文字,剩余额度风险一眼就能看出来。

修复

  • 当前账户判定现已更严格地跟随真实本地状态,覆盖同步、删除、切换和“账号列表已空”场景:当平台账号列表为空时,各平台 store 会清理陈旧的当前账号 ID;同步/删除/切换后会立刻向其它窗口传播新的当前账号;实例绑定的悬浮卡片也不会再因为平台暂时解析不到独立 current account 而显示空白。
  • Windsurf 的 quota 计费账号现已在账号页、托盘、macOS 原生菜单和诊断报表中稳定保持 quota 模式,并把官方剩余额度百分比正确换算为已用百分比:额度视图现在会把 dailyQuotaRemainingPercent / weeklyQuotaRemainingPercent 视为“剩余配额”,在 quota 计费但缺少该字段时回退为“已耗尽”,避免 quota 账号误切到 credit 视图或把已用百分比显示反了。

Changelog (English)

[0.20.7] - 2026-03-24

Changed

  • Floating account cards now stay synchronized with account imports, deletions, OAuth completions, and current-account switches across windows: provider pages and account stores now emit shared account-sync events, so floating cards refresh immediately after account management actions instead of waiting for manual reloads or window refocus, while instance-bound floating cards keep their bound account view.
  • Windsurf official quota panels on the account page now render daily and weekly progress bars with separate low and critical warning colors: quota items that come from Windsurf's official plan snapshot now use the shared quota-progress styling instead of showing percentage text only, making the remaining-risk state easier to scan at a glance.

Fixed

  • Current-account detection now follows real local state more tightly after sync, deletion, switching, and empty-list transitions: provider stores clear stale current-account ids when no accounts remain, current-account changes are propagated immediately after sync/delete/switch flows, and instance-bound floating cards no longer blank out just because the platform cannot resolve a separate current account at that moment.
  • Windsurf quota-billed accounts now keep quota mode and convert official remaining-percent fields into used-percent displays consistently across the account page, tray, macOS native menu, and diagnostic report: quota views now treat dailyQuotaRemainingPercent / weeklyQuotaRemainingPercent as remaining quota and fall back to exhausted usage when quota billing omits those fields, so quota-backed accounts no longer slip into credit-mode presentation or invert their usage percentage.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.