Commit Graph
75 Commits
Author SHA1 Message Date
Julius MarmingeandClaude Fable 5 365aa87982 fix(auth): keep old clients connected across scope changes (#10298)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-10-06 20:30:14 -07:00
Julius MarmingeandClaude Fable 5 57b2418d4f feat(auth): separate diagnostics and usage permissions (#9790)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-10-06 20:30:12 -07:00
Julius MarmingeandClaude Fable 5 28ce9d1c17 feat(auth): separate environment administration permissions (#9786)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-10-06 20:30:11 -07:00
Julius MarmingeandClaude Opus 5.5 194c73f3f9 chore(deps): upgrade Effect to stable 4.0.1 (#16138)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-05 13:15:14 -07:00
oliver 0c81120137 fix(usage): model shares and order follow the selected metric (#11391) 2026-10-03 23:11:20 -03:00
Theo BrowneandClaude Opus 5.5 b05adb70b0 feat(usage): fold preview model IDs into the model they belong to (#15333)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 14:55:47 -07:00
Theo BrowneandClaude Opus 5.5 e8545b293b feat(usage): show cost by token type, speed, and model detail (#15108)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-03 02:24:10 -07:00
+36 de34391427 feat(orchestrator): introduce new orchestrator (#2829)
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: Bilal Bakr <[email protected]>
Co-authored-by: shivam <[email protected]>
Co-authored-by: Vitalii Yehorov <[email protected]>
Co-authored-by: Jake Leventhal <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Alex Southwell <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicholas Wasmiller <[email protected]>
Co-authored-by: PB <[email protected]>
Co-authored-by: Exotic <[email protected]>
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Theo Browne <[email protected]>
Co-authored-by: Gabriel De Andrade <[email protected]>
Co-authored-by: Dara Adedeji <[email protected]>
Co-authored-by: scratchyone <[email protected]>
Co-authored-by: Dominic Roy <[email protected]>
Co-authored-by: chukfinley <[email protected]>
Co-authored-by: Primož Ajdišek <[email protected]>
Co-authored-by: benthecarman <[email protected]>
Co-authored-by: NaveDanan <[email protected]>
Co-authored-by: aaditagrawal <[email protected]>
Co-authored-by: Aditya Garud <[email protected]>
Co-authored-by: Nick Anisimov <[email protected]>
Co-authored-by: MacKinley Smith <[email protected]>
Co-authored-by: Yordis Prieto <[email protected]>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: AKolenda <[email protected]>
Co-authored-by: Guillermo Casanova <[email protected]>
Co-authored-by: Otavio Salvador <[email protected]>
Co-authored-by: Shirish Pothi <[email protected]>
Co-authored-by: Ishaan Kothari <[email protected]>
Co-authored-by: Bob Fowler <[email protected]>
Co-authored-by: Anton Bezdenezhnykh <[email protected]>
Co-authored-by: ValeraZSD <[email protected]>
Co-authored-by: Ephraim <[email protected]>
Co-authored-by: Ryan Ilano <[email protected]>
Co-authored-by: Alex <[email protected]>
Co-authored-by: maco <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Tristan Knight <[email protected]>
Co-authored-by: PR Batch Tester <[email protected]>
Co-authored-by: oliver <[email protected]>
Co-authored-by: kamkm <[email protected]>
Signed-off-by: Yordis Prieto <[email protected]>
2026-10-02 12:22:22 -07:00
Julius Marminge 27bdf1aa14 feat(codex): connect ChatGPT accounts with managed authentication (#14290) 2026-09-29 11:15:29 -07:00
Tristan Knight d15210cd3d fix(web): prevent usage summary shift for unpriced records (#13991) 2026-09-27 18:23:29 -05:00
Yash SinghandClaude Opus 5.5 679c34c096 fix(clients): hide duplicate Cursor Keychain prompts (#13870)
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-09-26 16:23:10 -05:00
Tristan Knight 3dae78f33b fix(usage): identify client version mismatches (#8208) 2026-09-26 14:58:29 -05:00
Tristan Knight daafcc4a97 feat(web): add keyboard navigation for usage (#10158) 2026-09-26 03:26:29 -05:00
Guillermo Casanova 94c42162b4 fix(usage): hide the Cursor keychain prompt when Cursor isn't set up (#13714) 2026-09-25 22:41:48 -05:00
mariaandYash Singh e5a46d6c5d feat(usage): read cursor, opencode, and antigravity history (#10409)
Co-authored-by: Yash Singh <[email protected]>
2026-09-25 06:26:36 -05:00
Julius MarmingeandClaude Opus 5.5 f26ee083fe fix(web): appearance classes use theme tokens and scale values (#13397)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 10:49:05 -07:00
Julius MarmingeandClaude Opus 5.5 315fcca10a fix(web): web colors come from theme tokens (#13371)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 10:49:04 -07:00
Julius MarmingeandClaude Opus 5.5 f465227773 refactor(web): app code stops restyling sidebar, popover, table and misc ui exports (#13207)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-22 21:33:02 -07:00
Julius MarmingeandClaude Opus 5.5 866fc90759 refactor(web): menu triggers and items stop restyling ui/menu (#13205)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-22 21:33:01 -07:00
oliverandClaude Opus 5.5 b954af60c4 test(web): cover usage model ordering without static markup (#13104)
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-09-22 17:45:50 -07:00
Julius MarmingeandClaude Fable 5 1c2f933892 refactor(web): render menu and popover triggers through Button (#13042)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:20 -07:00
Julius MarmingeandClaude Fable 5 d7736e06b6 refactor(web): one minimum width for menus, three widths for popovers (#13035)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:16 -07:00
Julius MarmingeandClaude Fable 5 f3d3fe4569 refactor(web): one vertical rhythm for dialog bodies (#13032)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:15 -07:00
Julius MarmingeandClaude Fable 5 aa2b25d29b refactor(web): one wrap width for tooltips, plus a code variant (#13031)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:15 -07:00
Julius MarmingeandClaude Fable 5 7d658c24db refactor(web): give Skeleton three shapes (#13030)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:14 -07:00
Julius MarmingeandClaude Fable 5 7b54af90f7 refactor(web): add font="mono" to Input (#13027)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:13 -07:00
Julius MarmingeandClaude Fable 5 1a81ea8c15 refactor(web): fold repeated overrides into ui defaults (#13021)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-22 12:22:10 -07:00
Julius MarmingeandClaude Fable 5 b5a0f81010 refactor(web): give Spinner and RefreshIcon a size prop (#12985)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-21 22:57:43 -07:00
Julius MarmingeandClaude Fable 5 c26119ada3 refactor(web): drop className overrides that repeat the base styles (#12984)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-21 22:17:23 -07:00
Bilal BakrandJulius Marminge 87a12b53fd fix(usage): refresh limits when the tab opens (#11928)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-15 15:46:42 -07:00
Dominic Roy fcbe45796a fix(usage): make unavailable account limits more visible (#10601) 2026-09-12 20:30:05 -03:00
t3-code[bot]andExotic e1c94f703f fix(web): refresh usage limit countdowns without switching tabs (#11187)
Co-authored-by: Exotic <[email protected]>
2026-09-11 13:21:27 -07:00
Julius MarmingeandClaude Code 05d4042100 feat(web): open Usage on the Limits tab by default (#11261)
Co-authored-by: Claude Code <[email protected]>
2026-09-11 10:09:48 -07:00
mariaandClaude Opus 5 48654c1182 fix(usage): flag unpriced model activity instead of showing $0.00 (#11021)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-09-10 23:39:21 -03:00
Julius Marminge 1f14d6d10a fix(usage): keep account columns aligned across limit rows (#10690) 2026-09-08 00:40:35 -07:00
Julius Marminge 0a89364f15 fix(usage): read and redeem hub reset credits through CLIProxyAPI (#10395) 2026-09-06 16:30:10 -07:00
Julius Marminge 00d6109cbb chore(web): remove usage limits demo fixtures (#10330) 2026-09-06 00:07:04 -07:00
Julius Marminge b273d1cfe9 feat(usage): pool subscription limits per provider across accounts and environments (#10300) 2026-09-06 00:02:37 -07:00
Exoticandshivam add8c3a55a fix(web): remember usage page selection (#10189)
Co-authored-by: shivam <[email protected]>
2026-09-06 09:24:18 +05:30
Wout StiensandJulius Marminge f12d39359f fix(ui): unify loading and refresh feedback across clients (#9561)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-05 16:26:02 -07:00
Chris DeemingandJulius Marminge be53bbd850 feat(usage): show remaining quota instead of used (#9889)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-05 16:22:15 -07:00
Chris Deeming 183c343309 feat: show provider usage limits with /usage-limits (#9875) 2026-09-05 16:17:36 -07:00
Julius Marminge 487d1766ca refactor(web): test the live usage column builder (#9993) 2026-09-05 00:19:33 -07:00
Julius Marminge 84b99f3fb7 feat(web): edit usage prices across selected environments (#9861) 2026-09-04 19:45:14 -07:00
Julius Marminge 7ee52b0773 fix(web): render and filter usage as environments respond (#9860) 2026-09-04 19:45:13 -07:00
maria 98a29cbaa1 fix: address usage limits and merge settlement regressions (#9784) 2026-09-04 17:46:12 -04:00
Julius Marminge 394e8470c8 feat(usage): support custom model prices (#9774) 2026-09-04 14:22:21 -07:00
Julius Marminge f1e90e388b refactor(web): move usage provider controls to settings (#9599) 2026-09-03 23:56:23 -07:00
Julius Marminge b34ff8f564 fix(usage): deduplicate CLI proxy subscription accounts (#9584) 2026-09-03 21:38:45 -07:00
1641b4aba5 feat(usage): redeem Codex reset credits from the Limits tab (#9534)
Follow-up to #9507, carrying over the reset-credit redemption from #9421.

Codex grants a reset credit when it has rate-limited an account unfairly (`"Thanks for using Codex! You've been granted one free rate limit reset."`). Redeeming one clears the current 5h/weekly windows. The Limits tab now shows how many are banked and when the next expires, with a confirmed **Use a reset credit** action.

## How it works

- `ServerProviderUsageLimits.resetCredits` carries the count and soonest expiry; the Codex probe reads it from the same `account/rateLimits/read` it already makes.
- `ProviderInstance.consumeResetCredit` is a new optional hook — account-level, so it sits beside `refreshModels` rather than on the thread-routed adapter. The Codex driver implements it over a short-lived app-server (via `withCodexAppServerClient`, factored out of the status and skills probes which duplicated the setup), then re-probes.
- Single-flight per instance with one idempotency key kept until Codex reports an outcome, so a retry after a timeout does not open a second attempt.
- New `provider.consumeResetCredit` RPC under the operate scope; the outcome (`reset` / `nothingToReset` / `noCredit` / `alreadyRedeemed`) is shown inline.

Only Codex reports credits today. A provider without the hook gets a clear "does not bank reset credits" error; one without credits shows nothing.

## Screenshots

The local Codex row with one banked credit (the same account via the CLIProxyAPI hub above it shows no credit, as expected — the hub does not relay them):

![Limits tab with the Codex row showing "1 reset credit banked · next expires in 16d 22h" and a "Use a reset credit" button](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2897db5e357f12b3/credits-tab.png)

Close-up of the row:

![Codex row: Weekly 25% used bar, then "1 reset credit banked · next expires in 16d 22h" with the "Use a reset credit" button](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0e80f9114cab8f36/credits-row.png)

Clicking it opens the confirmation; nothing is sent until **Use credit**:

![Confirm dialog: "Use a reset credit? This redeems one credit on your account and clears the current rate-limit windows. It cannot be undone." with Cancel and Use credit](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/dc728580889ef1fe/credits-confirm.png)

## Verification

- Mapper tests for the credit summary; provider, contract, and Usage page suites pass; typecheck clean.
- Verified against a real Codex Pro account holding one credit: summary and expiry render, the confirm dialog opens. **Not redeemed** — that would spend the credit.

Written by Claude Fable 5 via Claude Code; design and single-flight approach from @StiensWout's #9421.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Redemption spends real account credits over a new RPC; correctness depends on per-account locking and idempotency, though disabled instances and non-Codex providers are rejected explicitly.
> 
> **Overview**
> Adds **end-to-end redemption of banked Codex rate-limit reset credits** from the Limits UI on web and mobile, backed by a new operate-scoped `provider.consumeResetCredit` RPC.
> 
> **Contracts and server:** `ServerProviderUsageLimits` can include `resetCredits` (count + next expiry). Codex probes attach that from `account/rateLimits/read`. Optional `ProviderInstance.consumeResetCredit` is implemented for Codex via a scoped app-server call to `account/rateLimitResetCredit/consume`, then a limits refresh. `CodexResetCreditCoordinator` serializes redemptions per Codex account directory, reuses one idempotency key until Codex returns an outcome, and times out hung requests. `withCodexAppServerClient` is extracted so status, skills, and redemption share the same short-lived app-server setup.
> 
> **Clients:** Limits rows show banked credits and a confirmed **Use a reset credit** action that calls `serverEnvironment.consumeResetCredit` and surfaces outcomes (`reset`, `nothingToReset`, etc.) or errors.
> 
> **Web usage sources (same PR):** Adding/removing CLIProxyAPI hubs and the add dialog target a **selected connected environment** (with picker when several are connected), gated by operate access—not only the primary environment.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 98f32e60852dca1d38c94335b3ed7aac8c4b895e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->


Co-authored-by: Wout Stiens <[email protected]>
Co-authored-by: Claude Code <[email protected]>
2026-09-03 19:14:29 -07:00