Skip to content

Add re-run button for completed plugins - #203

Merged
C-Hipple merged 1 commit into
mainfrom
claude/wonderful-bohr-fudpo9
Jul 31, 2026
Merged

Add re-run button for completed plugins#203
C-Hipple merged 1 commit into
mainfrom
claude/wonderful-bohr-fudpo9

Conversation

@C-Hipple

Copy link
Copy Markdown
Owner

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

  • Added 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)
  • Updated PluginsPanel.tsx to display a "Re-run" button alongside the status badge for re-runnable plugins
  • Updated PluginOutput.tsx to display a "Re-run" button in the plugin header for re-runnable plugins
  • Refactored status badge layout in PluginsPanel.tsx from a single span to a flex container to accommodate the new button
  • Added comprehensive unit tests for canRerunPlugin() covering success, error, deferred, pending, and missing status cases

Test Plan

  • bun run test passes (new unit tests for canRerunPlugin() added)
  • bun run type-check passes
  • bun run lint passes

https://claude.ai/code/session_01AVBMnBAUNMCYhR1pWNsxEb

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
@C-Hipple
C-Hipple merged commit ae8c773 into main Jul 31, 2026
7 checks passed
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