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

11 hours ago

更新日志(中文)

[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/generations and /v1/images/edits are 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:dev starts 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.toml desktop service-tier key: Standard removes the managed tier and Fast writes priority, 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_token is missing: imports accept session_token/sessionToken, managed projections keep the expected refresh_token field, 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.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.