@ogulcancelik/pi-minimal-footer 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ The footer adapts to narrow terminals by stacking lines vertically instead of th
|
|
|
66
66
|
|
|
67
67
|
### Claude Max usage bar not showing
|
|
68
68
|
|
|
69
|
-
Anthropic's OAuth usage endpoint (`/api/oauth/usage`)
|
|
69
|
+
Anthropic's OAuth usage endpoint (`/api/oauth/usage`) rate-limits requests by `User-Agent`. Anything other than Claude Code gets persistent 429s ([claude-code#30930](https://github.com/anthropics/claude-code/issues/30930)), so the footer identifies as `claude-code/<version>`. The limit is still tight, so with many pi sessions open the bar may briefly keep showing the last known values.
|
|
70
70
|
|
|
71
71
|
## Notes
|
|
72
72
|
|
package/index.ts
CHANGED
|
@@ -354,6 +354,8 @@ async function fetchClaudeUsage(): Promise<UsageSnapshot> {
|
|
|
354
354
|
headers: {
|
|
355
355
|
Authorization: `Bearer ${token}`,
|
|
356
356
|
"anthropic-beta": "oauth-2025-04-20",
|
|
357
|
+
// Other user agents land in a much stricter rate-limit bucket (persistent 429s).
|
|
358
|
+
"User-Agent": "claude-code/2.1.282",
|
|
357
359
|
},
|
|
358
360
|
});
|
|
359
361
|
|