-
Notifications
You must be signed in to change notification settings - Fork 4
fix: two-pool quota model, account-add OAuth flow, quota refresh on open #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
iceteaSA
wants to merge
24
commits into
cortexkit:main
Choose a base branch
from
iceteaSA:fix/quota-two-pool
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
38ac287
fix(commands): wire account dialog OAuth flow
iceteaSA 0141af6
fix(quota): refresh sidebar state on modal open
iceteaSA d7e7f81
refactor(quota): collapse to gemini / non-gemini pools matching the r…
iceteaSA d56177f
test(quota): cover identity stamp mismatch and fail-open paths
iceteaSA db2d762
fix(tui): show both quota pools in the collapsed row
iceteaSA 9e1ff83
fix(quota): persist identity stamp + correct pool attribution
52b7802
fix(commands): add account to live runtime + oauth concurrency/seam
90337d9
fix(quota): preserve reset times + current-index on sidebar/remove
50340de
test: strengthen quota/killswitch/oauth coverage + small ui fixes
c0ae5f2
feat(quota): adopt retrieveUserQuotaSummary as the windowed quota source
2c0d8be
feat(tui): render per-window quota bars (weekly/5h) per pool
d645a7c
test: window-aware quota fixtures + e2e summary route
d69078b
fix(tui): carry quota windows through the sidebar read path
bb887de
fix(quota): project cached windows through every sidebar producer
fe5d936
fix(quota): source managedProjectId from the account record
1cbcfd6
fix(core): project record-level managedProjectId through account meta…
8bff3ec
fix(auth): delegate loader fetch through the live runtime
37e4952
fix(accounts): preserve per-family active indexes and cooldowns on re…
cf3cab1
fix(quota): endpoint failover, tolerant bucket parsing, concurrent fe…
0aa3248
test: strengthen oauth/removal/back-compat coverage
7d31887
fix(test): pin fences test events for concurrent quota fetches
ffeffde
test: make windowed-quota and record-fallback regressions effective
5602193
fix(accounts): align removal index semantics with the core manager
bfd519a
fix(accounts): distinguish an absent cooldown field from an empty one
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| { | ||
| "groups": [ | ||
| { | ||
| "buckets": [ | ||
| { | ||
| "bucketId": "gemini-weekly", | ||
| "displayName": "Weekly Limit", | ||
| "window": "weekly", | ||
| "resetTime": "2026-07-31T15:54:18Z", | ||
| "description": "You have used some of your weekly limit, it will fully refresh in 6 days, 22 hours.", | ||
| "remainingFraction": 0.8875432 | ||
| } | ||
| ], | ||
| "displayName": "Gemini Models", | ||
| "description": "Models within this group: Gemini Flash, Gemini Pro" | ||
| }, | ||
| { | ||
| "buckets": [ | ||
| { | ||
| "bucketId": "3p-weekly", | ||
| "displayName": "Weekly Limit", | ||
| "window": "weekly", | ||
| "resetTime": "2026-07-31T17:19:52Z", | ||
| "remainingFraction": 1 | ||
| } | ||
| ], | ||
| "displayName": "Claude and GPT models", | ||
| "description": "Models within this group: Claude Opus, Claude Sonnet, GPT-OSS" | ||
| } | ||
| ], | ||
| "description": "Within each group, models share a weekly limit. Quota is consumed proportionally to the cost of the tokens. Thus, limits will last longer with shorter tasks or using more cost-effective models. Your weekly limit is tied directly to your individual tier." | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| { | ||
| "groups": [ | ||
| { | ||
| "buckets": [ | ||
| { | ||
| "bucketId": "gemini-weekly", | ||
| "displayName": "Weekly Limit", | ||
| "window": "weekly", | ||
| "resetTime": "2026-07-28T18:24:21Z", | ||
| "description": "You have used some of your weekly limit, it will fully refresh in 4 days, 1 hour.", | ||
| "remainingFraction": 0.9214085 | ||
| }, | ||
| { | ||
| "bucketId": "gemini-5h", | ||
| "displayName": "Five Hour Limit", | ||
| "window": "5h", | ||
| "resetTime": "2026-07-24T20:43:21Z", | ||
| "description": "You have used some of your 5-hour limit, it will fully refresh in 3 hours, 25 minutes.", | ||
| "remainingFraction": 0.9885728 | ||
| } | ||
| ], | ||
| "displayName": "Gemini Models", | ||
| "description": "Models within this group: Gemini Flash, Gemini Pro" | ||
| }, | ||
| { | ||
| "buckets": [ | ||
| { | ||
| "bucketId": "3p-weekly", | ||
| "displayName": "Weekly Limit", | ||
| "window": "weekly", | ||
| "resetTime": "2026-07-31T13:41:52Z", | ||
| "description": "You have used some of your weekly limit, it will fully refresh in 6 days, 20 hours.", | ||
| "remainingFraction": 0.9852099 | ||
| }, | ||
| { | ||
| "bucketId": "3p-5h", | ||
| "displayName": "Five Hour Limit", | ||
| "window": "5h", | ||
| "resetTime": "2026-07-24T18:41:52Z", | ||
| "description": "You have used some of your 5-hour limit, it will fully refresh in 1 hour, 23 minutes.", | ||
| "remainingFraction": 0.9556296 | ||
| } | ||
| ], | ||
| "displayName": "Claude and GPT models", | ||
| "description": "Models within this group: Claude Opus, Claude Sonnet, GPT-OSS" | ||
| } | ||
| ], | ||
| "description": "Within each group, models share a weekly limit and a 5-hour limit. Quota is consumed proportionally to the cost of the tokens. Thus, limits will last longer with shorter tasks or using more cost-effective models. The 5-hour limit smooths out aggregate demand to fairly distribute global capacity across all users, while your weekly limit is tied directly to your individual tier." | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.