Commit 46ca687
fix(tui): filter installed plugins by current project before merging
The CLI returns all installed plugins globally, including ones from other
projects. Previously, buildInstalledByID included all of them, so
processAvailablePlugin would merge installed data (Enabled, Version,
InstallPath) from other projects, making available plugins incorrectly
appear as "installed, disabled" in the current project.
Add filterRelevantInstalled to exclude installed plugins that don't
belong to the current project before building the ID map. A plugin is
relevant if it's user-scoped, its projectPath matches workingDir, or
it appears in any settings file for the current project.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5587597 commit 46ca687
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
| 405 | + | |
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| |||
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
415 | | - | |
| 416 | + | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
425 | 446 | | |
426 | 447 | | |
427 | 448 | | |
| |||
0 commit comments