dhruvgupta-oai
577a4fcd06
Extend rate limit reads with usage capabilities ( #42358 )
...
## What changed
- Accept optional `account/rateLimits/read` capabilities for Luna Reserve support
and lightweight background polling while preserving omitted and `null` params.
- Forward the Luna Reserve capability only for eligible ChatGPT sessions, and let
lightweight polls skip the separate reset-credit detail request.
- Return the backend's `ordinaryUsageAllowed` decision only when its account and
user identity match the active session.
## Testing
- Cover capability defaults, eligible and restricted authentication modes,
lightweight polling, identity filtering, and backend permission handling.
GitOrigin-RevId: f407a3ae1e70e411fdf245f072a16e453f59cd87
2026-09-02 21:01:04 +00:00
..
2026-08-24 22:40:35 +00:00
2026-09-02 17:27:50 +00:00
2026-09-02 21:01:04 +00:00
2026-09-02 04:20:38 +00:00
2026-09-02 17:52:16 +00:00
2026-09-02 21:01:04 +00:00
2026-08-25 03:08:33 +00:00
2026-09-02 18:42:06 +00:00
2026-08-20 08:10:08 +00:00
2026-08-31 13:44:12 +00:00
2026-08-31 13:44:12 +00:00
2026-08-24 21:39:48 +00:00
2026-09-02 21:01:04 +00:00
2026-09-02 18:34:27 +00:00
2026-09-02 20:07:11 +00:00
2026-08-28 19:44:50 +00:00
2026-08-28 19:44:50 +00:00
2026-08-29 02:52:58 +00:00
2026-09-01 17:17:45 +00:00
2026-09-01 01:00:50 +00:00
2026-09-01 01:00:50 +00:00
2026-09-01 05:17:11 +00:00
2026-08-25 21:20:51 +00:00
2026-09-01 20:26:57 +00:00
2026-08-29 02:46:06 +00:00
2026-09-02 18:18:54 +00:00
2026-08-31 21:27:51 +00:00
2026-09-02 01:06:18 +00:00
2026-08-23 18:53:15 +00:00
2026-09-02 20:41:14 +00:00
2026-08-25 21:20:51 +00:00
2026-09-02 18:34:27 +00:00
2026-09-02 02:09:35 +00:00
2026-09-02 16:40:09 +00:00
2026-09-02 12:07:32 +00:00
2026-09-02 18:52:44 +00:00
2026-09-02 15:07:11 +00:00
2026-09-02 20:30:45 +00:00
2026-09-01 16:49:16 +00:00
2026-08-27 20:44:47 +00:00
2026-09-02 03:46:24 +00:00
2026-09-02 18:52:44 +00:00
2026-09-02 18:52:44 +00:00
2026-09-01 18:02:27 +00:00
2026-09-01 15:12:53 +00:00
2026-08-26 23:41:18 +00:00
2026-08-25 21:08:22 +00:00
2026-08-28 01:14:02 +00:00
2026-09-02 15:07:11 +00:00
2026-08-28 01:14:02 +00:00
2026-08-26 14:36:48 +00:00
2026-08-31 22:08:44 +00:00
2026-08-25 18:41:03 +00:00
2026-09-02 18:52:44 +00:00
2026-09-01 17:17:45 +00:00
2026-09-01 18:02:27 +00:00
2026-08-25 15:50:19 +00:00
2026-09-02 18:52:44 +00:00
2026-08-31 19:44:44 +00:00
2026-08-26 17:45:42 +00:00
2026-08-21 16:45:05 +00:00
2026-09-02 03:24:43 +00:00
2026-09-02 18:52:44 +00:00
2026-08-28 01:14:02 +00:00
2026-09-01 22:08:08 +00:00
2026-09-01 18:24:56 +00:00
2026-09-01 17:47:29 +00:00
2026-09-02 15:07:11 +00:00
2026-09-02 18:34:27 +00:00
2026-09-02 18:18:54 +00:00
2026-09-02 15:46:33 +00:00
2026-09-02 02:09:35 +00:00
2026-09-02 21:01:04 +00:00
2026-09-02 18:42:06 +00:00
2026-09-02 18:52:44 +00:00
2026-09-02 19:13:32 +00:00
2026-08-20 14:55:08 +00:00
2026-09-02 20:27:05 +00:00
2026-09-02 20:30:45 +00:00
2026-09-02 03:46:24 +00:00
2026-09-02 20:07:11 +00:00
2026-09-02 19:49:58 +00:00
2026-09-01 16:40:05 +00:00