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

3 hours ago

更新日志(中文)

[0.22.20] - 2026-05-06

新增

  • Windsurf 账号管理现支持 2026-04+ 新账号使用的 Devin Auth 体系:邮箱密码登录、auth1_ token 导入、刷新与实例切号可走 Devin auth1 → session → one-time token → IDE token 链路,并保存 IDE 所需的 Devin account/org ID 与 user-status 数据。
  • Windsurf 账号页默认使用推荐排序:账号总览新增“按推荐”排序,按本地保存的日/周配额、重置时间和周期结束时间评分,让剩余可用度更高的账号优先展示。
  • 备份管理现支持按平台归档与下载:自动/手动备份会保留可恢复 JSON,并同步生成 ZIP 压缩包,列表展示平台账号数量,支持按平台筛选,以及下载完整 JSON、ZIP 或单个平台 JSON。
  • Codex 本地 API 服务现会在账号总览展示额度池:API 服务卡片会按订阅档位汇总成员账号,并分别展示 5 小时额度与周额度;档位较多时可打开完整额度池弹框查看。

变更

  • Codex 账号读取现兼容更多便携账号文件:可把便携 token/API-key JSON 详情文件恢复到当前账号模型,并保留 API 供应商、时间戳、账号 ID、组织 ID、套餐与订阅字段。
  • Codex 账号总览会在本地 API 服务启用时把“当前”标识移到 API 服务入口:该变化仅影响此账号列表页的展示,应用其他位置仍沿用原有当前账号逻辑。
  • Codex 本地 API 服务卡片现与普通账号卡片对齐:卡片操作栏和悬浮样式跟随普通账号,主体内保留成员预览并在其下方竖排展示额度池统计。
  • Codex 实例账号选择现可识别 API Key 供应商:API Key 账号在实例配额预览中展示供应商,也可按供应商名称搜索。
  • 账号与配置文件写入现统一使用同步原子写入路径:账号索引、OAuth pending 状态、config.toml、分组/同步设置、OpenCode/OpenClaw auth 文件和备份文件都会通过临时文件替换写入,并只从有效备份恢复。
  • 配额和 Token 刷新现直接使用主刷新链路:各平台刷新不再等待隐藏的延迟重试,失败时会更快暴露真实错误。
  • Homebrew Cask 元数据已补齐到 v0.22.19 发布产物:Cask 版本与 SHA256 指向 0.22.19 universal DMG。

修复

  • Windsurf Devin 账号切入实例时会使用更新的 IDE 凭据:实例启动前会预刷新 Devin 账号,写入稳定的 installation、onboarding、sign-in 与 user 字段,并带上 Devin account/org/protobuf 状态数据,避免启动后显示未登录或出现权限拒绝。
  • 账号列表不再因存储临时返回异常空结果而消失:共享账号 store 在异常空读取时会保留当前缓存账号与当前账号,同时仍允许用户主动删除后的真实空列表。
  • 备份恢复与保留清理现一致处理 JSON/ZIP 配对文件:读取备份时可从损坏或缺失的 JSON 回退到对应压缩包,过期清理也会同时清理 JSON 与 ZIP 备份。

Changelog (English)

[0.22.20] - 2026-05-06

Added

  • Windsurf account management now supports the Devin Auth account system introduced for new 2026-04+ accounts: email/password login, auth1_ token import, refresh, and instance switching can use the Devin auth1 → session → one-time token → IDE token flow, while preserving Devin account/org IDs and user-status data needed by the IDE.
  • Windsurf accounts now default to a recommended sort: the account overview adds a Recommended sort option that scores accounts from saved daily/weekly quota, reset timing, and plan-cycle timing so accounts with more useful remaining capacity surface first.
  • Backup Manager now produces and exports platform-aware archives: scheduled/manual backups keep the restorable JSON file and a matching ZIP archive, show platform account counts, support platform filtering, and can download the full JSON, the ZIP, or one platform's JSON.
  • Codex Local API Service now shows its quota pool on the account overview: the API Service card summarizes member accounts by subscription tier with separate 5-hour and weekly quota totals, and exposes a full quota-pool dialog when there are more tiers to inspect.

Changed

  • Codex account loading now accepts more portable managed-account files: token/API-key detail files with portable JSON shapes can be recovered into the current account model, including API provider metadata, timestamps, account IDs, organization IDs, and subscription/plan fields.
  • Codex account overview now treats the Local API Service as the current entry when it is active: the current marker moves from the underlying account to the API Service card on this page, while the rest of the app keeps its existing current-account logic.
  • Codex Local API Service cards now align with regular account cards: the card keeps the same action-bar rhythm and hover styling as normal accounts while keeping member previews and quota-pool stats stacked in the body.
  • Codex instance account selection now identifies API Key providers: API Key accounts show their provider inline in instance quota previews and can be searched by provider name.
  • File writes for account/config state now use a shared synced atomic path: account indexes, OAuth pending state, config.toml, group/sync settings, OpenCode/OpenClaw auth files, and backup files write through temp-file replacement with validated backup restore behavior.
  • Quota and token refreshes now use the primary refresh path directly: provider refresh flows no longer wait on a hidden delayed retry before surfacing the actual failure.
  • Homebrew Cask metadata has been caught up with the v0.22.19 release artifact: the cask version and checksum now point to the 0.22.19 universal DMG.

Fixed

  • Windsurf Devin accounts switch into instances with fresher IDE credentials: instance launch pre-refreshes Devin accounts, writes stable installation/onboarding/sign-in/user fields, and includes Devin account/org/protobuf status data to avoid launch-time signed-out or permission-denied states.
  • Account lists no longer disappear when storage temporarily returns an unexpected empty result: shared account stores keep the current cached accounts/current account during abnormal empty reads, while still allowing real empty results after intentional deletion.
  • Backup restore and retention now handle JSON/ZIP pairs consistently: backup reads can fall back from a damaged or missing JSON file to its archive, and cleanup removes expired JSON and ZIP backups together.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.