@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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.ts +2 -0
  3. 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`) has been returning persistent 429 (rate limit) errors since late March 2026, affecting all third-party tools that display Claude usage data (CodexBar, oh-my-claudecode, claude-pulse, etc.). This is an Anthropic-side issue — tracked in [claude-code#30930](https://github.com/anthropics/claude-code/issues/30930) and [claude-code#31021](https://github.com/anthropics/claude-code/issues/31021). The usage bar will start working again once Anthropic fixes the endpoint.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogulcancelik/pi-minimal-footer",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Minimal footer for pi with context gauge and subscription usage bars",
5
5
  "type": "module",
6
6
  "keywords": [