Releases: jlcodes99/cockpit-tools
Releases · jlcodes99/cockpit-tools
Cockpit Tools v0.22.10
更新日志(中文)
[0.22.10] - 2026-04-24
变更
- Windsurf Auth1 账号注入现已与官方客户端 token 语义对齐:Auth1 链路会把
devin-session-token$...作为本地会话写入的主访问 token,在可用时同步写入sessionToken与authMethod=auth1,并移除额外 synthetic API key 补拉请求依赖。 - Windsurf 启动行为现已默认复用现有窗口,不再强制新开窗口:默认启动命令不再强制
open -n;实例启动与默认启动统一跟随应用复用窗口行为。 - Codex JSON 导出现已在同一弹框支持 CPA 多文档工作流:CPA 导出可按账号卡片展示,支持逐条保存账号 JSON,也支持选择目录后一键批量下载全部文件。
修复
- 导出失败现已在当前导出弹框内直接提示:复制/保存/打开目录失败会在弹框内固定错误区展示,并在重试、切换预览状态、切换导出格式或关闭弹框时清理旧错误,避免残留重复提示。
- Windsurf 扩展状态现已为受支持前缀写入兼容迁移 token:对
sk-ws-01-、devin-session-token$、cog_令牌会同步写入windsurf.pendingApiKeyMigration,避免启动后反复进入迁移链路。
Changelog (English)
[0.22.10] - 2026-04-24
Changed
- Windsurf Auth1 account injection now matches official client token semantics: Auth1 flows now keep
devin-session-token$...as the primary access token for local session writes, injectsessionToken/authMethod=auth1into local auth status when available, and stop relying on the extra synthetic-API-key recovery request. - Windsurf launch now defaults to window reuse instead of forcing a new window: default start commands no longer force
open -n; instance and default launches follow normal app reuse behavior. - Codex JSON export now supports CPA multi-document workflows in one modal: CPA exports can render per-account cards, save each account JSON separately, or batch-download all generated files into a chosen directory.
Fixed
- Export failures are now surfaced inside the active export modal: copy/save/open-directory failures now appear in-modal with anchored error messaging, and stale error states are cleared when retrying, toggling preview state, switching format, or closing the modal.
- Windsurf extension state now writes compatible pending migration tokens for supported prefixes: supported tokens (
sk-ws-01-,devin-session-token$,cog_) are written intowindsurf.pendingApiKeyMigration, preventing repeated migration loops after startup.
Cockpit Tools v0.22.9
更新日志(中文)
[0.22.9] - 2026-04-23
新增
- Windsurf 账号登录/导入现已支持 Auth1 账号与 Devin Session Token:导入时可直接识别
devin-session-token$...;邮箱密码登录会自动识别 Firebase / Auth1;Auth1 会话可补齐 synthetic API Key 与套餐快照。 - 日志查看器现已支持切换日志文件并按级别筛选:弹框可浏览受管的
app.log/codex-api.log日志文件,并按INFO/WARN/ERROR过滤日志条目。
变更
- Codex 本地 API 服务现已移除手动“速度”档位,并改为跟随上游默认 tier 行为:弹框不再展示速度选择;请求转发不再注入
service_tier;统计范围会记住上次选择。 - Codex 本地 API 服务在账号池下的流式转发与路由开销已收敛:
/v1/chat/completions流式响应改为边读边转,不再整段缓冲后回放;路由阶段会短暂缓存已准备账号;请求统计改为异步批量落盘。
修复
- Codex 账号注入现已改为以账号中心存储为 Token 真源:当前账号解析与实例注入不再回读受管本地 auth 快照,避免旧本地状态反向覆盖已刷新的凭据。
Changelog (English)
[0.22.9] - 2026-04-23
Added
- Windsurf account login/import now supports Auth1 accounts and Devin Session Tokens: token import can read
devin-session-token$..., password login auto-detects Firebase vs Auth1, and Auth1 sessions can recover synthetic API keys plus plan snapshots. - Log Viewer now supports switching log files and filtering by level: the modal can browse managed
app.log/codex-api.logfiles and filter entries byINFO/WARN/ERROR.
Changed
- Codex Local API Service now removes the manual
Speedselector and follows upstream default tier behavior: the modal no longer exposes the tier control, request rewriting no longer injectsservice_tier, and the stats range keeps the last selected view. - Codex Local API Service streaming and routing are now lighter under account pools:
/v1/chat/completionsstream responses are transformed chunk-by-chunk instead of full-buffer replay, prepared accounts are cached briefly for routing, and request stats are flushed asynchronously in batches.
Fixed
- Codex account injection now uses account-store tokens as the source of truth: current-account resolution and profile injection stop reading managed local auth snapshots back into the store, preventing stale local state from overriding refreshed credentials.
Cockpit Tools v0.22.8
更新日志(中文)
[0.22.8] - 2026-04-22
新增
- Codex 本地 API 服务现已新增“速度”选择(标准 / 快速)并支持持久化默认值:账号页 API 服务弹框可保存默认速度;网关转发
/v1/responses(含 chat/completions 转译链路)时在“快速”模式注入service_tier: "fast",标准模式则不携带该字段。 - Codex 切号与 API 服务激活后现可联动重启指定宿主应用:设置页与快捷设置新增“切换 Codex 时重启指定应用”开关及路径选择/输入,切号或激活 API 服务后会按配置路径执行重启。
变更
- 本地 API 服务上游重试策略现已支持按重试提示执行并带总预算控制:对
429/5xx/timeout等瞬时状态会优先读取Retry-After(HTTP 头或上游提示)并结合抖动退避重试,不再仅依赖固定的单账号状态重试。
Changelog (English)
[0.22.8] - 2026-04-22
Added
- Codex Local API Service now supports a
Speedselector (Standard/Fast) with persisted defaults: the account-page API Service modal can save the default tier, and gateway request rewriting now injectsservice_tier: "fast"for/v1/responses(including chat-completions translated requests), while standard mode keeps the field unset. - Codex switching now supports restarting a user-specified host app after switch/activate: Settings and Quick Settings add the
Restart specified app when switching Codextoggle plus path picker/input controls, and backend runtime restarts the configured app path after account switch or API Service activation.
Changed
- Local API Service upstream retry now honors retry hints with bounded jitter backoff: transient
429/5xx/timeoutstatuses can retry usingRetry-After(HTTP header or upstream hint parser) under a total retry budget, instead of fixed single-account status retries.
Cockpit Tools v0.22.7
更新日志(中文)
[0.22.7] - 2026-04-22
新增
- Codex API 服务现已提供 OpenAI 兼容的
/v1/chat/completions入口,并在网关内部转译为官方 Responses 协议:双向归一化 model 快照别名、tools/tool_choice、response_format 与流式 tool-call 增量,第三方客户端可直接对接本地网关。 - Codex API 服务管理面板现已展示
API Port URL与可选Model ID列表:弹框支持一键复制,并从后端运行态读取模型选项。 - 桌面端启动链路现已新增
AppRuntimeGuard兜底层:渲染崩溃或 chunk 加载失败时,会在应用内展示错误详情并提供刷新入口。
变更
- Codex API 服务上游转发现已补齐瞬时故障重试策略:请求发送错误及单账号 5xx/超时状态会执行有限退避重试,429 用量限流继续按模型级冷却处理。
- Trae 刷新链路现已保护运行中客户端/实例绑定账号:单账号刷新、批量刷新与 Token Keeper 在命中保护账号时改为“仅额度刷新”,同时继续更新配额/用量快照。
- Trae 切号与实例启动链路现已加强前后校验:注入/启动前先刷新账号,启动后执行严格 check-login 并在需要时静默修复;切号时若旧 Trae 进程无法正常关闭将直接中止并提示。
- Codex 切号后现会统一执行历史会话可见性修复检查:provider 变化会单独记录,provider 未变化时也会执行一致性检查。
Changelog (English)
[0.22.7] - 2026-04-22
Added
- Codex API Service now exposes an OpenAI-compatible
/v1/chat/completionsentry that is translated to the official Responses protocol internally: model snapshot aliases, tools/tool_choice, response_format, and streaming tool-call deltas are normalized in both directions so third-party clients can call the local gateway directly. - Codex API Service management now shows
API Port URLand selectableModel IDvalues: the modal supports one-click copy and reads model options from backend runtime state. - Desktop startup now includes an
AppRuntimeGuardfallback layer: render crashes and chunk-load failures show an in-app error panel with details and a refresh action.
Changed
- Codex API Service upstream dispatch now retries transient failures more predictably: request-send errors and single-account transient 5xx/timeout statuses now use bounded backoff retries, while 429 usage-limit responses continue to honor model-level cooldown.
- Trae refresh flow now protects accounts bound to running clients/instances: manual refresh, batch refresh, and token keeper switch to usage-only refresh for protected accounts, while still updating quota/usage snapshots.
- Trae switch/start flow now uses stricter pre/post account validation: account is refreshed before inject/start, post-start performs strict check-login with silent remediation when needed, and switch now aborts if existing Trae process cannot be closed cleanly.
- Codex account switching now always runs session-visibility repair checks: provider changes are explicitly logged while non-provider changes still run consistency checks.
Cockpit Tools v0.22.6
更新日志(中文)
[0.22.6] - 2026-04-21
新增
- 外部导入现已覆盖启动期与运行期的 Deep Link 唤起链路:启动参数、单实例唤起、
deep_link.on_open_url/get_current以及 macOSRunEvent::Opened现已统一走同一导入处理器,并支持待处理 payload 投递。 - Codex API 服务成员管理现已新增可持久化的“限制 Free 账号”开关:集合配置新增
restrictFreeAccounts(默认true),需要时可显式放开 Free 套餐账号。
变更
- Codex API 服务账号过滤现已端到端遵循已保存的 Free 限制策略:保存成员、运行时集合清洗、请求代理候选过滤现统一使用同一规则,不再固定强制屏蔽 Free 套餐。
- Antigravity 外部导入 token 处理现已在打开添加弹框前自动归一化 OAuth 刷新令牌:
1//...负载会自动包装为 JSON({"refresh_token":"..."}),减少手工转换 token 的步骤。
Changelog (English)
[0.22.6] - 2026-04-21
Added
- External provider import now handles deep-link wakeups across startup and runtime paths: startup arguments, single-instance wakeups,
deep_link.on_open_url/get_current, and macOSRunEvent::Openednow all route through the same import handler with pending payload delivery. - Codex API Service member management now includes a persisted
Limit Free Accountstoggle: collection settings addrestrictFreeAccounts(defaulttrue), so Free-plan accounts can be explicitly allowed when needed.
Changed
- Codex API Service account filtering now follows the persisted Free-account restriction end-to-end: save flow, runtime collection sanitization, and request proxy candidate filtering now use the same rule instead of always hard-blocking Free plans.
- Antigravity external-import token handling now auto-normalizes raw OAuth refresh tokens before opening the add-account modal:
1//...payloads are automatically wrapped into JSON ({"refresh_token":"..."}) to reduce manual token conversion.
Cockpit Tools v0.22.4
更新日志(中文)
[0.22.4] - 2026-04-19
新增
- 设置页现已新增内置“更新记录”查看弹框,并支持按版本下载:关于区域新增“更新记录”按钮,弹框可直接展示 changelog 历史,并对每个版本提供下载入口。
变更
- 更新器后端现已提供结构化发布历史接口(按语言读取本地 changelog):新增
get_release_history命令,读取CHANGELOG.md/CHANGELOG.zh-CN.md并解析Added/Changed/Fixed/Removed分组,支持前端按语言与数量限制展示。 - Codex 本地 API 服务成员资格现已端到端排除 Free 与 API Key 账号:后端集合清洗/请求路由与前端选择保存链路统一执行同一规则,且对不支持账号显示不可选标记。
- Codex 本地 API 服务在首次使用与缺失集合场景下的默认态已收敛:运行时会在缺失时自动初始化为“停用”集合;总览卡片提供稳定的 Base URL / API Key 占位显示;空状态提示改为启动导向文案。
Changelog (English)
[0.22.4] - 2026-04-19
Added
- Settings now include an in-app Release Notes viewer with per-version download actions: the About section adds a
Release Notesbutton, opens changelog history in a modal, and provides direct download actions for each listed version.
Changed
- Updater backend now exposes structured release history parsed from bundled changelog files: the desktop command
get_release_historyreadsCHANGELOG.md/CHANGELOG.zh-CN.md, parsesAdded/Changed/Fixed/Removedsections, and returns locale-aware results with list limits for frontend rendering. - Codex Local API Service member eligibility now excludes Free-plan and API Key accounts end-to-end: backend collection sanitization/request routing and frontend selection/save flows now enforce the same rule, while unsupported accounts are visibly marked and non-selectable.
- Codex Local API Service default/empty state is now stabilized for first-run and missing-collection scenarios: runtime auto-seeds a disabled collection when absent, the overview card keeps deterministic base-url/API-key placeholders, and empty-state guidance is rewritten to the new start flow.
Cockpit Tools v0.22.2
更新日志(中文)
[0.22.2] - 2026-04-18
变更
- Codex API 服务现已补齐总览入口控制与分时统计能力:列表模式下服务卡片可折叠;设置页与快捷设置可隐藏或恢复该入口;隐藏入口时会同步停用当前本地服务;服务面板统计现可在日、周、月三个时间范围间切换。
- 当前账号识别现已改为跟随 Cockpit 显式切换结果,不再依赖兜底猜测:各平台注入账号时会持久化当前账号映射,GitHub Copilot 已纳入该链路,账号索引修复或删除账号时也不会再静默指向首个剩余账号。
- 自动备份保留天数默认值现已调整为 15 天,并加入一次性历史迁移:历史默认值为
3的旧配置会在首次加载时自动升级到15;迁移完成后,用户后续手动设置的值(包括3)将被保留,不会再被自动改写。
Changelog (English)
[0.22.2] - 2026-04-18
Changed
- Codex API Service now adds persisted overview controls and time-window stats: the overview card can be collapsed in list mode, Settings and Quick Settings can hide or restore the entry, hiding the entry also disables the current local service, and the service panel now switches between daily, weekly, and monthly stats.
- Current-account resolution now follows Cockpit's explicit selection instead of fallback guessing: provider injections persist the current-account mapping, GitHub Copilot is included in that flow, and account index repair/delete paths no longer silently repoint the current account to the first remaining record.
- Auto backup retention now defaults to 15 days with a one-time legacy migration: existing configs using the historical default
3are upgraded to15once, while later user-selected values (including3) are preserved and no longer auto-overwritten.
Cockpit Tools v0.22.1
更新日志(中文)
[0.22.1] - 2026-04-18
新增
- 账号总览页现已支持按平台维度的筛选记忆(默认关闭):快捷设置新增“记住账号总览筛选(不含搜索)”开关;开启后,会按平台持久化视图模式、标签/分组筛选与排序偏好。
- 桌面端长时间运行场景现已启用后端 OAuth Token 保活:应用启动后会启动周期性保活任务,对即将过期的各平台 OAuth Token 执行刷新,并带失败退避与托盘状态刷新联动。
变更
- Antigravity 自动切号现已在配额阈值之外新增 Credits 阈值触发能力:设置页与快捷设置新增 Credits 监控选项,自动切号原因会展示 Credits 上下文,候选排序调整为先看配额再看剩余 Credits。
- Codex API 服务卡片现已固定为账号总览首个入口卡片:不再拆分为独立区域;空状态操作改为居中“添加账号”主按钮;成员选择弹框内套餐徽标与账号页样式保持一致。
Changelog (English)
[0.22.1] - 2026-04-18
Added
- Account overview pages now support platform-scoped filter persistence (disabled by default): Quick Settings adds a
Remember overview filters (except search)toggle, and when enabled the app persists per-platform view mode, tag/group filters, and sort preferences. - Backend OAuth token keeper is now enabled for long-running desktop sessions: Cockpit starts a periodic token keepalive worker on app startup and refreshes near-expiry OAuth tokens across supported providers with backoff and tray-state refresh hooks.
Changed
- Antigravity auto-switch now supports Credits threshold triggers in addition to quota thresholds: Settings and Quick Settings add Credits monitoring controls, trigger reasons now include credits context, and candidate ranking now prefers higher quota then higher remaining Credits.
- Codex API Service card now stays fixed as the first entry card across overview layouts: the service card no longer gets split into a separate region, empty-state actions now use a centered
Add AccountCTA, and plan badges in the member picker are aligned with account-page badge styling.
Cockpit Tools v0.22.0
更新日志(中文)
[0.22.0] - 2026-04-18
新增
- 已合入上游工作区/CLI 改造(PR #490,
dcdeda2,基于ca5aade):仓库已迁移为 Cargo Workspace,新增cockpit-core共享 Rust 逻辑层,并初始化cockpit-cli(首版支持 Cursor / Gemini 账号列出与切换)。 - Codex 账号页现已补齐本地 API 服务全量管理能力:提供内联服务卡片与独立服务面板,可在同一流程完成集合成员维护、密钥显示/重置、服务端口设置、直接启动/测试,以及成员集合编辑。
- API 服务现已记录并展示总量与按账号统计:服务面板可直接查看请求数、Token 使用(输入/输出/缓存/思考)、平均延迟与成功率。
变更
- 已并入
5a2d970的 Codex 调整:导入时会保留auth_file_plan_type(prolite/promax)并用于套餐徽标展示(PRO 5x/PRO 20x);sub2api导出结构新增exported_at、type/version、proxies及账号级concurrency/priority字段。 - Codex 实例绑定现已支持独立 API 服务目标(
__api_service__):账号选择器、实例搜索与实例列表标签现已统一识别并展示 API 服务模式。 - API 服务模式下启动 Codex 实例现已写入真实实例目录配置:启动链路与普通实例切换一致走真实落盘路径,并在 provider 实际变化时自动触发历史可见性修复。
- 从 Codex 账号页激活 API 服务时,默认运行态指针现已同步:会清空默认 current account 指针,并把默认 Codex 实例绑定更新为 API 服务模式。
- Cockpit 启动时现会自动恢复已保存的本地 API 网关运行态:已启用的 API 服务配置无需每次手动重新激活。
- Codex 配额网络失败提示现已统一收敛:手动刷新提示不再直接回显后端原始错误详情。
- API 服务新增文案现已覆盖全部支持语言并保持 key 对齐:
zh-CN、en-US、en以及其余非英语语言包均已同步补齐。
Changelog (English)
[0.22.0] - 2026-04-18
Added
- Merged upstream workspace/CLI changes from PR #490 (
dcdeda2, based onca5aade): the repository is migrated to a Cargo Workspace, introducescockpit-coreas shared Rust logic, and initializescockpit-cliwith the first account list/switch flow for Cursor and Gemini. - Codex now includes full local API Service management on the account pages: an inline service card plus a dedicated panel can manage collection members, API key visibility/reset, service port, direct activate/test actions, and account collection edits in one workflow.
- API Service now records and displays usage metrics for totals and per-account views: request counts, token usage (input/output/cache/reasoning), average latency, and success rate are all visible in the service panel.
Changed
- Integrated Codex account/export adjustments from
5a2d970: Codex import now preservesauth_file_plan_type(prolite/promax) from file metadata and uses it in plan badges (PRO 5x/PRO 20x);sub2apiexport payload now includesexported_at,type/version,proxies, and per-accountconcurrency/priority. - Codex instance binding now supports a dedicated API Service target (
__api_service__): account pickers, instance search, and Codex instance labels now recognize and display API Service mode consistently. - Starting a Codex instance in API Service mode now applies the switch on the real profile directory: startup uses the same persisted on-disk path as normal instance switching, and triggers history-visibility repair when the effective provider changes.
- Activating API Service from Codex accounts now syncs default runtime pointers: Cockpit clears the default current-account pointer and updates the default Codex instance binding to API Service mode.
- Cockpit startup now auto-restores saved local API gateway runtime state: previously enabled API Service settings are resumed without manual reactivation.
- Codex quota error messaging for network failures is now normalized: manual-refresh hints no longer expose raw backend error details.
- New API Service locale keys are now fully synchronized across all supported locales:
zh-CN,en-US,en, and the remaining non-English locale packs all ship with matching keys.
Cockpit Tools v0.21.4
更新日志(中文)
[0.21.4] - 2026-04-16
新增
- Codex 账号导出现已支持 Cockpit Tools、sub2api 和 CPA 三种格式:导出弹框可在预览、复制和保存前切换目标格式,便于把 Codex 凭证直接迁移到对应工具。
- 实例页账号选择器现已支持按标签筛选:绑定账号时可在下拉内先搜索、再按标签收窄账号范围,大账号池里不再需要只靠邮箱硬找。
- 账号页现已支持键盘刷新快捷键:
Cmd/Ctrl + R以及 Windows 下的F5会直接触发当前页面可见的刷新操作,无需再点工具栏按钮。
变更
- 按标签分组的账号视图现已把默认组放到最前,并在保存标签后保留滚动位置:新加但尚未打标签的账号更容易被第一时间看到,编辑标签后也不会再把长列表强制拉回顶部。
- Codex 与 GitHub Copilot 表格现已针对大屏做布局收敛:订阅标签固定单行展示,粘性操作列与行背景保持一致,2K 宽度下的表格阅读更稳定。
- 悬浮卡片现已改为新配置默认不开机展示:新安装或首次生成配置时不会再自动弹出悬浮卡片窗口,只有用户主动开启后才会在启动时显示。
修复
- GitHub Copilot OAuth 导入现已在每次重试时重新申请新的设备码:授权失败后重试不再复用已失效的 8 位码,也不再需要重启应用才能继续添加账号。
Changelog (English)
[0.21.4] - 2026-04-16
Added
- Codex account export now supports Cockpit Tools, sub2api, and CPA formats: the export dialog can switch formats before preview, copy, or save so Codex credentials can be moved directly into each target tool.
- Instance account pickers now support tag filtering while binding accounts: instance dropdowns can search and narrow accounts by tags, making large account pools easier to bind without memorizing email addresses.
- Account pages now support keyboard refresh shortcuts:
Cmd/Ctrl + RandF5on Windows trigger the visible page refresh action without clicking the toolbar button.
Changed
- Tag-grouped account views now surface the default group first and keep scroll position after saving tags: newly added untagged accounts are easier to find, and editing tags no longer jumps long lists back to the top.
- Codex and GitHub Copilot table layouts are refined for large screens: subscription badges stay on one line, sticky action columns blend with row backgrounds, and 2K-width tables read more cleanly.
- Floating card startup is now disabled by default for new configs: fresh installs no longer auto-open the floating card window on launch unless users opt in.
Fixed
- GitHub Copilot OAuth account import now always issues a fresh device code for each new attempt: retrying after a failed authorization no longer reuses an expired 8-digit code or require an app restart.