Skip to content

limits: stop scheduled dashboard refresh from bypassing quota cache #140

Description

@pitimon

Problem

A visible dashboard defaults to a 30-second refresh cadence. The scheduled path calls the same forced quota refresh used by the manual refresh button, which appends refresh=1, clears the two-minute quota cache, and fans out to all configured providers.

Required behavior

  • Scheduled dashboard refresh remains visible-only and keeps the selected Off, 30, 60, or 120 second dashboard cadence.
  • Scheduled refresh revalidates usage limits through the normal cache-aware endpoint without refresh=1.
  • Manual dashboard refresh remains forced and continues to use refresh=1.
  • The Limits page initial mount remains forced in this first surgical slice.
  • Loading, last-good, and error behavior stays unchanged.

Acceptance evidence

  • Hook tests distinguish cached revalidation from forced refresh.
  • Dashboard tests prove auto and manual paths choose the correct semantics.
  • Limits page test locks the existing forced initial mount.
  • Focused dashboard tests and npm run ci:local pass.
  • Real local-server smoke shows scheduled-normal calls reuse the cache and manual force refreshes it.

Scope boundary

This issue does not add adaptive 1, 5, or 10 minute polling, provider freshness metadata, credits UI, notifications, or a provider registry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions