Add re-run button for completed plugins - #203
Merged
Merged
Conversation
Plugins that finished executing now show a Re-run button to the left of their status indicator, in both the review drawer (PluginsPanel) and the standalone plugin output view. It calls the same RerunPlugins RPC the Execute button already uses, scoped to that one plugin. Deferred plugins keep their Execute button and get no Re-run, since they have never run; plugins still pending are skipped too, as they are in flight. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVBMnBAUNMCYhR1pWNsxEb
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.
Summary
Adds a "Re-run" button to the UI for plugins that have finished executing (success or error status), allowing users to refresh plugin results without reloading the page. Deferred plugins that have never run continue to show an "Execute" button, and pending plugins show no action button.
Changes
canRerunPlugin()utility function to determine which plugins can be re-run (those with a finished status: success, error, or any unknown status — but not deferred or pending)PluginsPanel.tsxto display a "Re-run" button alongside the status badge for re-runnable pluginsPluginOutput.tsxto display a "Re-run" button in the plugin header for re-runnable pluginsPluginsPanel.tsxfrom a single span to a flex container to accommodate the new buttoncanRerunPlugin()covering success, error, deferred, pending, and missing status casesTest Plan
bun run testpasses (new unit tests forcanRerunPlugin()added)bun run type-checkpassesbun run lintpasseshttps://claude.ai/code/session_01AVBMnBAUNMCYhR1pWNsxEb