Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@evanliu048
Copy link
Contributor

Issue #, if available:
Solves an internal TT related to non-interactive output redirection

Description of changes:
This PR fixes an issue introduced in the refactor of the legacy conduit system where
ControlEnd<DestinationStdout> was incorrectly initializing LegacyPassThroughOutput::Stderr,
causing non-interactive model output to be written to stderr instead of stdout.
https://github.com/aws/amazon-q-developer-cli/pull/3112/files#diff-a668f28dd7d3f5a5cf37bc315f83d6a5b4f05005651a607c6ec0858770358a31R301-R302

Verified output stream behavior via q chat --no-interactive "how are you?" 2>/dev/null — output now correctly appears on stdout.
> I'm doing well, thanks for asking! I'm here and ready to help you with AWS services, development tasks, or any technical questions you might have. What can I assist you with today?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@evanliu048 evanliu048 merged commit d8c704d into main Oct 27, 2025
15 checks passed
@evanliu048 evanliu048 deleted the redirect_to_stdout branch October 27, 2025 16:24
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