revert: restore 5-hour quota window (rollback safety net)#138
Draft
lidge-jun wants to merge 13 commits into
Draft
revert: restore 5-hour quota window (rollback safety net)#138lidge-jun wants to merge 13 commits into
lidge-jun wants to merge 13 commits into
Conversation
…diff-level decade docs, 6-round audit synthesis (260716_grok_build_hardening)
…e Grok wire message with reasoning_content, signed ocxr1 siblings preserved separately, boundary clears (devlog 260716_grok_build_hardening/010)
…— re-read ~/.grok/auth.json before refresh, later-expiresAt adoption with zero IdP calls, detach to oauth on refresh (devlog 260716_grok_build_hardening/020)
…ck across IdP exchange, global store-write lock + async mutation funnel, generation-guarded persist, bounded token retry (devlog 260716_grok_build_hardening/030)
…quests — generation-checked singleflight refresh, fresh transport re-resolution, single replay (devlog 260716_grok_build_hardening/040)
…id, stable session/conv affinity, compatibility profile, executor-preserving header timeout (devlog 260716_grok_build_hardening/050)
… (260716_grok_build_hardening)
All GPT plans have migrated from a 2-week 5-hour rolling window to weekly-only rate limits. This removes the fiveHourPercent/fiveHourResetAt fields from the quota data model, auto-switch scoring, header extraction, GUI display, and all related tests. The Anthropic/Claude provider retains its 5h window but now stores it as a customWindow (label: "5h") instead of a top-level fiveHourPercent field. Changes: - StoredAccountQuota: drop fiveHourPercent, fiveHourResetAt - updateAccountQuota: remove fiveHour/fiveHourResetAt params - computeCodexUsageScore: score from weekly + monthly only - responses.ts: stop reading x-codex-primary-used-percent header - parseUsageQuota: ignore WHAM primary_window for GPT plans - providers/quota.ts: Claude 5h → customWindow, drop fiveHour fields - GUI: remove 5h bar from QuotaBars, i18n keys, AccountQuota type - All 6 affected test suites updated (129 tests pass)
…d icon - AddCodexAccountModal: remove window.open + popupRef (popup-blocked after await in Codex in-app browser, causing '링크 가기' prompt) - AddProviderModal: remove redundant window.open (server already opens) - auth-api: add server-side openUrl for /api/codex-auth/login (matches existing /api/oauth/login pattern in management-api.ts) - Providers: fix unsized IconExternal in .link-btn (was rendering at browser-default SVG size), add copy-link button to OAuth login hint - styles.css: add .link-btn svg size constraint (14×14) - i18n: add prov.copyLink/prov.linkCopied in en/ko/de/zh
The upstream WHAM API and x-codex-primary headers still carry quota data through primary_window, but it now represents the weekly limit (was 5h). Prefer primary over secondary for weekly, with secondary as fallback.
This reverts commit af18005.
lidge-jun
force-pushed
the
codex/restore-five-hour-quota-window
branch
from
July 16, 2026 12:30
86ddec2 to
7b8cae8
Compare
7 tasks
Wibias
added a commit
to Wibias/opencodex
that referenced
this pull request
Jul 16, 2026
Preserve five-hour quota UI pending lidge-jun#138; match Edit JSON actions to workspace link-style chrome.
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.
원복용 안전망 PR
GPT 요금제가 다시 5h 롤링 윈도우를 도입할 경우를 대비한 revert PR입니다.
언제 머지하나요?
무엇을 복원하나요?
StoredAccountQuota에fiveHourPercent/fiveHourResetAt필드updateAccountQuota시그니처에fiveHour/fiveHourResetAt파라미터computeCodexUsageScore에서fiveHourPercent포함한 max 계산x-codex-primary-used-percent헤더 추출primary_window→fiveHourPercent매핑codexAuth.fiveHour키Reverts
7fe556c7refactor: remove 5-hour quota window from GPT plans (weekly-only)