Skip to content

Cockpit Tools v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Jul 18:24

更新日志(中文)

[1.3.0] - 2026-07-13

新增

  • 新增 Grok CLI(Grok Build)平台账号管理:支持 xAI Device OAuth 与 API Key 账号、本机与 auth.json / JSON 导入导出、默认客户端真实切号、失效后重新授权、账号绑定工作目录启动、配额查询与预警、标签与筛选、批量操作、CLI 路径设置,以及 macOS、Windows、Linux 下基于 GROK_HOME 的隔离多开。
  • Codex 导入账号可同步加入 API 服务账号池:导入成功后可按偏好自动追加符合条件的账号;跳过不符合条件的账号并给出原因,成功后可引导打开 API 服务入口。
  • Codex API 服务自定义路由支持备用账号:可把账号标为备用,仅在全部普通账号不可用时使用;普通账号恢复后,新请求会自动回到普通池。
  • 账号分组内添加或导入可自动加入当前分组:在分组内打开添加账号时,OAuth / Token / 本地与文件导入成功的账号会写入当前分组;覆盖 Codex 与 Antigravity 主要导入路径。感谢 @yxc0915 贡献 #1525
  • Codex 支持显示或隐藏模型专属配额:快捷设置中可切换 GPT-5.3 等 additional 配额行的显示,默认显示并记住偏好,账号卡片与实例预览同步生效。感谢 @iwillwill-ALLWILL 贡献 #1424

变更

  • Codex 套餐筛选与配额汇总支持动态 plan:本地接入、自定义路由、唤醒与模型供应商绑定等入口统一套餐筛选与配额汇总,不再只认固定套餐列表。
  • Codex API 服务请求日志展示账号名称:日志行优先显示账号展示名,便于区分同一密钥下的多账号流量。感谢 @lcpdeb 贡献 #1312
  • Windows 下 CLI/后台子进程启动更稳妥:相关启动链路默认隐藏控制台窗口,减少多余黑窗对使用体验的干扰。

修复

  • 修复 Codex API 服务长对话可能出现高 CPU 和内存占用的问题:input 角色/元数据与内置工具名规范化改为线性处理,避免逐项重复扫描整份 JSON;显式代理复用 HTTP Transport,减少连接和内存分配开销。
  • 修复 Codex 账号总览筛选导致“看起来账号变少”的问题:分组/标签/搜索/套餐/分组目录生效且可见数少于总数时,展示「显示 X / 共 Y」、生效筛选类型与一键「清除筛选」;套餐「全部」改为「全部套餐」,避免与全部账号混淆;分组加载后自动剔除已失效的 group filter ID。
  • 修复自动切号「全部账号」仍残留旧 selected ID 列表的问题:切换到或加载 all_accounts 时清空 Codex / Antigravity 的残留选中列表,与运行时已按全量账号监控的行为一致。
  • 修复 Cockpit 启动时自动改写 Codex 配置的问题:已启用的 Codex API 服务和 sidecar 仍会随 Cockpit 自动恢复,但启动过程不再接管或恢复 Codex profile,也不会改写 config.tomlauth.json;只有用户主动启停服务、切号、绑定或启动实例时才会按现有流程落盘。
  • 修复 Codex API Key 切号或重建 sidecar 后上游 base-url 被写成 localhost 的问题:本地接入运行时地址不再回写进账号真实上游;sidecar 写 codex-api-key 时会避开回环地址,并尽量从模型供应商配置恢复真实 Base URL,避免网关请求出现 no auth available。见 #1526
  • 修复 Codex 批量导入失败或无可导入账号后任务条一直挂在账号页的问题:关闭无效预览会直接丢弃任务,悬浮任务条也可手动丢弃。见 #1445
  • 修复通过 nvm、fnm 或 asdf 安装的 Codex CLI / Node 在 GUI 环境下检测不到的问题:唤醒与 CLI 探测会扫描这些版本管理器的常见目录。见 #1496
  • 修复 Codex 账号卡片额外展示 GPT-5.3 Codex Spark 额度行造成的干扰:账号卡片默认不再显示 Spark 相关 additional 配额行。见 #1523
  • 修复 Codex 请求日志错误详情被截断后无法查看全文的问题:列表仍显示精简文案,悬停可查看完整错误。感谢 @lcpdeb 贡献 #1319
  • 修复账号分组保存失败时界面仍显示成功的问题:磁盘写入失败会正确抛错,不再在缓存中留下假成功状态。感谢 @yxc0915 贡献 #1525

Changelog (English)

[1.3.0] - 2026-07-13

Added

  • Added Grok CLI (Grok Build) platform account management: supports xAI Device OAuth and API Key accounts, local and auth.json / JSON import-export, real default-client account switching, reauthorization after credential failure, per-account working directories for launch, quota queries and alerts, tags and filters, batch operations, CLI path settings, and isolated multi-instance profiles via GROK_HOME on macOS, Windows, and Linux.
  • Codex account import can sync eligible accounts into the API Service pool: after a successful import, matching accounts can be appended automatically based on preference, with skip reasons for ineligible accounts and a follow-up guide to open API Service.
  • Codex API Service custom routing supports backup accounts: accounts marked as backup are used only when every regular account is unavailable; new requests prefer the regular pool again once it recovers.
  • Accounts added or imported inside a group join that group automatically: opening Add Account from a group assigns successful OAuth, token, local, and file imports to the current group for Codex and Antigravity. Thanks @yxc0915 for #1525.
  • Codex can show or hide model-specific quota rows: a quick setting toggles additional quota lines such as GPT-5.3, defaults to visible, remembers the preference, and applies to account cards and instance previews. Thanks @iwillwill-ALLWILL for #1424.

Changed

  • Codex plan filters and quota summaries support dynamic plans: local access, custom routing, wakeup, and model-provider binding share the same plan-filter and quota-summary rules instead of a fixed plan list.
  • Codex API Service request logs show account display names: log rows prefer the account presentation name so multi-account traffic under one API key is easier to tell apart. Thanks @lcpdeb for #1312.
  • Windows CLI and background process launching is more consistent: console windows stay hidden by default on related startup paths, reducing black-console flashes during use.

Fixed

  • Fixed high CPU and memory usage on long Codex API Service conversations: input role/metadata and built-in tool normalization now run in linear passes instead of repeatedly scanning the full JSON document for every item, while explicit proxies reuse HTTP transports to reduce connection and allocation overhead.
  • Fixed Codex overview filters that looked like missing accounts: when group, tag, search, plan, or folder filters hide some accounts, the page shows visible/total counts, lists active filter chips, and offers one-click clear-all; plan “All” is labeled as all plans so it is not confused with the full account list; stale group filter IDs are dropped after groups load.
  • Fixed auto-switch “all accounts” scope keeping a stale selected-ID list: switching to or loading all_accounts clears residual selected account IDs for Codex and Antigravity so config matches runtime (which already monitors every account in that mode).
  • Fixed Cockpit startup automatically rewriting Codex configuration: enabled Codex API Service and sidecar processes still recover automatically with Cockpit, but startup no longer takes over or restores Codex profiles and does not rewrite config.toml or auth.json; existing writes now occur only after explicit service enable/disable, account switching, binding, or instance launch actions.
  • Fixed Codex API Key switch and sidecar rebuild writing a localhost upstream base-url: local-access runtime endpoints are no longer synced back into the account's real upstream URL; sidecar codex-api-key entries avoid loopback addresses and try to recover the real Base URL from model-provider config, preventing gateway no auth available failures. See #1526.
  • Fixed Codex batch-import task bars that stayed on the account page after a failed or empty import: closing an invalid preview discards the task, and the sticky task bar can also be dismissed manually. See #1445.
  • Fixed Codex CLI / Node discovery when installed via nvm, fnm, or asdf under GUI launches: wakeup and CLI detection now scan common version-manager directories. See #1496.
  • Fixed Codex account cards showing noisy GPT-5.3 Codex Spark additional quota rows: Spark-related additional rate-limit windows are hidden from the default account presentation. See #1523.
  • Fixed Codex request-log error tooltips showing only truncated text: the list still shows a compact message, while hover reveals the full error detail. Thanks @lcpdeb for #1319.
  • Fixed account-group saves that looked successful after a disk write failure: failed writes now surface as errors instead of leaving a false-success cache state. Thanks @yxc0915 for #1525.