Skip to content

Conversation

@Randall-Jiang
Copy link
Contributor

@Randall-Jiang Randall-Jiang commented Apr 1, 2025

Problem

When the excutable command fails, the output is not formatted.

Solution

Format the stderr the same as stdout.

image
image


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Randall-Jiang Randall-Jiang requested a review from a team as a code owner April 1, 2025 22:04
@github-actions
Copy link

github-actions bot commented Apr 1, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

const stderrBuffer: string[] = []

let firstChunk = true
let firstStderrChunk = true
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this flag used for?

Copy link
Contributor

@tsmithsz tsmithsz Apr 1, 2025

Choose a reason for hiding this comment

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

If it's the first chunk we append this mark down string ('```console\n') before the text to format the code block appropriately

@zixlin7 zixlin7 merged commit 3659236 into aws:feature/agentic-chat Apr 2, 2025
11 of 13 checks passed
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.

4 participants