borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Keep repository archive counts consistent with the loaded archive list

Open borg-codex-bot opened this issue 2 months ago • 0 comments

The repository Archives tab can show a different archive count from its list. A maintainer screenshot shows 8 in the tab and 9 in the loaded list: the stored repository info is from 10:54, while the newest listed archive is from 16:07.

Cause: the tab and overview read repository_stats.archives_count from the saved info snapshot, while the list reads archive_count from the separate archive-list response.

Scope:

  • Use the loaded archive inventory as the common archive-count source for the tab, overview and list, including an empty repository and a limited list with a larger total.
  • Retain stored repository statistics as the initial fallback until an archive inventory is available.
  • Keep refresh, repository-info refresh and overlapping archive requests consistent; late responses must not restore an older count/list.
  • Refresh the displayed archive inventory when the Repositories page is explicitly refreshed, without adding periodic Borg scans or persistent writes.
  • Preserve the timestamp and other metrics of the separate repository-info snapshot.

Implement in existing PR #510. Add a user-facing release note and targeted UI verification.

borg-codex-bot avatar Sep 13 '26 14:09 borg-codex-bot