Repository navigation
fix: preserve Anthropic SSE usage and reject incomplete success - #987
Merged
ranxi2001 merged 22 commits intoNov 21, 2026
Merged
Conversation
ranxi2001
marked this pull request as ready for review
November 21, 2026 15:02
This was referenced Nov 21, 2026
Merged
wubowuboOne
added a commit
to wubowuboOne/sub2api
that referenced
this pull request
Nov 22, 2026
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.
合并前验收,当前提交
e3295d40bfc0fc7d101fd1141c25bd58a313a2d9,目标分支production。 此提交已整合 #971、#984、#986。通过gh pr checks 987 -R ranxi2001/sub2api核对 74 项通过,12 项按工作流条件跳过。主 CI · Anthropic SSE 专项回归维护者复核 SSE 分帧、终态判定、缺失用量和显式零的区别、错误输出与已观察到的缓存用量。修复
7ca68a3c8覆盖提前 EOF 返回错误时仍保留服务端费用的断言。修复076975672使用锁定版本官方 SDK 提供的 HTTP 客户端。本地在该提交的backend/运行go test -tags=unit,issue985sdk ./internal/handler -run '^TestIssue985SDKAccumulator$' -count=1 -timeout=5m,12 个流式及非流式回环场景通过。最终提交的独立 Actions 包含 SDK、工具续接、消费用量、隔离 PostgreSQL、竞态和普通服务端构建。历史请求缺少原始帧,验收使用合成输入。本轮维护由 Codex(GPT-6,环境未提供完整模型 ID 或推理强度)完成 CI 诊断、测试修复、源码复核与合并验收。以下保留作者的分阶段记录。
解决的问题与行为变化
关联记录与来源
管理员新功能提示
复现与验收
协议、调度或传输改动补充
实际验证
兼容性与运行影响
文档与用户可见变化
内部修复;无UI/i18n/新字段。旧缓存/用量矩阵的正常控制补上真实语义内容与message_stop,EOF分支改为失败但保留原token/cache/费用断言;最初固定源RED/GREEN oracle字节未变。完整验收合同已提交;PR保持Draft,不ready/merge/release/deploy。
Agent 使用声明
7ca68a3c81682c5091cea11c14afc596b0cd1f55:git 作者 ranxi2001,调整 EOF 缓存断言及 helper 的 unit 可见性;本 Codex 会话未创建该提交,已保留其历史。另有外部 e01953b/93687ce8a production merges 和076975672 SDKtransport修复,均保留原作者历史。对应 Agent、模型及推理强度未知(本会话未取得该外部执行 metadata),不凭作者名推断。提交前自查