Skip to content

Detect API key access mode and hide inapplicable refresh indicators (5H / 7D) #48

Description

@1lck

Background

The status bar currently displays 5H (5-hour refresh) and 7D (7-day refresh) indicators to inform users about data refresh cycles.

Problem

These refresh intervals only apply to users connected via official subscription. When a user connects using an API key instead:

  • API-based access has no scheduled refresh mechanism — data is queried in real time
  • Showing 5H / 7D to API users is meaningless and causes confusion
Image

Expected behavior

  1. Detect whether the current user is on subscription or API key access
  2. If API access is detected, automatically hide the 5H and 7D indicators from the status bar
  3. If on official subscription, keep the existing display logic unchanged

Detection approach

We can distinguish access type by checking:

  • Presence of apiKey / OPENAI_API_KEY or similar fields in user config
  • Request headers or authentication method
  • Other: TBD

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