Repository navigation
fix(app): pinned packages stay in Updates - #55
Merged
Merged
Conversation
winget upgrade leaves blocking pins out of its list, so a pinned package vanished from Updates on the next check. Read the list with --include-pinned (checked on winget 1.29 with a Blocking pin): the pinned rows come in a second table, which the parser already reads. Pinned rows keep the pin icon and stay out of Select all and the queue; they are also left out of the count, the tab badge, "Found N updates." in the log, and the tray dot and notification. Note in ADR 0007. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Point 3 of the Phase 1 parity check: blocking pins disappeared from Updates on the next check, while the README says they stay there with 📌.
What changes
GetUpgradesAsyncpasses--include-pinned, with and without--include-unknown. Checked on winget 1.29 with a Blocking pin: winget prints pinned packages in a second table after a line of prose, whichWinGetTable.Parsealready reads.AvailableText, tab badge, "Found N updates." in the log (now written after the pin read), tray dot, tooltip and notification. With only pinned rows the list stays visible and the log says "No updates available."Tests
WinGetCliTests.UpgradesIncludeBlockingPins(real winget output), argument checks updated.UpdatesViewModelTests.PinnedOnlyRowsAreListedButNotCounted; the existing count test now expects 2 of 3.TrayViewModelTests.PinnedPackagesAreNotAnnounced.dotnet test: all new and changed tests green.ElevationTests.CancelStopsTheStepsNotYetStarted,ProcessRunnerTests.OutputFilesAreRemovedandAppStateTests.LinesFromAnotherThreadArePostedToTheUifailed intermittently while other sessions ran tests in parallel; they pass on their own and are not touched here.🤖 Generated with Claude Code