Skip to content

Prune deleted local files from MRU history when listing#37

Merged
kzu merged 1 commit into
mainfrom
dev/clean-mru
Jul 22, 2026
Merged

Prune deleted local files from MRU history when listing#37
kzu merged 1 commit into
mainfrom
dev/clean-mru

Conversation

@kzu

@kzu kzu commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • When RunHistory.List skips deleted local files (and blank entries), also drop them from persisted history.
  • Save go.toml once after the list is built if anything was pruned, so subsequent MRU opens stay cheaper.
  • Extend unit tests to assert storage is cleaned in a single prune pass.

Test plan

  • dotnet test --filter FullyQualifiedName~RunHistoryTests
  • Interactive: open MRU with a deleted local path in history and confirm it no longer appears after one list
  • Confirm remote refs remain listed when not cached locally

When building the MRU picker list, remove non-selectable entries
(missing local paths, blank inputs) from go.toml and save once so
later lists avoid repeated filesystem checks.
@kzu kzu added the enhancement New feature or request label Jul 22, 2026
@kzu
kzu enabled auto-merge (rebase) July 22, 2026 03:43
@kzu

kzu commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

86 passed 86 passed

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.10 with 💜 by @devlooped

@kzu
kzu merged commit 178687c into main Jul 22, 2026
3 checks passed
@kzu
kzu deleted the dev/clean-mru branch July 22, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant