Skip to content

feat(tui): show and apply plugin updates with U key#27

Merged
bojanrajkovic merged 3 commits intomainfrom
piekstra/2-plugin-updates
Feb 9, 2026
Merged

feat(tui): show and apply plugin updates with U key#27
bojanrajkovic merged 3 commits intomainfrom
piekstra/2-plugin-updates

Conversation

@piekstra
Copy link
Contributor

[#2]

Add the ability to see and apply plugin updates from the TUI.

Changes

  • Track update availability: Added AvailableVersion and HasUpdate fields to PluginState to detect when newer versions are available
  • 'U' key binding: Press U (shift+u) to mark an installed plugin with an available update for updating
  • Visual indicators:
    • Shows indicator in list view for plugins with updates
    • Shows version transition in details pane (e.g., "1.0 → 2.0 available")
    • Shows [→ UPDATE] when plugin is staged for update
  • Execution: Updates are implemented as reinstall at the same scope

Usage

  1. Browse plugins - those with updates show next to their scope
  2. Select a plugin with an update available
  3. Press U to stage the update
  4. Press Enter to apply, or Esc to cancel

Closes #2

@bojanrajkovic bojanrajkovic force-pushed the piekstra/2-plugin-updates branch from 56d1b62 to 002b83d Compare February 8, 2026 21:33
Add ability to update plugins when newer versions are available:
- Track AvailableVersion and HasUpdate fields in PluginState
- Add 'U' key binding to select plugins for update
- Show "↑" indicator in list for plugins with available updates
- Show version transition in details (e.g., "1.0 → 2.0 available")
- Add OpUpdate operation type and handle in execution flow
- Updates are implemented as reinstall at same scope

[#2]
@bojanrajkovic bojanrajkovic force-pushed the piekstra/2-plugin-updates branch from 002b83d to 09b0cb4 Compare February 9, 2026 04:12
Extract renderPendingIndicator, formatOperationLine, and
buildOperationSummary helpers to bring getScopeIndicator and
renderConfirmation under the gocyclo limit of 15.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bojanrajkovic bojanrajkovic merged commit f66fd02 into main Feb 9, 2026
8 checks passed
@bojanrajkovic bojanrajkovic deleted the piekstra/2-plugin-updates branch February 9, 2026 13:26
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.

feat: Show and apply plugin updates

2 participants

Comments