mirror of
https://github.com/tiennm99/claude-code-usage-bubble.git
synced 2026-10-28 02:18:31 +00:00
The Claude and Codex fetches now take their endpoint URLs as arguments, with poll supplying the real ones, so tests can point them at the local one-shot server. The tests pin the current behaviour: usage auth failures stop before the Messages fallback, server errors and unparsable bodies fall back to Messages, partial bodies get their reset times merged, Messages auth failures and missing rate-limit headers are reported, Codex 401 and 500 map to auth-required and bad-response, and the account header is sent only when an account id is set.