mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-03 00:00:58 +00:00
fix(updater): report the published version for the selected channel
Return an unknown version when discovery fails and preserve local update capability during rate limits. Keep release notes tied to the selected channel and require a higher version for installation. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
+6
-5
@@ -3415,18 +3415,19 @@ Provider metadata 分别保留 `requestedServiceTier` 与 `upstreamServiceTier`
|
||||
| `GET` | `/api/admin/system/restart/check` | 无 | 只读检查重启目标与启用插件 |
|
||||
| `POST` | `/api/admin/system/restart` | `{ confirmation? }` | 复核兼容性风险确认并重启,保留插件启用配置 |
|
||||
|
||||
版本接口只读本地构建和通道摘要,缓存未就绪时返回 `updateCached=false`。`updateChannel` 按运行版本推导,为 `stable`、`alpha`、`beta`、`rc`、`exp` 或 `unknown`
|
||||
版本接口只读本地构建和通道摘要,缓存未就绪时返回 `updateCached=false`、`latestVersion=null`。`updateChannel` 按运行版本推导,为 `stable`、`alpha`、`beta`、`rc`、`exp` 或 `unknown`
|
||||
|
||||
详情与安装接口的 `channel` 只对本次操作有效,省略时取运行通道。响应的 `policy` 包含 `channel` 和 `availableChannels`。普通实例可选 `stable`、`rc`、`beta`、`alpha`,实验实例仅可选 `exp`。
|
||||
未知枚举值返回参数错误。禁用通道、跨实验线、跨大版本、降级或同版本重装返回 `40901`。安装时同时提交已确认的 `channel` 和 `targetVersion`,服务端按[升级规则](../deploy/README.md#版本命名与升级规则)复核目标
|
||||
|
||||
| 详情查询结果 | `hasUpdate` | `latestVersion` | `releaseUrl`、`notes` |
|
||||
| --- | --- | --- | --- |
|
||||
| 有可安装的更高版本 | `true` | 候选版本 | 候选 Release 信息 |
|
||||
| 无可升级候选 | `false` | 当前版本 | 当前 Release 信息,未找到时为空 |
|
||||
| 构建不支持在线更新 | `false` | 当前版本 | 为空。跳过 Release 查询,通过 `updateSupported=false` 与 `unsupportedReason` 返回原因 |
|
||||
| 通道发布了可安装的更高版本 | `true` | 通道发布版本 | 该版本的 Release 信息 |
|
||||
| 通道版本等于或低于当前版本 | `false` | 通道发布版本 | 该版本的 Release 信息,运行版本缺少公开说明时为空 |
|
||||
| 构建或部署配置不支持在线更新 | `false` | `null` | 为空,通过 `unsupportedReason` 返回原因 |
|
||||
| 发布信息检查失败 | `false` | `null` | 为空,通过 `warning` 返回原因 |
|
||||
|
||||
`summaryOnly=true` 优先于 `refresh`,按发布索引检查版本,仅对更高候选核对公开 Release 和当前平台附件;`notes`、`releaseUrl` 为空。详情或摘要检查失败时返回 `warning` 和 `hasUpdate=false`,此时 `latestVersion` 不代表已确认的通道版本。GitHub 限流时,`retryAt` 为最早可重试的 RFC 3339 时间,`retryAtDisplay` 按部署时区展示;其他情况两者均为 `null`。
|
||||
`summaryOnly=true` 优先于 `refresh`,按发布索引检查版本,仅对更高候选核对公开 Release 和当前平台附件;`notes`、`releaseUrl` 为空。`updateSupported` 表示当前构建和部署配置是否支持在线更新,远端检查失败时仍保留此能力。GitHub 限流时,`retryAt` 为最早可重试的 RFC 3339 时间,`retryAtDisplay` 按部署时区展示;其他情况两者均为 `null`。
|
||||
普通查询缓存 20 分钟,手动刷新最短间隔为 60 秒;临时错误缓存 60 秒,限流按来源退避。
|
||||
目标变化须重新检查并确认。下载与校验见[在线更新](../deploy/README.md#管理端在线更新)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user