From 3cdf8008d70b39905d9644d8e0c5a8bc46cd1f34 Mon Sep 17 00:00:00 2001 From: Ayush7614 Date: Fri, 24 Jul 2026 02:56:32 +0530 Subject: [PATCH] fix(cli): include plugins info in shell completions zero plugins info landed in #773 but the completions tree still only offered list/add/remove, so generated bash/zsh/fish scripts omitted it. --- internal/cli/completions.go | 2 +- internal/cli/completions_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/cli/completions.go b/internal/cli/completions.go index 3620ad2ac..9c0326876 100644 --- a/internal/cli/completions.go +++ b/internal/cli/completions.go @@ -59,7 +59,7 @@ var completionRoot = completionNode{ {names: []string{"delete", "rm"}}, {names: []string{"edit"}}, {names: []string{"path"}}, }}, {names: []string{"plugins", "plugin"}, children: []completionNode{ - {names: []string{"list"}}, {names: []string{"add"}}, {names: []string{"remove", "rm"}}, + {names: []string{"list"}}, {names: []string{"add"}}, {names: []string{"info"}}, {names: []string{"remove", "rm"}}, }}, {names: []string{"backends", "backend"}, children: leafNodes("doctor")}, {names: []string{"skills", "skill"}, children: []completionNode{ diff --git a/internal/cli/completions_test.go b/internal/cli/completions_test.go index fc2acdec6..386ec3054 100644 --- a/internal/cli/completions_test.go +++ b/internal/cli/completions_test.go @@ -159,6 +159,8 @@ func TestCompletionTreeCoversAliasesNestingAndCommonFlags(t *testing.T) { assertCandidates(t, byPath["mcp oauth"], "login", "logout", "status") assertCandidates(t, byPath["sandbox grants"], "list", "allow", "deny", "revoke", "clear") assertCandidates(t, byPath["completions"], "bash", "zsh", "fish", "powershell", "elvish") + assertCandidates(t, byPath["plugins"], "list", "add", "info", "remove", "rm") + assertCandidates(t, byPath["plugin"], "list", "add", "info", "remove", "rm") } func assertCandidates(t *testing.T, got []string, wants ...string) {