From 2d24c591f533624250a3867c6707559bc7cbfd60 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:54:21 +0000 Subject: [PATCH 1/3] Initial plan From 857adf53ef26723f2a4e4964fcf87ffdfe8f6df8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:59:08 +0000 Subject: [PATCH 2/3] Initial exploration: Understand remove_command.go and console.ConfirmAction() Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/github-remote-mcp-auth-test.lock.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/github-remote-mcp-auth-test.lock.yml b/.github/workflows/github-remote-mcp-auth-test.lock.yml index e68e97abe7..66e01c53b9 100644 --- a/.github/workflows/github-remote-mcp-auth-test.lock.yml +++ b/.github/workflows/github-remote-mcp-auth-test.lock.yml @@ -396,6 +396,11 @@ jobs: "X-MCP-Readonly": "true", "X-MCP-Toolsets": "repos,issues,discussions" }, + "tools": [ + "get_repository", + "list_issues", + "issue_read" + ], "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "\${GITHUB_MCP_SERVER_TOKEN}" } From 1402cee681f5a70a68c4ff091d340c8f8419b3ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:02:59 +0000 Subject: [PATCH 3/3] Replace manual prompt with console.ConfirmAction() in remove_command.go Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/cli/remove_command.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkg/cli/remove_command.go b/pkg/cli/remove_command.go index 174a83f4b2..72184fbd25 100644 --- a/pkg/cli/remove_command.go +++ b/pkg/cli/remove_command.go @@ -119,13 +119,16 @@ func RemoveWorkflows(pattern string, keepOrphans bool) error { } // Ask for confirmation - fmt.Print("\nAre you sure you want to remove these workflows? [y/N]: ") - reader := bufio.NewReader(os.Stdin) - response, _ := reader.ReadString('\n') - response = strings.TrimSpace(strings.ToLower(response)) - - if response != "y" && response != "yes" { - fmt.Println("Operation cancelled.") + confirmed, err := console.ConfirmAction( + "Are you sure you want to remove these workflows?", + "Yes, remove", + "No, cancel", + ) + if err != nil { + return fmt.Errorf("failed to get confirmation: %w", err) + } + if !confirmed { + fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Operation cancelled.")) return nil }