You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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.
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.
Activity
matt-edmondson commentedon Sep 30, 2026
Triage
BuildMonitor.UpdateAsync/ProviderRefreshTimerRequestProviderRefresh(), which resets the timer, and call it from Add Owner, the credential changes, both discovery actions and Clear Data.Generated by Claude Code