Skip to content

Newly added owners, credentials, discovered owners/projects and "Clear Data" show no builds for up to 5 minutes because nothing triggers a provider refresh #324

Open

Description

@matt-edmondson

What's wrong

Repositories and builds are only discovered inside the provider-refresh block of UpdateAsync. That block runs only when ProviderRefreshTimer is not running or 300 s have passed (BuildMonitor/BuildMonitor.cs:1505), and then restarts the timer (:1553). Nothing else touches the timer (BuildMonitor.cs:25,1505,1553 are its only references). So none of the actions below brings the next discovery forward:

  • Add Owner (BuildProvider.cs:251-262) only calls TryAdd on the owner.
  • Set Credentials (BuildProvider.cs:232-250).
  • GitHub "Discover All Owners" (Providers/GitHub.cs:186-220) only adds owners.
  • Azure DevOps "Discover All Projects" (Providers/AzureDevOps.cs:148-187) adds owners and repositories, but builds only come from UpdateBuildsAsync, which runs inside the refresh block.
  • File → Clear Data (BuildMonitor.cs:1662-1673) clears every repository and both sync collections, but leaves the timer running.

Failure scenario

On first launch with no credentials, OnStart runs the first UpdateAsync. It refreshes nothing because there are no owners or tokens, and restarts the timer. The user then sets a token and clicks Discover All Owners.

The owner tabs appear, but the build table stays empty for up to 300 s, and the UI gives no reason. The same wait follows Clear Data.

Why it matters

This is the first thing every new user does, and the app looks broken while it happens. The same delay applies to every owner added later.

Suggested fix / acceptance criteria

  • Add a RequestProviderRefresh() that makes the next update cycle run discovery. For example, ProviderRefreshTimer.Reset(), so that !IsRunning forces the refresh.
  • Call it from:
    • Add Owner
    • the credentials popups
    • setting or clearing an owner token
    • both discovery actions, after they succeed
    • Clear Data
  • Adding an owner or setting credentials starts discovery on the next update cycle, not up to 300 s later.
  • Clear Data is followed by an immediate rediscovery.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. matt-edmondson commented on Sep 30, 2026

    @matt-edmondson
    ContributorAuthor

    Triage

    • Category: Bug (UX)
    • Priority: Medium. On first run the app looks broken for up to 5 minutes after credentials are set. It recovers on its own.
    • Area: BuildMonitor.UpdateAsync / ProviderRefreshTimer
    • Duplicates / in progress: No duplicate or open PR found.
    • Next step: Add RequestProviderRefresh(), which resets the timer, and call it from Add Owner, the credential changes, both discovery actions and Clear Data.

    Generated by Claude Code

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions