Commit Graph

18 Commits

Author SHA1 Message Date
null fc24ec933b navbar is now explicitly local-first 2026-05-24 20:49:45 -05:00
null 56df59ff86 just one network call to api.anthropic.com/api/oauth/usage using the local OAuth token, and nothing else for Anthropic. 2026-05-24 19:22:18 -05:00
null 6bd6390b47 Parallelize the /v1/models and /api/oauth/usage calls using asyncio.gather in _do_fetch_provider_usage 2026-05-24 19:18:25 -05:00
null d406beec56 feat: update caching logic and improve provider usage fetching intervals 2026-05-24 19:05:30 -05:00
null 55a99ac9fd feat: extend CACHE_TTL_FAILURE_SECONDS to 60s and adjust retry logic for Anthropic subscription endpoint 2026-05-24 17:51:48 -05:00
null 66c7f9f5cd feat: implement in-flight deduplication and short TTL for subscription window failures in provider usage fetching 2026-05-24 17:37:08 -05:00
null f0bd9b4950 feat: implement retry logic for rate-limited requests to the Anthropic subscription endpoint 2026-05-24 17:23:41 -05:00
null 79ab63b206 feat: enhance subscription window handling to avoid stale cache on transient failures 2026-05-24 17:16:53 -05:00
null f48cf45cce feat(ui): edit ai providers 2026-05-21 20:11:46 -05:00
null ac29c79ff2 fix: ai local auth 2026-05-21 19:50:19 -05:00
null 66bbdd7398 fix: claude local 2026-05-21 19:42:46 -05:00
null ff5aa5f4f1 fix 2026-05-21 04:16:19 -05:00
null a6c24673bc fix(scripts): ai 2026-05-21 03:29:35 -05:00
null 1a0eaeee68 fix(scripts): ai calc 2026-05-21 02:25:50 -05:00
null 8d11f4f840 feat(usage): add source/confidence fields and relabel API rate limits (Phase 1, #36)
- Add source and confidence fields to RuntimeUsageWindow, ModelUsageEntry,
  TopSession, RuntimeUsageCurrent, and ProviderUsageScrapeResult schemas
- _build_window() assigns source based on data origin:
  provider_native > provider_api_rate_limit > local_jsonl_estimate
- _build_current() tags token_limit_source and cost_limit_source
- Frontend relabels 'Current session'/'All models' to 'API rate limit'
- Shows source label and confidence in usage strip
- Changes 'did not return active usage windows' to 'did not return
  API rate-limit windows for percent + reset diagnostics'
2026-05-21 01:01:05 -05:00
null fa5a18bccd fix(scripts): codex/ollama fallback 2026-05-20 23:49:56 -05:00
null 03bc31a558 fix(db): make main_session_key nullable on gateways
The column was NOT NULL but the ORM create path doesn't populate it
until ensure_main_agent() runs after INSERT. Make it nullable so the
initial create succeeds.
2026-05-20 23:22:54 -05:00
null 4c5264d2ed feat(admin): gateway restart, config edit, logs, provider credentials (batch 6, #35) 2026-05-20 22:03:57 -05:00