gut(infra): remove provider-usage dashboard (#2306)#2327
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 12, 2026
Merged
Conversation
Delete the upstream consumer-focused provider quota dashboard (~3,450 LOC across 26 files) — it fetches LLM provider rate-limit endpoints from Anthropic, Google, OpenAI, Codex, Copilot, MiniMax, and Zai, which is orthogonal to RemoteClaw's middleware mission. Removed: - src/infra/provider-usage.* (14 source + 11 test files) - src/test-utils/provider-usage-fetch.ts - usage.status gateway RPC method + scope/list entries - --usage flag on `remoteclaw status` - --no-usage flag on `remoteclaw channels list` - provider-usage lookup blocks in status/session-status pipelines - test harness and fixture coverage for provider-usage Note: apps/macos/UsageData.swift still calls `usage.status`; it will receive "unknown method" at runtime until the macOS menu UI is gutted in a follow-up. Node build/tests unaffected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2306
Summary
Delete the upstream consumer-focused provider quota dashboard (~3,450 LOC across 26 files). It fetches LLM provider rate-limit endpoints from Anthropic, Google, OpenAI, Codex, Copilot, MiniMax, and Zai — classic "how much of my API quota have I used?" consumer dashboard UX that's orthogonal to RemoteClaw's middleware mission.
Found during the MBP deep-dive audit of
src/infra/.Changes
Deleted (26 files, ~3,450 LOC)
src/infra/provider-usage.ts+ 13 related source files (auth, fetch barrel + 6 provider fetchers, shared, types, format, load)*.test.tsfilessrc/test-utils/provider-usage-fetch.ts(test helper only used by deleted tests)Gateway cleanup
usage.statusRPC handler insrc/gateway/server-methods/usage.tsusage.statusfrommethod-scopes.tsandserver-methods-list.tsusage.cost(session cost — gut: remove session cost analytics (MBP audit) #2307 territory) untouchedCLI cleanup
remoteclaw status: removed--usageflag + fetch/render blocks (also fromsrc/cli/program/routes.tsfast-path)remoteclaw channels list: removed--no-usageflag + fetch/render blocksStatus pipelines
src/agents/tools/session-status-tool.ts: removed provider-usage lookup block +usageLineparamsrc/auto-reply/reply/commands-status.ts: removed provider-usage lookup block +usageLineparam (keptproviderin params signature as_provider— gut: remove session cost analytics (MBP audit) #2307 may still need it)Other
src/agents/auth-profiles/oauth.tsJSDoc to drop stale reference.secrets.baselineentries for deleted test fileAcceptance Criteria
grep -r \"provider-usage\" src/returns nothingusage.statusgateway method removed;--usagestatus flag gonepnpm build)pnpm test: 6434 passed, 2 skipped)pnpm check: format + typecheck + lint clean)Known Out-of-Scope Follow-ups
apps/macos/Sources/RemoteClaw/UsageData.swiftstill calls theusage.statusgateway method and will receive "unknown method" at runtime until the macOS menu UI is gutted in a follow-up. Node build/tests are unaffected.apps/macos/Sources/RemoteClaw/UsageMenuLabelView.swift,MenuSessionsInjector.swift, and related Swift UI code reference provider-usage — separate macOS gut task.--usage/--no-usage/ provider-usage snapshots — separate doc PR.Shared-File Coordination Note
Three files (
status.command.ts,session-status-tool.ts,commands-status.ts) will also be touched by #2307 (session cost removal). Edits here were deliberately minimal — removed only the provider-usage imports, fetch blocks, and optionalusageLineparameter propagation.Test plan
pnpm check(format + typecheck + lint)pnpm test(full suite)pnpm build