Skip to content

fix(cli): remove duplicate checkmark in upgrade extension output#27669

Merged
pelikhan merged 1 commit intomainfrom
copilot/fix-double-checkmark-upgrade-output
Apr 21, 2026
Merged

fix(cli): remove duplicate checkmark in upgrade extension output#27669
pelikhan merged 1 commit intomainfrom
copilot/fix-double-checkmark-upgrade-output

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

Summary

Fixes the duplicate checkmark shown by gh aw upgrade when extension upgrade succeeds.

Changes

  • Removed hardcoded prefixes from success messages in pkg/cli/update_extension_check.go
  • Kept success formatting through console.FormatSuccessMessage(...) so output renders a single checkmark

Validation

  • go test -v -run "TestUpgradeExtensionIfOutdated|TestFirstAttemptWriter|TestNeedsRenameWorkaround|TestRenamePathForUpgrade|TestRestoreExecutableBackup|TestCleanupExecutableBackup|TestIsWindowsLockError" ./pkg/cli/ passed
  • make agent-finish was run and failed on pre-existing security-gosec findings outside this change
  • parallel_validation completed with no review comments and no CodeQL alerts for changed code

@pelikhan pelikhan marked this pull request as ready for review April 21, 2026 20:52
Copilot AI review requested due to automatic review settings April 21, 2026 20:52
@pelikhan pelikhan merged commit 5b49b25 into main Apr 21, 2026
19 checks passed
@pelikhan pelikhan deleted the copilot/fix-double-checkmark-upgrade-output branch April 21, 2026 20:52
Copilot stopped work on behalf of pelikhan due to an error April 21, 2026 20:52
Copilot AI requested a review from pelikhan April 21, 2026 20:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes duplicated success checkmarks in gh aw upgrade output by relying solely on console.FormatSuccessMessage(...) to render the checkmark prefix.

Changes:

  • Removed hardcoded prefixes from “up to date” and “upgraded to …” success messages in the extension upgrade check path.
  • Ensured success output uses a single formatting source (console.FormatSuccessMessage) for consistent rendering.
Show a summary per file
File Description
pkg/cli/update_extension_check.go Removes hardcoded checkmarks from success messages to avoid double-prefixing with console.FormatSuccessMessage.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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.

3 participants