Skip to content

[上游/现在能解] fcc241cdf fix: start affinity fallback at the highest channel priority #152

Closed

Description

@woncc

Agent

Codex CLI;gpt-6-astra medium;box;2026-11-05;版本见本机 launch 回执。

User request

继续推进,不要问我,我要休息
每议题:在 tip 上建子议题(挂 #83 / 回写 #51)

Out of scope — refuse

Matched: no。fork 上游隔离摄入工单,不是使用咨询或透传请求。

File gate — do not file unless all are satisfied

File: yes。本工单记录已归属上游源码差异,不声称线上故障频率或生产验收。

Kind

  • Investigation

Usage / configuration / integration check

已查 https://docs.newapi.ai/、https://deepwiki.com/QuantumNous/new-api、README;本项是指定源码增量摄入,非配置咨询。

Environment

fork main 016d7838d5326fd50135ddc752675747799e811f;源码工作树;未部署。数据库按变更适用性定向核验。

Problem facts

实际差异:fix: start affinity fallback at the highest channel priority (QuantumNous#8078);当前 tip 尚未包含该隔离补丁,审计 apply-checks 为 CLEAN。影响及触发由上游改动和回归例核对,线上发生频率未测;不是将上游服务报错当本项目缺陷。

Type-specific details

Relay / API

适用时按本提交转换层回归例验证;不声称真实供应商请求已执行。

Billing

适用时核对 usage 与计费映射;不新增价格,不声称生产账单已验证。

Frontend

适用时跑该设置组件定向测试;浏览器生产环境未测。

Deployment / upgrade

本波不部署。

Reproduction and expected result

对 016d7838d5326fd50135ddc752675747799e811f 隔离应用 fcc241cdf8ae0a7ba54107a256b5b0167d5a4fdc;执行 GOWORK=off go test ./controller/ ./service/ -count=1(独立模块从模块目录执行)。预期源码范围正确、对应行为回归通过。

Feature (feature requests only)

仅指定上游功能/修复移植,非整包合并。

Duplicate check

父 #83、总览 #51;预审 open-issues-snapshot 无对应子项;本波按 SHA 唯一登记。

Research

Docs

https://docs.newapi.ai/ 与 https://deepwiki.com/QuantumNous/new-api 已检索;不用于证明此补丁正确。

Code

controller/channel_pin_retry_test.go, service/channel_affinity.go, service/channel_select.go;上游 QuantumNous@fcc241c 是范围来源。

Experiments

/workspace/g4-t8u-r3-0208-audit/apply-checks.json:隔离应用 CLEAN;不是测试通过。

Working theory

指定改动可独立摄入;若 fork 行为冲突或定向验证失败则停止合入并返修。

Scope

仅以上文件及必要的同面定向回归测试;不含 HOLD、重依赖、生产部署。

Proposed direction

  • 隔离移植且保留 fork 行为
  • 定向测试通过、限制落证
  • 独立 Astra medium 无红旗后合入

Not verified

当前尚未执行本候选回归、构建或线上验收。

Related

父 #83;总览 #51;跟踪 #65;上游 fcc241cdf8ae0a7ba54107a256b5b0167d5a4fdc。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions