Skip to content

Preserve installed plugin when cancellation wins before publish - #16

Draft
Blackspirits wants to merge 1 commit into
upl/review-base-18eefrom
fix/plugin-install-cancel-commit-point-18ee
Draft

Preserve installed plugin when cancellation wins before publish#16
Blackspirits wants to merge 1 commit into
upl/review-base-18eefrom
fix/plugin-install-cancel-commit-point-18ee

Conversation

@Blackspirits

Copy link
Copy Markdown
Owner

Summary

Plugin installation can currently delete the installed copy, observe cancellation, and exit before the replacement is moved into place.

This change:

  • honors cancellation before the destructive commit point
  • once replacement starts, finishes publishing the already-downloaded plugin
  • adds regressions for cancellation-before-commit and normal replacement

Validation

  • focused PluginDownloadServiceTests passed
  • full solution test suite passed
  • validation run: #34524235586

AI assistance: ChatGPT was used to audit the cancellation/state-transition flow and prepare the regression-focused fix.

@Blackspirits
Blackspirits requested a lite review from Copilot September 11, 2026 00:27

Copilot AI commented Sep 11, 2026

Copy link
Copy Markdown

@Blackspirits Thanks for sending me some feedback. Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository. The error I am seeing is:

no supported setup-steps job found in your workflow file. Please ensure you have a job named copilot-code-review or copilot-setup-steps. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please let me know in a comment and I'll try again. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

This pull request makes plugin replacement cancellation-safe, preserving installed plugins before commit and completing replacements once publishing begins.

Changes:

  • Adds cancellation-aware plugin publishing.
  • Adds regression tests for cancellation and replacement behavior.
File summaries
File Summary
tests/UI/Logic/Plugins/PluginDownloadServiceTests.cs Covers cancellation preservation and normal replacement.
src/ui/Logic/Plugins/PluginDownloadService.cs Implements safe plugin publication.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants