Repository navigation
Commit 6bbff17
fix(server): a Claude account with no rate-limit data no longer stays unsupported
The Claude usage probe marked an account `unsupported` whenever `get_usage`
returned no `rate_limits`, including when `rate_limits_available` was true.
The CLI sends that shape when its own usage fetch fails, so a subscription
account was locked out of Limits with no bar and no notice, and streamed
rate_limit_event windows were discarded. Only `rate_limits_available: false`
is now `unsupported`; the other shape is `probeFailed`, which shows
"Could not read limits." and recovers on the next probe or streamed window.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>1 parent a01c48f commit 6bbff17
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
| |||
0 commit comments