Closed
Conversation
- 对齐 test 分支的 OpenAI WebSocket Mode v2 优化实现。 - 统一协议入口与模式治理,增强 previous_response_id 续链恢复。 - 优化调度/重试/降级策略与 WS 热路径性能,并补齐可观测性与管理端配置配套。
- 将 dev-upstream-clean-v2 分支代码整体对齐到 test 分支稳定实现(OpenAI WebSocket Mode v2 网关优化基线)。 - 修复 backend 编译/类型断言/lint 问题(errcheck、staticcheck、ineffassign、gofmt),清理冲突残留导致的重复与不一致代码。 - 修复 frontend lint 问题(settings.bulkEditTemplates.spec.ts no-extra-semi)。 - 已执行并通过全量测试:make test。
…esponse_id 导致 tool_output_not_found 不可恢复 1. 预防性检测:在 sendAndRelay 发送前拦截 store_disabled + function_call_output + 无 previous_response_id 的必然失败组合,提前返回可恢复错误(wroteDownstream=false),避免上游先写数据再报错 2. 恢复逻辑修复:recoverIngressPrevResponseNotFound 中 previous_response_id 已缺失时跳过 drop 步骤,直接进入 setInputSequence 重放,修复旧代码因 removed=false 提前退出的问题 3. 新增 20 个单元测试覆盖条件矩阵、payload 提取、恢复链路、回归验证及边界条件 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feat/admin-apikey-group-update 分支给 UserRepository 接口新增了 AddGroupToAllowedGroups 方法,需要在测试 stub 中补充实现以通过编译。 - sora_client_handler_test.go: stubUserRepoForHandler - sora_generation_service_test.go: stubUserRepoForQuota (cherry picked from commit ddd6331)
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.
Summary
优化内容
previous_response_id续链恢复逻辑。function_call_output、previous_response_not_found、tool_output_not_found等关键异常场景的恢复与重放。