aws / aws/amazon-q-developer-cli

Chat is not showing text colors when rendered output from another tool

Open
#1,399 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

OSX + Linux

### Expected behaviour

I have been experimenting with getting the CLI to show Markdown output with the [glow](https://github.com/charmbracelet/glow) tool to better view tables etc. in the terminal.

Expected output:

![Image](https://github.com/user-attachments/assets/3043fedb-b05c-4be3-85f9-671cf518927c)

### Actual behaviour

This works, for example tables render nicely, but it looks like other styling like colors, bolding and so on are getting lost when passed through Q CLI.

![Image](https://github.com/user-attachments/assets/4e93f33e-57d4-48f0-b832-1f5b292efd3c)

If I use `!` to run the same command from within Q CLI chat it renders correctly.

### Steps to reproduce

Install glow CLI.

Test prompt:

```
Pipe the contents of test.md through the glow CLI.
```

Test Markdown:

```
# Test Markdown File

## Introduction

This is a *test* markdown file for demo.

## Table

| Col 1 | Col 2 | Col 3 |
|-------|-----------|-------|
| Test | Something | Here |
| Test | Something | Here |
| Test | Something | Here |
```

### Environment

```yaml

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.