Skip to content

fix(accounts): 修复 OpenAI 7d 窗口误切 - #6

Merged
Clarence12138 merged 1 commit into
mainfrom
fix/openai-7d-usage-window
Aug 22, 2026
Merged

fix(accounts): 修复 OpenAI 7d 窗口误切#6
Clarence12138 merged 1 commit into
mainfrom
fix/openai-7d-usage-window

Conversation

@Clarence12138

Copy link
Copy Markdown
Owner

变更

  • 拒绝异常 0% 和提前 reset 的 7d 窗口样本
  • 仅在旧窗口实际结束后执行自动切窗
  • 加固同窗更新及关旧建新事务冲突处理
  • 增加生产问题复现、并发冲突和事务回滚测试

验证

  • go test ./internal/service ./internal/repository
  • go test -race ./internal/service -run "TestCodexWindowRecorder_|TestClassifyAccountWindowSample|TestValidAccountWindowSample" -count=1

拒绝异常与提前重置样本,并加固窗口切换事务及并发更新。
@Clarence12138
Clarence12138 merged commit f3b34d3 into main Aug 22, 2026
14 checks passed
@Clarence12138
Clarence12138 deleted the fix/openai-7d-usage-window branch August 22, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant