From b15442397bcd10d14286e0bf23f73607f445eb89 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 03:12:33 +0000 Subject: [PATCH 1/2] chore: replace heavy emojis with lightweight Unicode in console package Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/console/console.go | 6 +++--- pkg/console/console_formatting_test.go | 18 +++++++++--------- pkg/console/console_wasm.go | 10 +++++----- pkg/console/terminal.go | 2 +- .../location_message.golden | 2 +- .../progress_message.golden | 2 +- pkg/console/verbose_test.go | 4 ++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/pkg/console/console.go b/pkg/console/console.go index 128163ea56a..4cfe7bdf8a5 100644 --- a/pkg/console/console.go +++ b/pkg/console/console.go @@ -228,17 +228,17 @@ func FormatCommandMessage(command string) string { // FormatProgressMessage formats a progress/activity message func FormatProgressMessage(message string) string { - return applyStyle(styles.Progress, "๐Ÿ”จ ") + message + return applyStyle(styles.Progress, "โ–ธ ") + message } // FormatPromptMessage formats a user prompt message func FormatPromptMessage(message string) string { - return applyStyle(styles.Prompt, "โ“ ") + message + return applyStyle(styles.Prompt, "? ") + message } // FormatVerboseMessage formats verbose debugging output func FormatVerboseMessage(message string) string { - return applyStyle(styles.Verbose, "๐Ÿ” ") + message + return applyStyle(styles.Verbose, "ยป ") + message } // FormatListItem formats an item in a list diff --git a/pkg/console/console_formatting_test.go b/pkg/console/console_formatting_test.go index 86fa02f6ef8..7772f731d90 100644 --- a/pkg/console/console_formatting_test.go +++ b/pkg/console/console_formatting_test.go @@ -96,9 +96,9 @@ func TestFormatProgressMessage(t *testing.T) { t.Run(tt.name, func(t *testing.T) { result := FormatProgressMessage(tt.message) - // Should contain the hammer emoji prefix - if !strings.Contains(result, "๐Ÿ”จ") { - t.Errorf("FormatProgressMessage() should contain ๐Ÿ”จ prefix") + // Should contain the triangle prefix + if !strings.Contains(result, "โ–ธ") { + t.Errorf("FormatProgressMessage() should contain โ–ธ prefix") } // Should contain the message text @@ -136,9 +136,9 @@ func TestFormatPromptMessage(t *testing.T) { t.Run(tt.name, func(t *testing.T) { result := FormatPromptMessage(tt.message) - // Should contain the question mark emoji prefix - if !strings.Contains(result, "โ“") { - t.Errorf("FormatPromptMessage() should contain โ“ prefix") + // Should contain the question mark prefix + if !strings.Contains(result, "?") { + t.Errorf("FormatPromptMessage() should contain ? prefix") } // Should contain the message text @@ -176,9 +176,9 @@ func TestFormatVerboseMessage(t *testing.T) { t.Run(tt.name, func(t *testing.T) { result := FormatVerboseMessage(tt.message) - // Should contain the magnifying glass emoji prefix - if !strings.Contains(result, "๐Ÿ”") { - t.Errorf("FormatVerboseMessage() should contain ๐Ÿ” prefix") + // Should contain the double-angle prefix + if !strings.Contains(result, "ยป") { + t.Errorf("FormatVerboseMessage() should contain ยป prefix") } // Should contain the message text diff --git a/pkg/console/console_wasm.go b/pkg/console/console_wasm.go index c2b1ea85253..b6d5a8472ad 100644 --- a/pkg/console/console_wasm.go +++ b/pkg/console/console_wasm.go @@ -68,12 +68,12 @@ func FormatSuccessMessage(message string) string { return "โœ“ " + message } func FormatInfoMessage(message string) string { return "โ„น " + message } func FormatWarningMessage(message string) string { return "โš  " + message } func FormatErrorMessage(message string) string { return "โœ— " + message } -func FormatLocationMessage(message string) string { return "๐Ÿ“ " + message } +func FormatLocationMessage(message string) string { return "~ " + message } func FormatCommandMessage(command string) string { return "โšก " + command } -func FormatProgressMessage(message string) string { return "๐Ÿ”จ " + message } -func FormatPromptMessage(message string) string { return "โ“ " + message } -func FormatCountMessage(message string) string { return "๐Ÿ“Š " + message } -func FormatVerboseMessage(message string) string { return "๐Ÿ” " + message } +func FormatProgressMessage(message string) string { return "โ–ธ " + message } +func FormatPromptMessage(message string) string { return "? " + message } +func FormatCountMessage(message string) string { return "# " + message } +func FormatVerboseMessage(message string) string { return "ยป " + message } func FormatListHeader(header string) string { return header } func FormatListItem(item string) string { return " โ€ข " + item } func FormatSectionHeader(header string) string { return header } diff --git a/pkg/console/terminal.go b/pkg/console/terminal.go index 8e0f4cccb28..1cee1d06f73 100644 --- a/pkg/console/terminal.go +++ b/pkg/console/terminal.go @@ -40,7 +40,7 @@ func ClearLine() { // Use this at the start of interactive commands (add, trial, init) for a consistent experience. func ShowWelcomeBanner(description string) { ClearScreen() - header := "๐Ÿš€ Welcome to GitHub Agentic Workflows!" + header := "โ†’ Welcome to GitHub Agentic Workflows!" if tty.IsStderrTerminal() { header = styles.Header.Render(header) } diff --git a/pkg/console/testdata/TestGolden_MessageFormatting/location_message.golden b/pkg/console/testdata/TestGolden_MessageFormatting/location_message.golden index 0e87bdfb262..8857e0b3211 100644 --- a/pkg/console/testdata/TestGolden_MessageFormatting/location_message.golden +++ b/pkg/console/testdata/TestGolden_MessageFormatting/location_message.golden @@ -1 +1 @@ -๐Ÿ“ Downloaded to: /tmp/logs/workflow-123 \ No newline at end of file +~ Downloaded to: /tmp/logs/workflow-123 \ No newline at end of file diff --git a/pkg/console/testdata/TestGolden_MessageFormatting/progress_message.golden b/pkg/console/testdata/TestGolden_MessageFormatting/progress_message.golden index 44e5827dcf6..75ad04f4a7e 100644 --- a/pkg/console/testdata/TestGolden_MessageFormatting/progress_message.golden +++ b/pkg/console/testdata/TestGolden_MessageFormatting/progress_message.golden @@ -1 +1 @@ -๐Ÿ”จ Compiling workflow (step 2/5)... \ No newline at end of file +โ–ธ Compiling workflow (step 2/5)... \ No newline at end of file diff --git a/pkg/console/verbose_test.go b/pkg/console/verbose_test.go index a08758ec932..805381d3280 100644 --- a/pkg/console/verbose_test.go +++ b/pkg/console/verbose_test.go @@ -64,8 +64,8 @@ func TestLogVerbose(t *testing.T) { if tt.expected { // Should contain the message assert.Contains(t, output, tt.message, "Output should contain the message when verbose is enabled") - // Should contain the verbose icon (๐Ÿ”) - assert.Contains(t, output, "๐Ÿ”", "Output should contain verbose formatting") + // Should contain the verbose prefix (ยป) + assert.Contains(t, output, "ยป", "Output should contain verbose formatting") } else { // Should be empty assert.Empty(t, output, "Output should be empty when verbose is disabled") From 609d50f4f65d0a1d60527096837f87366a18a389 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 03:24:38 +0000 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20replace=20colored=20=E2=9A=A1=20an?= =?UTF-8?q?d=20=E2=84=B9=20symbols=20with=20ASCII=20equivalents?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/console/console.go | 4 ++-- pkg/console/console_formatting_test.go | 6 +++--- pkg/console/console_test.go | 2 +- pkg/console/console_wasm.go | 4 ++-- .../TestGolden_MessageFormatting/command_message.golden | 2 +- .../TestGolden_MessageFormatting/info_message.golden | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/console/console.go b/pkg/console/console.go index 4cfe7bdf8a5..fe312c4fb75 100644 --- a/pkg/console/console.go +++ b/pkg/console/console.go @@ -150,7 +150,7 @@ func FormatSuccessMessage(message string) string { // FormatInfoMessage formats an informational message func FormatInfoMessage(message string) string { - return applyStyle(styles.Info, "โ„น ") + message + return applyStyle(styles.Info, "i ") + message } // FormatWarningMessage formats a warning message @@ -223,7 +223,7 @@ func RenderTable(config TableConfig) string { // FormatCommandMessage formats a command execution message func FormatCommandMessage(command string) string { - return applyStyle(styles.Command, "โšก ") + command + return applyStyle(styles.Command, "$ ") + command } // FormatProgressMessage formats a progress/activity message diff --git a/pkg/console/console_formatting_test.go b/pkg/console/console_formatting_test.go index 7772f731d90..09fbb04fa47 100644 --- a/pkg/console/console_formatting_test.go +++ b/pkg/console/console_formatting_test.go @@ -46,9 +46,9 @@ func TestFormatCommandMessage(t *testing.T) { t.Run(tt.name, func(t *testing.T) { result := FormatCommandMessage(tt.command) - // Should contain the thunderbolt emoji prefix - if !strings.Contains(result, "โšก") { - t.Errorf("FormatCommandMessage() should contain โšก prefix") + // Should contain the dollar-sign prefix + if !strings.Contains(result, "$") { + t.Errorf("FormatCommandMessage() should contain $ prefix") } // Should contain the command text diff --git a/pkg/console/console_test.go b/pkg/console/console_test.go index 3a2d1e8899e..e8a4ac2b450 100644 --- a/pkg/console/console_test.go +++ b/pkg/console/console_test.go @@ -174,7 +174,7 @@ func TestFormatInfoMessage(t *testing.T) { if !strings.Contains(output, "processing file") { t.Errorf("Expected output to contain message, got: %s", output) } - if !strings.Contains(output, "โ„น") { + if !strings.Contains(output, "i ") { t.Errorf("Expected output to contain info icon, got: %s", output) } } diff --git a/pkg/console/console_wasm.go b/pkg/console/console_wasm.go index b6d5a8472ad..ac7fb5543dc 100644 --- a/pkg/console/console_wasm.go +++ b/pkg/console/console_wasm.go @@ -65,11 +65,11 @@ func FormatError(err CompilerError) string { } func FormatSuccessMessage(message string) string { return "โœ“ " + message } -func FormatInfoMessage(message string) string { return "โ„น " + message } +func FormatInfoMessage(message string) string { return "i " + message } func FormatWarningMessage(message string) string { return "โš  " + message } func FormatErrorMessage(message string) string { return "โœ— " + message } func FormatLocationMessage(message string) string { return "~ " + message } -func FormatCommandMessage(command string) string { return "โšก " + command } +func FormatCommandMessage(command string) string { return "$ " + command } func FormatProgressMessage(message string) string { return "โ–ธ " + message } func FormatPromptMessage(message string) string { return "? " + message } func FormatCountMessage(message string) string { return "# " + message } diff --git a/pkg/console/testdata/TestGolden_MessageFormatting/command_message.golden b/pkg/console/testdata/TestGolden_MessageFormatting/command_message.golden index 215d5f48c7e..390094dfc39 100644 --- a/pkg/console/testdata/TestGolden_MessageFormatting/command_message.golden +++ b/pkg/console/testdata/TestGolden_MessageFormatting/command_message.golden @@ -1 +1 @@ -โšก gh aw compile workflow.md \ No newline at end of file +$ gh aw compile workflow.md \ No newline at end of file diff --git a/pkg/console/testdata/TestGolden_MessageFormatting/info_message.golden b/pkg/console/testdata/TestGolden_MessageFormatting/info_message.golden index 5ce82643a07..bc5aa641bfb 100644 --- a/pkg/console/testdata/TestGolden_MessageFormatting/info_message.golden +++ b/pkg/console/testdata/TestGolden_MessageFormatting/info_message.golden @@ -1 +1 @@ -โ„น Processing workflow file: test.md \ No newline at end of file +i Processing workflow file: test.md \ No newline at end of file