Repository navigation
fix: 保留原生 Anthropic 未知用量并传递流式刷新错误 - #991
Merged
ranxi2001 merged 4 commits intoNov 21, 2026
Merged
Conversation
Owner
Author
|
固定4793f5d2d及当前68bd09931ab58123566fadbce95ddebd23559730独审:B1源码CLEAR,B2整体仍BLOCK。新增6行仅改fixture,未更动以下反例:启用RequestCapture时captureResponseWriter没有FlushError/Unwrap,FlushGatewayResponse退回void Flush,实际底层Flush-only失败仍可丢失;人工issue985FlushGuard测试不能覆盖真实capture组合。请保留Ops writer lease/generation/in-flight guard,为真实capture激活链补中间/最终Flush失败回归并修复传播。已交给当前唯一writer,同一PR推进,不另建竞争分支;远程CI未完成,不能ready/merge或关闭985。父级已亲读capture与helper,独立报告仅静态,不冒称执行GREEN。Agent:Hermes父级及独立reviewer gpt-6.1-sol,推理强度未知。 |
ranxi2001
marked this pull request as ready for review
November 21, 2026 17:05
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.
最终验收 提交
b9a593d802ec2e18ee07ef2d1912e9027412e2f6的 67 项检查通过,12 项按工作流条件跳过。主 CI · Anthropic SSE 专项检查维护者在原分支追加
ffa786c4a和b9a593d80。开启 RequestCapture 时,包装的 writer 将刷新操作交给下一层,并把传输错误返回调用方、标记到采集记录中。已核对 Ops writer 的生命周期保护。实际启用采集的中间刷新和最终刷新两项回归均通过。中间件单元测试计费测试补齐了模拟缓存的余额及平台额度失效操作,沿用原有 PostgreSQL 持久化、扣费和幂等断言。专项 CI 覆盖 36 个原生 handler 用量场景、36 个数据库入账场景和 12 个流式刷新错误场景。复核命令为应用源码目录的
git diff --check origin/production...HEAD和gh pr checks 991 -R ranxi2001/sub2api。本轮维护由 Codex(GPT-6,环境未提供完整模型 ID 与推理强度)完成代码复核、修复、远端验证及合并。以下为作者提交 Draft 时的记录。解决的问题与行为变化
关联记录与来源
9c55c27875bb5ba98611368c2179790248cc71ea,没有引入其他仓库提交。管理员新功能提示
复现与验收
TestIssue985NativeHandlerUsage、TestIssue985NativePostgresBilling、TestIssue985FlushFailure;已加入现有严格 evidence validator 必须通过清单,原 oracle 全部保留。协议、调度或传输改动补充
实际验证
git diff --check兼容性与运行影响
文档与用户可见变化
纯内部修复,无管理员 UI。缺 usage 不产生普通零报价;可观察 flush 错误不再被报成功。本 PR 不执行 ready、merge、release、tag、deploy。
Agent 使用声明
gpt-6.1-sol,推理强度ultra,requested fast;遵循交接指定配置,未改全局配置。review_flush:B2 生命周期及当前 diff 只读分析;继承主代理模型与强度,无源码/远程写入。native_pg_plan:B1 handler/PG fixture 与当前 diff 只读分析;继承主代理模型与强度,无源码/远程写入。提交前自查