fix(codex): attribute Spark quota headers - #4137
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
|
Closing as superseded by #4128, which was merged into dev while this PR was being prepared. The upstream implementation covers the same model-aware quota attribution across HTTP, WebSocket, and compact paths, preserves existing custom windows, and includes stronger Spark/non-Spark/legacy regression coverage. I also verified the focused quota parser suite on the merged dev head (15 passed). Keeping this open would only duplicate and conflict with the merged fix. |
리뷰 · 우선순위 24 / 80이 PR은 Spark 모델 응답의 짧은(5시간) primary 헤더를 계정 공용 그런데 현재 구현 모양도 겹치면서 다릅니다. 이 PR은 이 PR만의 작은 차이는 작성자(cb8010d6)가 이미 “#4128에 의해 superseded”라고 닫아 둔 상태와도 맞습니다. 열린 PR 수를 부풀리지 말고, 닫힌 상태를 유지하면 됩니다. src/codex/quota.ts - HEAD에 이미 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
Summary
GPT-5.3-Codex-Spark 5hinstead of the account-levelshort*fieldsCloses #4122.
Verification
bun test tests/codex-integration/codex-quota-parser-parity.test.ts(14 pass)bun test tests/codex-integration/codex-quota-auto-refresh.test.ts --timeout 10000(20 pass)bun test tests/codex-integration/main-quota-provenance.test.ts tests/codex-integration/main-quota-window-observation.test.ts(all assertions passed)bun test tests/responses/responses-account-label.test.ts --timeout 10000(8 pass)bun test tests/responses/responses-compaction-routing.test.ts --timeout 10000(121 pass)bun run typecheckbun run lint:gui:if-changed(correctly skipped; no GUI changes)bun run privacy:scangit diff --checkWindows note: the existing
successive idle windowsauto-refresh test took about 5-6.5 seconds locally and crossed Bun's default 5-second per-test timeout; it passed with the explicit 10-second timeout above. No assertion failed.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.