Skip to content

[Bug]: Usage → Limits refresh re-probes every provider, so it is slow #34652

Done

Description

@jemankalita

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Configure a couple of providers (e.g. Codex and Claude).
  2. Open Usage → Limits.
  3. Click the refresh button.

Expected behavior

Refreshing Limits re-reads the usage limits and finishes quickly.

Actual behavior

Refresh takes a long time. The Limits refresh calls serverRefreshProviders with an empty input (apps/web/src/components/usage/UsagePage.tsx:250-262, via refreshUsageLimits). On the server that runs usageLimitSources.refresh and providerRegistry.refresh() (apps/server/src/ws.ts:2356-2388), which re-probes every provider instance: install/auth status, models, skills, etc. The limits are just one part of that full probe, so the Limits view waits on all of the unrelated provider health work. The same path runs on the automatic refresh when the Limits tab opens (#11928).

Impact

Minor bug or occasional failure

Version or commit

main @ 7e565c5

Environment

Windows 11, T3 Code desktop, Codex + Claude providers

Workaround

None beyond waiting for the full provider refresh to finish.

Activity

  1. juliusmarminge commented on Nov 27, 2026

    @juliusmarminge
    Member

    Fixed by #41726, now on main: Refreshing Usage → Limits now uses a limits-only RPC on web, desktop, and mobile, skipping unrelated PATH, installer, model, and provider-health checks while refreshing provider and hub limits in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions