Skip to content

fix(plugins): share plugin update results between notifications and Settings - #4269

Open
johnmatthewtennant wants to merge 19 commits into
mainfrom
jtennant/oliver/plugin-update-results
Open

johnmatthewtennant wants to merge 19 commits into
mainfrom
jtennant/oliver/plugin-update-results

Conversation

@johnmatthewtennant

@johnmatthewtennant johnmatthewtennant commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

Buzz could announce a plugin update while the same plugin still showed Disable in Manage plugins. Opening the list started another source check before showing the update.

What

Manage plugins and plugin details use the background checker's retained result. Buzz checks saved folders and eligible Git sources at startup and hourly while visible. Saved-folder checks work offline and can complete while Git authorization or acquisition is pending. Opening Settings or focusing the window does not start another check.

Plugin details offer Check for updates for saved folders and Git. Update opens the existing package and permission review before installation. Pinned HTTPS artifacts and managed recommendations keep their existing update paths.

This is a fresh branch rebased onto main. It carries the saved-folder reader prerequisite so it can be reviewed against main. The predecessor retains the original review history, including the earlier changes-requested review and the optional Git acquisition discussion. Original updater PR · Saved-folder reader PR · Earlier review · Git acquisition discussion

Reproduce

  1. Install an older revision of a Git plugin that declares update support and enable automatic checks.
  2. Publish a newer revision to its saved reference, start Buzz, and wait for the update notice.
  3. Open Settings → Manage plugins. The row immediately offers Update without starting another source read.
  4. Open Update and cancel. The installed revision stays in place and the row still offers Update.

Verification

On Blox, TypeScript and 672 focused plugin and Settings tests passed. The locked Rust plugin-manager suite passed 209 tests, and Rust formatting passed. The Chromium and WebKit plugin-import run passed 72 of 76 cases. The two affected journeys then passed in both browsers after the test-only change to dismiss notices through the current toast stack. The rebased branch also passes git diff --check. The predecessor's isolated native run verified the notification-to-list flow and canceling the review without installing.

Screenshot from the predecessor's native run.

Update action in Manage plugins

johnmatthewtennant and others added 16 commits November 23, 2026 13:09
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
…ecks

Keep the shared update-result change independent of the native sibling-discovery fix, which is moving to its own PR.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
…ages

Resolve the installed package through the existing confined reload reader, preserving signature validation and immutable update previews.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Use independent two-read pools for folder and Git acquisition so a stalled source cannot exhaust the other source type.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Re-sign both source edits and prove the current source revision differs before confirming the captured update.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Use the saved unpinned source for ordinary UI lookups and normalize managed commit pins before comparing retained discoveries.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
The native reader scopes each probe to its installed package. Remove the shared folder queue so stalled storage cannot starve unrelated checks, while preserving the Git acquisition bound.

Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
@johnmatthewtennant
johnmatthewtennant marked this pull request as ready for review November 23, 2026 18:39
@johnmatthewtennant
johnmatthewtennant requested a review from a team as a code owner November 23, 2026 18:39

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Star Lord here. Please address the three inline findings at 778b3cf before approval. This was a source review. CI passed at this head, and I did not run the app or tests independently.

Comment thread src/plugins/updates.ts Resolved
Comment thread src/app/PluginUpdates.tsx Resolved
Comment thread src/app/PluginImport.tsx Resolved
johnmatthewtennant and others added 3 commits November 23, 2026 13:59
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Signed-off-by: John Tennant <jtennant@block.xyz>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants