Releases: jlcodes99/cockpit-tools
Releases · jlcodes99/cockpit-tools
Cockpit Tools v0.24.4
更新日志(中文)
[0.24.4] - 2026-05-23
新增
- Codex API 服务新增独立管理页:服务状态、访问地址、客户端 Key、账号池、模型规则、调度选项、健康状态与请求日志现在都可在同一个 Codex API 服务入口中管理。
- Codex API 服务现支持命名客户端 API Key 与按 Key 设置模型策略:Key 可创建、改名、停用、重置、删除,并可设置模型前缀、允许模型列表和排除模型列表。
- Codex API 服务现可桥接官方 Codex 后端与 WebSocket 请求路径:
/backend-api/codex/responses、/backend-api/codex/responses/compact与 Responses WebSocket 升级请求都可通过本地受管账号网关转发。 - Codex API 服务现通过
gpt-image-2暴露图片生成兼容能力:/v1/images/generations与/v1/images/edits会映射到 Codex Responses 图片工具,并结合服务级图片模式与账号能力检查。 - Codex API 服务现记录用量统计与可检索请求日志:支持按账号、模型和客户端 Key 统计日/周/月/全量用量,并可按模型、账号、Key、请求类型、状态和错误分类筛选日志。
- 开发运行现使用独立 Cockpit Tools Dev 配置:
npm run tauri:dev会以独立 Tauri 标识、数据目录、API 端口和窗口品牌启动开发版应用。
变更
- Codex API 服务弹框现保持快速配置定位,并提供“查看全部功能”入口:高级统计、请求日志、image_generation 控制与命名 Key 管理统一放到独立页面。
- Codex API 服务调度现加入会话亲和、可配置重试行为与账号健康跟踪:连续轮次可保持在同一账号上,冷却中、额度耗尽或图片能力不可用的账号会在下次选号前被跳过。
- Codex 官方 App 速度选择现写入当前官方
config.toml桌面服务档位键:“标准”会移除受管档位,“快速”会写入priority,与当前 Codex 客户端落盘位置保持一致。 - Cockpit 共享数据文件现统一通过同一数据目录解析:账号分组、设备状态、配置状态与 Codex API 服务状态都会跟随同一配置目录或 profile 专属目录。
- 文档现补充葡萄牙语 README/赞助页面与 WSL2 Ubuntu 24 构建说明:项目本地化文档与 Linux 构建指引已与现有中英文文档并列提供。
修复
- Codex 仅 access token 与 session token 导入不再因为缺少
refresh_token被强制要求重新授权:导入会识别session_token/sessionToken,受管投影会保留预期的refresh_token字段,且无法刷新的账号会跳过主动续期。 - 仪表盘与平台切换现保持 Antigravity/Codex 分组条目一致:分组卡片会去重,Codex API 服务导航保留在 Codex 分组内,切换器也不再把当前额外页面误判为平台不匹配。
Changelog (English)
[0.24.4] - 2026-05-23
Added
- Codex API Service now has a dedicated management page: service status, access URLs, client keys, account pool, model rules, routing options, health state, and request logs can now be managed from one Codex API Service entry.
- Codex API Service now supports named client API keys and per-key model policies: keys can be created, renamed, disabled, rotated, deleted, and constrained with model prefixes plus allowed/excluded model lists.
- Codex API Service now bridges official Codex backend and WebSocket request paths:
/backend-api/codex/responses,/backend-api/codex/responses/compact, and Responses WebSocket upgrades can run through the local managed-account gateway. - Codex API Service now exposes image-generation compatibility through
gpt-image-2:/v1/images/generationsand/v1/images/editsare mapped to Codex Responses image tooling with service-level image modes and account capability checks. - Codex API Service now records usage statistics and searchable request logs: daily, weekly, monthly, and all-time usage is tracked by account, model, and client key, with filters for model, account, key, request type, status, and error category.
- Development runs now have an isolated Cockpit Tools Dev profile:
npm run tauri:devstarts the dev app with its own Tauri identifier, data directory, API port, and window branding.
Changed
- Codex API Service modal now stays focused on quick setup with a View All Features shortcut: advanced stats, request logs, image-generation controls, and named key management now live on the dedicated page.
- Codex API Service routing now includes session affinity, configurable retry behavior, and account health tracking: repeated turns can stay on one account while cooled-down, exhausted, or image-ineligible accounts are skipped before the next selection.
- Codex official app speed selection now writes the current official
config.tomldesktop service-tier key: Standard removes the managed tier and Fast writespriority, matching the current Codex client storage. - Shared Cockpit data files now resolve through one data-directory path: account groups, device state, config state, and Codex API Service state follow the same configured or profile-specific data directory.
- Documentation now includes Portuguese README/donation pages and WSL2 Ubuntu 24 build guidance: localized project documentation and Linux build notes are available alongside the existing English and Chinese docs.
Fixed
- Codex access-token-only and session-token imports no longer get forced into reauthorization because
refresh_tokenis missing: imports acceptsession_token/sessionToken, managed projections keep the expectedrefresh_tokenfield, and proactive refresh skips accounts that cannot refresh. - Dashboard and platform switching now keep grouped Antigravity/Codex entries consistent: grouped cards are deduplicated, Codex API Service navigation stays inside the Codex group, and the switcher no longer treats the current extra page as a platform mismatch.
Cockpit Tools v0.24.3
更新日志(中文)
[0.24.3] - 2026-05-21
变更
- 紧急修复 Codex 本地 API 服务在未配置显式代理时的路由问题:API 代理地址、Cockpit 全局代理与环境代理变量仍会按顺序优先使用;服务现在会继续进入 reqwest 的系统代理自动发现,而不是在系统自动代理路径生效前停止请求。
- Antigravity 已安装版本读取现区分快速徽标读取与完整扫描:总览徽标会短暂延迟后启动,优先使用可用缓存,并在后台完成更长的扫描,避免版本显示阻塞页面。
- Codex 套餐徽标现复用账号原始套餐值与共享样式:账号卡片、摘要与路由视图都会保留后端或本地套餐标签原值,同时通过统一展示路径生成徽标样式。
修复
- Antigravity 旧版切号不再因安装版本元数据缺失或无法解析而失败:已缓存的明确版本仍会阻断 Antigravity
2.0.0及以上版本;缺少缓存信息时允许旧版路径继续执行。 - Codex 自定义路由账号列表现将表头与行内容限制在固定滚动区域内:弹框主体可正确滚动,套餐徽标在窄布局下也保持稳定尺寸。
Changelog (English)
[0.24.3] - 2026-05-21
Changed
- Emergency fix for Codex Local API Service routing when no explicit proxy is configured: API proxy URL, Cockpit global proxy, and environment proxy variables are still preferred in order, while the service now falls through to reqwest's system proxy discovery instead of stopping before the system auto-proxy path can be used.
- Antigravity installed-version lookup now separates quick badge reads from full scans: the overview badge starts after a short delay, uses cached metadata when possible, and completes a longer scan in the background so version display does not block the page.
- Codex plan badges now reuse the raw account plan value with shared styling: account cards, summaries, and routing views keep backend/local plan labels unchanged while using one presentation path for badge classes.
Fixed
- Legacy Antigravity account switching no longer fails when installed-version metadata is unavailable or unparseable: cached known versions still block Antigravity
2.0.0and later, while missing cache data allows the legacy path to proceed. - Codex custom routing account lists now keep their header and rows within a bounded scroll area: the modal body scrolls correctly and plan badges keep stable sizing in narrow layouts.
Cockpit Tools v0.24.2
更新日志(中文)
[0.24.2] - 2026-05-21
修复
- 紧急修复 v0.24.1 后 Codex 本地 API 服务代理路由异常:API 代理地址为空时会依次回退到 Cockpit 全局代理和显式环境代理变量(
HTTPS_PROXY、HTTP_PROXY或ALL_PROXY);没有可用代理地址时,网关会拒绝官方上游请求,避免意外直连官方上游。 - Codex 本地 API 服务上游失败诊断现标明实际代理来源:502 诊断与日志会标明使用的是 API 服务代理、Cockpit 全局代理、环境代理或缺少代理配置,便于快速修正网络出口。
Changelog (English)
[0.24.2] - 2026-05-21
Fixed
- Emergency fix for Codex Local API Service proxy routing after v0.24.1: empty API proxy URLs now fall back to the Cockpit global proxy and then explicit environment proxy variables (
HTTPS_PROXY,HTTP_PROXY, orALL_PROXY), and the gateway refuses official upstream requests when no proxy URL is available instead of falling back to unintended direct upstream access. - Codex Local API Service upstream failures now identify the active proxy source: 502 diagnostics and logs report whether the API service proxy, Cockpit global proxy, environment proxy, or missing proxy configuration was used so users can correct network routing quickly.
Cockpit Tools v0.24.1
更新日志(中文)
[0.24.1] - 2026-05-21
新增
- Antigravity 主页面现显示所选目标的已安装版本:版本徽标会跟随当前 Antigravity 或 Antigravity IDE 目标,便于确认正在管理的本地客户端版本。
变更
- Antigravity 现作为一个分组管理 Antigravity 与 Antigravity IDE 两个目标:平台管理会保持 Antigravity 分组在首位,分组切换器会决定总览操作、版本读取与切号使用的目标。
- Antigravity 旧版切号现按安装版本门禁执行:低于
2.0.0的 Antigravity 继续使用旧版落盘与启动路径;Antigravity2.0.0及以上版本会阻断切号,并引导使用 Antigravity IDE。 - Codex 本地 API 服务代理配置改为专用 API 代理地址:服务会校验填写的代理地址,仅将其用于 API 上游请求;地址为空时直连上游。
修复
- Antigravity IDE 路径与版本检测现适配官方重命名后的安装结构:macOS、Windows 与 Linux 检测会区分旧版 Antigravity 和 Antigravity IDE,并解析正确的应用元数据与可执行文件候选路径。
Changelog (English)
[0.24.1] - 2026-05-21
Added
- Antigravity overview now shows the installed version for the selected target: the version badge follows the active Antigravity or Antigravity IDE target so users can confirm which local client is being managed.
Changed
- Antigravity is now managed as one group with separate Antigravity and Antigravity IDE targets: Platform Management keeps the Antigravity group first, and the group switcher controls which target is used for overview actions, version lookup, and account switching.
- Legacy Antigravity switching is now gated by the installed version: Antigravity versions below
2.0.0continue to use the legacy disk and launch paths, while Antigravity2.0.0and later are blocked with guidance to use Antigravity IDE. - Codex Local API Service proxy configuration now uses a dedicated API proxy URL: the service validates the configured proxy address, applies it only to API upstream traffic, and uses direct upstream access when the address is empty.
Fixed
- Antigravity IDE path and version detection now follows the renamed official install layout: macOS, Windows, and Linux detection distinguish legacy Antigravity from Antigravity IDE and resolve the correct app metadata and executable candidates.
Cockpit Tools v0.24.0
更新日志(中文)
[0.24.0] - 2026-05-20
变更
- Antigravity 集成已对齐官方 Antigravity IDE 客户端:默认应用路径、用户数据目录、进程识别、唤醒 Language Server 元数据、README 文案与界面标签统一使用 Antigravity IDE;本地导入与切号也改为读写官方
antigravityUnifiedStateSync.oauthToken状态。 - MFA 保险箱现抽取共享解析与 TOTP 生成逻辑:已保存验证码管理与快速取码入口复用同一套密钥解析、去重、历史迁移、刷新倒计时与验证码生成行为。
新增
- Codex 本地 API 服务现可选择上游代理模式:API 服务设置可在跟随应用全局代理与直连官方上游之间切换,并将所选模式持久化用于网关请求。
- Codex OAuth 授权现内置 2FA 快速取码入口:添加账号弹框可展示已保存 MFA 密钥、刷新倒计时与一键复制验证码;重新授权时会显示并可复制目标账号邮箱。
修复
- Antigravity IDE 自动检测现适配官方重命名后的安装位置:默认应用与 Language Server 解析覆盖
/Applications/Antigravity IDE.app、WindowsAntigravity IDE.exe和 Linuxantigravity-ide,并可从旧 macOS 路径配置迁移到当前路径。 - Antigravity Unified State 写入现保留其他同步条目:OAuth token 注入只替换
oauthTokenInfoSentinelKey对应行,不再覆盖整个 topic,避免影响其他 sentinel row。
Changelog (English)
[0.24.0] - 2026-05-20
Changed
- Antigravity integration now aligns with the official Antigravity IDE client: default app paths, user data directories, process detection, wakeup Language Server metadata, README copy, and UI labels now use Antigravity IDE, while local import and account switching read/write the official
antigravityUnifiedStateSync.oauthTokenstate. - The MFA vault now exposes shared parsing and TOTP generation helpers: saved-code management and quick-code UI reuse the same secret parsing, deduplication, history migration, refresh timer, and code generation behavior.
Added
- Codex Local API Service can now choose its upstream proxy mode: API Service settings can switch between following the app's global proxy and connecting directly to the official upstream, with the selected mode persisted for gateway requests.
- Codex OAuth authorization now has an inline 2FA quick-code picker: the add-account dialog can show saved MFA secrets, refresh countdowns, and one-click code copying, and reauthorization opens with the target email shown and copyable.
Fixed
- Antigravity IDE automatic detection now handles the renamed official install locations: default app and Language Server resolution covers
/Applications/Antigravity IDE.app, WindowsAntigravity IDE.exe, and Linuxantigravity-ide, including migration away from legacy macOS paths. - Antigravity Unified State writes now preserve other synced entries: OAuth token injection replaces only the
oauthTokenInfoSentinelKeyrow instead of overwriting the whole topic, so other sentinel rows remain intact.
Cockpit Tools v0.23.11
更新日志(中文)
[0.23.11] - 2026-05-19
新增
- Codex 本地 API 服务现支持自定义账号调度:API 服务集合可选择“自定义”策略,为每个账号设置优先级与权重,批量调整已选账号,并把规范化后的调度规则写入网关选号逻辑。
- Codex Token 导入现支持 ChatGPT/Codex session JSON:可导入直接粘贴或包裹在
session/session_json字段中的 session JSON,并复用现有 Codex OAuth 凭据导入流程。
变更
- Codex 本地 API 服务上游连接失败现提供更可操作的网络/代理诊断:网关会记录 502 失败状态,并把网络、代理或
chatgpt.com可访问性问题提示成更清晰的错误信息。
Changelog (English)
[0.23.11] - 2026-05-19
Added
- Codex Local API Service now supports custom account routing: API Service collections can choose Custom routing, set per-account priority and weight, batch-edit selected accounts, and persist normalized routing rules for gateway account selection.
- Codex token import now accepts ChatGPT/Codex session JSON: imports can read direct or wrapped session JSON containing accessToken/session fields and normalize it into the existing Codex OAuth token flow.
Changed
- Codex Local API Service upstream connection failures now show actionable network/proxy diagnostics: gateway failures now record the 502 failure state and surface clearer guidance for network, proxy, or
chatgpt.comreachability issues.
Cockpit Tools v0.23.10
更新日志(中文)
[0.23.10] - 2026-05-18
修复
- Codex CLI 通过本地 API 服务访问时现可稳定使用 Cockpit 管理的 OAuth 账号:
/v1/responses请求会先按 Codex 客户端兼容形状规范化,再转发到现有上游管线。 - Codex 启动时不再因模型刷新结构不匹配报错:当 Codex 客户端请求本地
/v1/models时,会返回其期望的模型列表格式。 - 本地 Codex API 服务请求现可绕过 localhost 代理干扰:
NO_PROXY/no_proxy会自动合并回环地址,系统代理开启时本地网关仍保持直连。
Changelog (English)
[0.23.10] - 2026-05-18
Fixed
- Codex CLI now works reliably through the local API service with Cockpit-managed OAuth accounts:
/v1/responsesrequests are normalized for Codex client compatibility before forwarding to the existing upstream pipeline. - Codex startup no longer hits a model refresh shape mismatch: the local
/v1/modelsendpoint now serves the Codex client response format when requested by Codex clients. - Local Codex API service traffic now bypasses localhost proxy interference: loopback addresses are merged into
NO_PROXY/no_proxyso local gateway requests stay direct even when a system proxy is configured.
Cockpit Tools v0.23.9
更新日志(中文)
[0.23.9] - 2026-05-17
新增
- Codex Token 导入现支持仅 accessToken 与 Sub2API 导出格式:Codex 导入可读取原始 JWT access token、
accessToken/access_token字段、camelCase token JSON、逐行 Token 输入,以及 Sub2API 导出 JSON 中的 OpenAI OAuth 账号。 - macOS 菜单栏图标样式现可配置:设置页可在系统单色状态图标和原彩色 App 图标之间切换;保存设置或导入用户配置变化后,会即时应用所选样式。
变更
- Codex API Key 切号现写入官方运行时 provider 状态:API Key 账号会将所选供应商写入受管
codex_local_accessprovider,并把 bearer token 写入config.toml,同时保留供应商身份配置并避免残留openai_base_url状态。 - Codex OAuth 导入现从 access token 保留更多身份元数据:仅 accessToken 导入会在 claim 可用时提取邮箱、用户 ID、套餐、账号 ID、组织 ID 与订阅到期时间。
修复
- macOS 打包版本现可正常显示单色菜单栏图标:使用前会将 template 托盘图标规范化到菜单栏尺寸,并在托盘创建后再次应用 template 标记。
- Codex 切回内置 OpenAI 时现会清理受管 API Key 运行时 provider 状态:切回内置路径会移除 Cockpit 管理的 provider/token 条目,同时保留无关的手动 provider。
- Cursor 额度徽标在 70%+ 用量时现使用预期的中档样式:额度指示不再在达到临界范围前提前使用警告样式。
Changelog (English)
[0.23.9] - 2026-05-17
Added
- Codex token import now accepts accessToken-only and Sub2API export formats: Codex imports can read raw JWT access tokens,
accessToken/access_tokenfields, camelCase token JSON, line-delimited token input, and OpenAI OAuth accounts from Sub2API export JSON. - macOS menu bar icon style is now configurable: Settings can switch between the system template status icon and the original color app icon, and the selected style is applied immediately when settings or imported user config change.
Changed
- Codex API Key account switching now writes the official runtime provider state: API Key accounts write the selected provider as a managed
codex_local_accessprovider with the bearer token inconfig.toml, preserving the configured provider identity while avoiding staleopenai_base_urlstate. - Codex OAuth imports now preserve more identity metadata from access tokens: accessToken-only imports derive email, user ID, plan, account ID, organization ID, and subscription expiry when those claims are available.
Fixed
- macOS packaged builds now keep the template menu bar icon visible: the template tray asset is normalized to menu-bar size before use and the template flag is applied again after tray creation.
- Codex built-in OpenAI switching now clears managed API Key runtime provider state: switching back to the built-in path removes Cockpit-managed provider/token entries while preserving unrelated manual providers.
- Cursor quota badges now use the intended mid-level style for 70%+ usage: quota indicators no longer use the warning style before reaching the critical range.
Cockpit Tools v0.23.8
更新日志(中文)
[0.23.8] - 2026-05-17
新增
- Codex OAuth 绑定弹框现可直接解除绑定:API Key 账号与本地 API 服务在已绑定 OAuth 账号时,会展示明确的解除绑定操作。
变更
- Codex API Key 账号与本地 API 服务现将 OAuth 绑定作为可选项:未绑定时继续按原 API Key 流程运行;绑定后则继续使用所选 OAuth 登录态,并叠加对应 provider 配置。
- Codex OAuth 绑定说明已对齐可选绑定行为:绑定弹框会说明未绑定和已绑定两条运行路径,不再把 OAuth 绑定描述为必选前置条件。
Changelog (English)
[0.23.8] - 2026-05-17
Added
- Codex OAuth bindings can now be cleared from the binding dialog: API Key accounts and the Local API Service expose an explicit unbind action when an OAuth account is already linked.
Changed
- Codex API Key accounts and the Local API Service now treat OAuth binding as optional: unbound entries continue to run through their original API Key flow, while bound entries keep using the selected OAuth login state with the configured provider.
- Codex OAuth binding copy now matches the optional behavior: the binding dialog explains the unbound and bound runtime paths instead of presenting OAuth binding as required.
Cockpit Tools v0.23.7
更新日志(中文)
[0.23.7] - 2026-05-16
新增
- Windows 上 Gemini 默认账号切换现可同步到 WSL 凭证目录:切换默认 Gemini 账号时,可将
oauth_creds.json与google_accounts.json同步到 WSL~/.gemini,并清理过期的gemini-credentials.json。 - 账号与工具弹框补齐键盘/返回交互:多个核心弹框新增
Esc关闭与显式返回操作,优化键盘操作和多层弹框流程。
变更
- Gemini WSL 同步新增用户可控开关(设置页 + 快捷设置):新增
同步 WSL 配置选项,默认开启,用于控制切号时是否执行凭证同步。 - Codex OAuth 绑定账号选择弹框的订阅徽标现与主账号视图样式一致:绑定弹框中的套餐徽标已复用与 Codex 账号卡片/表格一致的视觉 class 与颜色语义。
- Homebrew Cask 元数据在 v0.23.6 后已更新:Cask 的版本与校验信息已刷新到最新打包产物状态。
修复
- Windows 上 GitHub Copilot 切号/导入已支持 VS Code 共享存储路径:导入与注入会同时读写旧路径
User/globalStorage/state.vscdb和新路径.vscode-shared*/sharedStorage/state.vscdb,优先读取共享存储并回退兼容旧路径,适配混合安装场景。
Changelog (English)
[0.23.7] - 2026-05-16
Added
- Gemini account switching on Windows can now sync default credentials into WSL: when switching the default Gemini account, Cockpit can copy
oauth_creds.jsonandgoogle_accounts.jsoninto WSL~/.geminiand clean stalegemini-credentials.json. - Modal keyboard/back interactions were expanded across account and tool dialogs: major dialogs now support
Escclose and explicit back actions to improve keyboard and layered-modal workflows.
Changed
- Gemini WSL sync now has a user-facing toggle in both Settings and Quick Settings: the new
Sync WSL Configurationoption is enabled by default and controls whether switch-time credential sync is applied. - Codex OAuth-binding account picker now uses the same subscription badge style as the main account view: plan badges in the binding modal follow the same visual classes and plan color semantics as Codex account cards/tables.
- Homebrew Cask metadata has been updated after v0.23.6: cask version/checksum references were refreshed to match the latest packaged artifact state.
Fixed
- GitHub Copilot switching/import now supports VS Code shared storage on Windows: account import and token injection now read/write both legacy
User/globalStorage/state.vscdband shared.vscode-shared*/sharedStorage/state.vscdb, with shared-storage-first lookup and legacy fallback for mixed installs.