fix: taking plan type from usage endpoint instead of thru auth token (#7610)

pull plan type from the usage endpoint, persist it in session state /
tui state, and propagate through rate limit snapshots
This commit is contained in:
zhao-oai authored and GitHub committed 2025-12-04 23:34:13 -08:00
1 parent b1c918d8f7
commit b8eab7ce90
17 files changed
+224 -35

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ pub fn parse_rate_limit(headers: &HeaderMap) -> Option<RateLimitSnapshot> {
primary,
secondary,
credits,
plan_type: None,
})
}