github jlcodes99/cockpit-tools v1.3.41
Cockpit Tools v1.3.41

3 hours ago

更新日志(中文)

[1.3.41] - 2026-09-06

变更

  • 统一模型列表管理弹框与 Codex 模型配置弹框的尺寸:采用相同的桌面端宽高上限,并让模型行填充弹框可用空间,完整目录可见且保持可滚动。

  • 默认使用近 7 天统计范围:API Service 与会话管理用量详情打开时默认展示最近 7 天,并保留日、周、月和自定义范围切换。

  • 记住用户最后选择的统计范围:切换为日、周、月或自定义日期后,API Service、服务设置弹框和会话用量详情下次打开会恢复对应范围;预设范围会按当前日期重新计算。

  • 增加统计与日志明细刷新:统计与日志页现在可以单独刷新当前范围的统计和请求明细,不会清除统计、重置筛选条件或改变分页位置。

  • 新增 API 服务与会话管理用量走势图:API Service 统计页面根据所选时间范围展示请求日志的按小时/按日 Token、请求数和估算费用走势;会话管理复用已有会话日志汇总,展示按日 Token 与请求数走势。

  • 统一 Codex 统计与会话管理的视觉风格:采用主指标 Hero、输入/缓存/输出指标卡片、圆角渐变走势图和会话条目布局;补齐悬浮 Tooltip、竖向指示线、节点高亮和多色指标层级,会话走势按时间正序展示,有值节点按不重叠规则显示 Token 徽标并修正边缘标签裁切,不改变原有数据来源和操作逻辑。

  • 统一 Astra 官方展示名称:受管模型目录和 API Service 统一显示为 6 Astra,请求模型 ID 仍保持为 gpt-6-astra

  • 新增官方实验性上下文管理开关(默认关闭):可在 Codex 设置、快捷设置和当前 Codex 配置中按需启用;关闭时移除该实验开关配置并回到官方默认行为,启用或关闭后需完全重启 Codex 生效,不影响上下文窗口、压缩阈值或 API 服务。

  • 明确实验开关名称:界面标题显示为 开启experimental_mode = true(实验性上下文管理),与实际写入的官方配置项一致。

修复

  • 将无额度账号纳入 API 服务冷却:加入 API 服务时,已确认常规额度为 0 的 OAuth 账号会直接进入额度冷却并被请求调度跳过;手动恢复不会解除该冷却,额度恢复后才会重新参与调度。
  • 修复账号异常弹框的单条恢复误清空全部账号状态:恢复单个账号时只清理该账号的调度与池诊断状态,其他异常账号继续保留在列表中。
  • 更新 Codex 客户端身份兜底并保留 API Key 透传请求头:OAuth 兜底身份改用当前 0.153.4 基线;API Key 的 HTTP 与 WebSocket 请求保留下游客户端的 User-AgentOriginator,不再被改写成旧的 0.146.0 身份。
  • 自动恢复被 Sidecar 调度状态阻断的账号:API Service 现在会将 auth_available=false 的调度冷却识别为可恢复的账号池异常;当账号池全部不可用时会进入自动恢复流程,不再必须手动重置。
  • 统一 CDP 注入额度徽标与 API Service 的有效窗口口径:周额度耗尽时,CDP 注入的 5h 徽标现在与 API Service 一致显示为 0,不再把各账号原始值相加成超过 100% 的结果。

Changelog (English)

[1.3.41] - 2026-09-06

Changed

  • Align the model-list manager dialog with the Codex model configuration dialog: use the same desktop width and height limits, and let the model rows fill the available dialog space so the full catalog remains visible and scrollable.

  • Default usage statistics to the last 7 days: API Service and session-management usage details now open on the most recent seven days while retaining daily, weekly, monthly, and custom range selection.

  • Remember the last selected statistics range: API Service, the service settings dialog, and session usage details now restore the user's daily, weekly, monthly, or custom date selection; preset ranges are recalculated against the current date.

  • Add a statistics and log-detail refresh action: the Statistics & Logs panel can now refresh the current range and request details without clearing statistics, resetting filters, or changing the current page.

  • Add usage trend charts to API Service and session management: API Service shows a responsive hourly/daily trend for request-log tokens, request count, and estimated cost, while session management shows daily token and request trends from its existing session-log summary.

  • Unify the visual style of Codex statistics and session management: use a hero summary, input/cache/output metric cards, rounded gradient trend chart, and session-item layout; add the floating tooltip, vertical indicator, node highlight, and multicolor metric hierarchy; session trends run chronologically, with token badges shown only for positive points that do not collide, while edge labels stay inside the chart without changing data sources or actions.

  • Use the official Astra display label: show 6 Astra consistently in the managed model catalog and API Service while keeping the request model ID as gpt-6-astra.

  • Add the official experimental context-management switch (off by default): it can be enabled from Codex Settings, Quick Settings, or the current Codex configuration; turning it off removes this experimental setting and returns to the official default behavior. Fully restart Codex after either change; the switch does not alter the context window, compaction threshold, or API Service.

  • Clarify the experimental switch label: the UI now shows Enable experimental_mode = true (experimental context management), matching the official configuration item that is written.

Fixed

  • Put quota-exhausted accounts into API Service cooldown: when an OAuth account with a confirmed zero regular quota is added to API Service, it immediately enters quota cooldown and is skipped by request routing; manual recovery cannot clear it, and it re-enters routing only after quota recovery.
  • Fixed single-account recovery clearing every account's health state: recovering one account from the abnormal-account dialog now clears only that account's scheduler and pool diagnostics while leaving other abnormal accounts visible.
  • Update Codex client identity fallback and preserve API Key passthrough headers: OAuth fallback headers now use the current 0.153.4 baseline, while API Key HTTP and WebSocket requests retain the downstream client's User-Agent and Originator instead of being rewritten to the old 0.146.0 identity.
  • Automatically recover accounts blocked by Sidecar scheduler state: API Service now treats auth_available=false scheduler cooldowns as recoverable pool failures, so an all-unavailable account pool can enter the automatic recovery path instead of requiring manual reset.
  • Align injected quota badges with API Service effective windows: when the weekly quota is exhausted, the CDP-injected 5-hour badge now follows the API Service and reports 0 instead of summing raw account values above 100%.

Don't miss a new cockpit-tools release

NewReleases is sending notifications on new releases.