Repository navigation
fix: 接续 WS 可恢复认证与完整历史换号(#1126) - #1134
Merged
Merged
Conversation
…lidation (cherry picked from commit 9fa8c44fa30eedb021a9e703162a957870d66d0d)
Selectively integrate independently reviewed cefecab98d01c6aedf68a3dd7ab27a27dd8cdd8e: five production and regression paths only. Four blobs are identical; model catalog preserves already-merged production proxy routing plus the exact five-line probe guard. Workflow/oracle changes depend on blocked acc6657 and remain pending.
…y RED (cherry picked from commit 9a2cd0cdfff2f7fdc4091f435a97eedf36003f9e)
(cherry picked from commit acc6657ab1c661677712dc422cdd7629c19db116)
Complete workflow/oracle-only integration from independently inspected cefecab98d01c6aedf68a3dd7ab27a27dd8cdd8e; production/regression files already integrated as ec3fe8c.
(cherry picked from commit 8c4516c90f965d30dcfc8b3fff32ae0eebb3716b)
(cherry picked from commit 64bf373b50b396fa81ce1a5c37084f5e87ff91d1)
(cherry picked from commit f0b387f78ae3c1a675afec19c50348ff8486b9cd)
This was referenced Dec 1, 2026
ranxi2001
marked this pull request as ready for review
December 1, 2026 20:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决的问题与行为变化
关联记录与来源
abf6d43cf4f386aa734797cbeadf960735ab79d4,included heade3af1ba4fb9b514e61379c529e32657967270e1c)。不自动关闭整个 Issue。production@33ccaf48cba0105de45db42999ed644d2959bd01;headfix/issue1126-recovery-followup-20261201。cefecab98d01c6aedf68a3dd7ab27a27dd8cdd8e分生产/回归 ec3 与原样 workflow/oracle5186整合;F29a2cd0cdfff2f7fdc4091f435a97eedf36003f9e→0173;外部1133镜像 helper/测试/VERSION三文件普通merge到ebe,backend/internal未变。acc6657ab1c661677712dc422cdd7629c19db116→9288610;F38c4516c90f965d30dcfc8b3fff32ae0eebb3716b→a3995b;F464bf373b50b396fa81ce1a5c37084f5e87ff91d1→5c20149;B5f0b387f78ae3c1a675afec19c50348ff8486b9cd→当前37f68b。普通 cherry-pick-x 保留来源;无外部代码导入,不改写原 writer 树。管理员新功能提示
复现与验收
GATEWAY_OPENAI_LEGACY_COMPATIBILITY_MODE=true与 owner-binding opt-out 组合;strict 对照不改成默认值来避开失败分支。完整 Issue 矩阵(源码接入不自动勾选运行通过):
协议、调度或传输补充
实际验证
最终验收:当前头 专用 RED/GREEN 与 PostgreSQL 和 主 CI 通过;全部已触发工作流已结束。已下载并读取当前头的 source/identity、退出码、原始 JSONL 和 verdict:GREEN 250 个测试通过且93项必需具名断言命中,repository 12个测试通过且11项必需断言命中,auth GREEN 8个测试通过;历史 HTTP RED 四个叶用例在同一 B-reached 断言失败,认证 RED 五个叶用例在旧状态覆写断言失败,均非编译/环境失败。当前 production 的 #1136/#1137 已核,整合无冲突。未验证生产或真实供应商,不关闭整个 #1126。
本次本机针对已失败 CI 的定向复查:目录
/Users/onefly/Desktop/project/sub2api-pr1134-merge-dec02/backend,命令GOMAXPROCS=2 GOTOOLCHAIN=go1.27.4 go test -p 2 -race -tags=unit,issue1077 ./internal/handler -run '^TestIssue1126HandlerFullHistorySamePOST$' -count=1 -timeout=5m,退出 0,handler 5.782s。使用虚构账号和隔离 localhost 上游;未请求生产或供应商。2026-12-02 合并跟进:旧头
37f68b937的 GREEN 失败已读取原始日志。12 个历史用例的差异仅为既有 OAuth store=false 变换移除了 reasoning ID;pointer-only 用例在已有 owner 校验处提前拒绝,未到上游。追加e54151c5be7c47005a56fb592ea90b92c51c7bbf修正显式 wire 预期,并断言 pointer-only 为 400、A/B 均零连接/生成、零用量。未改生产变换、认证或重试逻辑,未删除密文/工具字段断言。当前头 CI 待运行,继续保持 Draft;历史矩阵尚不能标记全部通过。git diff --check 33ccaf48... HEAD、核心forwarder与原f0比较复现命令与产物:
.github/workflows/issue1126-ws-history-auth.yml、.github/scripts/issue1126-oracle.py。HTTP RED、GREEN、F1 auth_probe、repository分别保留identity/原始JSONL/退出码;GREEN必须命中native/header/usage/provenance等具名用例,编译/setup/skip不是行为RED。兼容性与运行影响
文档与用户可见变化
已更新
docs/openai-ws-sse-acceleration.md说明legacy完整历史准入、安全边界及同连接恢复。无新页面;实现接入不代表已验证真实生产恢复,未发版或部署。Agent 使用声明
本次 CI 修复与合并跟进:Codex,环境标识 GPT-6,具体变体与推理配置未知;读取失败日志、核对既有变换与 owner 校验、修正两处测试夹具及正文,无子 Agent。
Codex CLI唯一[Bug] WS 握手 401 漏标账号错误;HTTP→WS / 原生 WS 的 401、额度 429 换号依赖客户端重试 #1126 writer:实际turn_context已核
gpt-6.1-sol/ultra;fast requested,delivered tier未暴露。实现、具名回归、静态检查与普通本地commit。Hermes Agent父级:
gpt-6.1-sol,推理强度未知;需求、实际调用链/B5源码复核、选择整合、模板/元数据/发布/远端证据核验。Hermes独立只读reviewers:
gpt-6.1-sol,推理强度未知;分别冻结9fa、acc、cef、F3/F4的源码/回归/workflow审查。父级实际核每finding而非仅继承摘要。没有第二个[Bug] WS 握手 401 漏标账号错误;HTTP→WS / 原生 WS 的 401、额度 429 换号依赖客户端重试 #1126 writer。提交前自查