Chaim 693126484b
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 3s
fix(operations): cache the usage endpoint (avoid 429) + show weekly-Sonnet not Opus
Two follow-ups to the usage-% feature:

1. The /api/oauth/usage endpoint 429s when polled often — /operations refreshes
   every 5s and each refresh hit it (plus the supervisor + ad-hoc calls). Cache
   the last good payload on the host bridge for 60s and serve it; only re-fetch
   when stale, so Anthropic sees ~1 req/min regardless of dashboard polling. On
   a fetch failure (e.g. a transient 429) serve the last good payload instead of
   blanking the card. The 5-hour window moves slowly, so 60s stays fresh.

2. The third meter showed weekly-Opus, which is null on this account (the
   per-model weekly cap that's actually populated is Sonnet). Switched the
   display to seven_day_sonnet / "שבועי · Sonnet". (The supervisor keeps gating
   on seven_day_opus — the halacha drain runs Opus, so the Opus cap is the
   correct gate even when it's null/inactive.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-13 10:43:57 +00:00
Description
AI Legal Decision Drafting System — MCP server, web upload, RAG search
21 MiB
Languages
Python 63.5%
TypeScript 34.2%
JavaScript 1.2%
Shell 0.8%
CSS 0.2%