Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Activation command output was displaying ANSI escape codes as literal text ([0;32m) instead of rendered colors in the output channel.

Changes

Before: Streamed all activation command output directly to output channel, showing raw ANSI codes

After:

  • Buffer stdout/stderr during command execution
  • Success (exit code 0): Display only "Activation command completed successfully"
  • Failure (non-zero exit or error): Display command, buffered output, and error details

Extracted showFailureOutput() helper to avoid duplication between error and close handlers.

// Success case - clean output
outputChannel?.appendLine(`Activation command completed successfully`);

// Failure case - full diagnostic output
showFailureOutput();
outputChannel?.appendLine(`\nProcess exited with code ${code}`);

This eliminates the ANSI rendering issue while providing a cleaner activation experience.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • github-production-user-asset-6210df.s3.amazonaws.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Activation command ANSI codes don't render as expected in extension output</issue_title>
<issue_description>Image

  • Options are to ensure they render correctly
  • Unlesss activation command fails just summarise that it worked</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 19, 2026 14:50
Co-authored-by: mtharrison <916064+mtharrison@users.noreply.github.com>
Co-authored-by: mtharrison <916064+mtharrison@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix ANSI codes rendering in extension output Buffer activation command output, show summary on success Jan 19, 2026
Copilot AI requested a review from mtharrison January 19, 2026 14:55
@mtharrison mtharrison marked this pull request as ready for review January 19, 2026 15:09
@mtharrison
Copy link
Owner

Manually tested this, confirmed failed activation command ouputs error, otherwise just summarises success.

Screenshot 2026-01-19 at 15 09 02 Screenshot 2026-01-19 at 15 08 18

@mtharrison mtharrison added the bug Something isn't working label Jan 19, 2026
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mtharrison mtharrison merged commit 5977235 into master Jan 19, 2026
5 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Activation command ANSI codes don't render as expected in extension output

2 participants