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

8 hours ago

更新日志(中文)

[0.21.2] - 2026-04-13

新增

  • 设置页现已支持账号与应用配置的数据备份/导入包:可分别导出或导入“仅账号”“仅配置”或“两者一起”;配置恢复覆盖分组、实例、唤醒任务、当前账号刷新设置与 Codex 模型供应商数据,旧版仅账号备份也仍可导入,并会提示未能重映射的绑定或需重启的配置项。
  • 设置页现已新增“备份管理”能力,用于定期本地备份:Cockpit 现可每天自动生成一份受管备份,统一保存在应用数据目录的 backups 文件夹中,支持配置保留天数,并可在同一弹框内立即备份、导入已有备份或删除旧备份文件。
  • Codex 会话管理现已支持把废纸篓中的会话恢复回原实例:恢复时会一并放回 rollout 文件、session_index.jsonl 条目和 state_5.sqlite 线程记录,不再需要手工补文件。

变更

  • 各平台账号页现已统一为同一套分页与筛选体验:每个平台都可单独记住每页数量,表格/卡片视图下的选择与分组行为保持一致,标签和排序下拉在小窗口里也会自动翻转方向避免挡住内容。
  • Gemini 账号表格现已直接显示 Pro / Flash 配额状态:无需切回卡片视图即可查看配额概览,剩余额度更容易快速扫读。
  • 实例页账号选择器现已改为锚定浮层,并在靠近窗口边缘时自动调整展开方向:长列表会自动滚动到当前选中项,Trae 实例搜索也新增支持按显示名匹配。
  • Codex 切号现已仅在实际 provider 发生变化后才自动修复历史会话可见性:切号成功后会比较切换前后的 provider,仅在发生变化时才联动修复 rollout/session 元数据与 state_5.sqlite

移除

  • Windsurf 账号接入现已不再提供邮箱密码登录:添加账号弹框现在仅保留 OAuth、Token 和本地 JSON 导入三条路径。

修复

  • 各平台账号页现已明确展示配额查询失败与无数据状态:Cursor、Gemini、GitHub Copilot、Kiro、Qoder、Trae、Windsurf、Zed 以及聚合账号总览页现在都会持久化最近一次配额查询错误,界面会显示明确的失败提示,并在无有效配额数据时回退到清晰的“暂无配额数据”状态,不再静默渲染空白或含糊的配额区块。
  • Codex 账号状态现已更稳定地与本地 OAuth 登录态保持一致:当前账号识别、切号准备、配额刷新和唤醒执行都会优先复用更新的本地登录数据,并把刷新后的 token 回写到受管目录,减少旧 token 残留导致的状态不一致。
  • 后台自动刷新现已改为统一调度:各平台的配额刷新与当前账号刷新更不容易互相重叠或重复触发,整体刷新稳定性更好。
  • Trae 刷新 token 时现会保留区域登录上下文并回写到本地认证状态:后续注入与续期所需的 host、region 和 refresh 过期信息会一并保留。

Changelog (English)

[0.21.2] - 2026-04-13

Added

  • Settings now support data backup/import bundles for accounts and app config: export or import accounts only, config only, or both together; config restore covers groups, instances, wakeup tasks, current-account refresh settings, and Codex model-provider data, while legacy account-only backups remain importable and report when some bindings need remapping or a restart is required.
  • Settings now include a Backup Manager for scheduled local backups: Cockpit can create one managed backup per day, keep backups in the app data backups directory with configurable retention, and let users run a backup immediately or import/delete existing backup files from the same dialog.
  • Codex Session Manager now supports restoring trashed sessions back to their original instances: restored sessions recover the rollout file, the session_index.jsonl entry, and the state_5.sqlite thread row together instead of requiring manual file repair.

Changed

  • Provider account pages now share a unified pagination and filter experience: page size is configurable per platform, selection and grouping stay consistent across table and grid views, and tag/sort dropdowns auto-flip to remain usable in small windows.
  • Gemini account tables now surface Pro / Flash quota status directly in list view: quota summaries are visible without switching back to card layout, making remaining capacity easier to scan.
  • Instance account pickers now open in anchored floating menus that stay visible near window edges: long account lists keep the active option in view, and Trae instance search now also matches display names in addition to email and plan text.
  • Codex account switching now auto-repairs historical session visibility only when the effective provider changes: after a successful switch, Cockpit compares the provider before and after the change and only then repairs rollout/session metadata together with state_5.sqlite.

Removed

  • Windsurf account onboarding no longer includes email/password login: the add-account dialog now focuses on OAuth, token, and local JSON import flows.

Fixed

  • Quota refresh failures now surface explicit warning and empty states across provider account pages: Cursor, Gemini, GitHub Copilot, Kiro, Qoder, Trae, Windsurf, Zed, and the aggregated Accounts page now persist the last quota-query error, show a visible failure badge/message, and fall back to a clear No quota data state instead of silently rendering blank or ambiguous quota panels.
  • Codex account state now stays aligned with the live local OAuth session more reliably: current-account detection, switch preparation, quota refresh, and wakeup runs reuse newer local auth data and write refreshed tokens back to managed homes, reducing stale-token mismatches.
  • Background auto refresh now runs through a unified scheduler: quota refresh and current-account refresh jobs across providers are less likely to overlap or double-trigger, improving refresh stability.
  • Trae token refresh now preserves regional auth context when rewriting local auth state: refreshed sessions keep the host, region, and refresh-expiry metadata needed for follow-up injection flows.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.