[codex] Remove retired Windsurf plugin on startup#552
Conversation
|
Too much diff to scan? Review this PR in Change Stack to start with the highest-impact changes. Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughPlugin engine initialization now filters and removes retired bundled plugins. A constant defines retired plugin IDs (starting with ChangesRetired Plugin Cleanup and Filtering
🎯 2 (Simple) | ⏱️ ~12 minutes ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
windsurfplugin folder from the app-data plugin install directory during startup.app_data/plugins/windsurfdirectory.Root Cause
Auto-updated installs keep the persisted app-data plugin directory. The new release stopped bundling Windsurf, but startup only copied bundled plugins into app data and never pruned plugin folders removed from later bundles, so stale Windsurf code could still be discovered and loaded.
Impact
After the next release, upgraded users should no longer see the old Windsurf plugin. The cleanup only removes the retired bundled-code folder when its manifest ID is
windsurf; plugin data and unrelated/custom plugin folders are left alone.Validation
cargo test --libbun run test -- src/lib/settings.test.ts src/hooks/app/use-settings-bootstrap.test.ts --runSummary by cubic
Remove the retired bundled Windsurf plugin on startup and block it from loading. Prevents stale
windsurfcode from old installs from being discovered and run; custom plugins are untouched.app_data/plugins/windsurfonly if its manifest id iswindsurf.Written for commit ad4e69a. Summary will update on new commits.
Note
Low Risk
Scoped filesystem cleanup and load-time filtering for one retired bundled ID with manifest checks; custom plugins are preserved by design.
Overview
Fixes upgraded installs still loading a retired bundled Windsurf plugin from persisted
app_data/plugins, even after Windsurf was removed from new bundles.Startup now prunes
install_dir/windsurfafter bundled copy, but only whenplugin.json’sidiswindsurf, so unrelated or custom plugin folders are not deleted by folder name alone. Plugin discovery goes throughload_active_plugins_from_dir, which drops IDs inRETIRED_BUNDLED_PLUGIN_IDS(windsurf) as a backstop if cleanup misses a legacy layout (e.g. manifest under a non-windsurfdirectory name).Regression tests cover removal alongside other plugins and the filter-only path when the directory is not removed.
Reviewed by Cursor Bugbot for commit ad4e69a. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Bug Fixes
Tests