Skip to content

Commit d8c704d

Browse files
authored
redirect chat output to stdout (#3277)
1 parent 884b27f commit d8c704d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/chat-cli-ui/src/conduit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl std::io::Write for ControlEnd<DestinationStdout> {
298298
if byte == &10 || byte == &13 {
299299
if self.current_event.is_none() {
300300
self.current_event
301-
.replace(Event::LegacyPassThrough(LegacyPassThroughOutput::Stderr(
301+
.replace(Event::LegacyPassThrough(LegacyPassThroughOutput::Stdout(
302302
Default::default(),
303303
)));
304304
}
@@ -323,7 +323,7 @@ impl std::io::Write for ControlEnd<DestinationStdout> {
323323
if start < end {
324324
if self.current_event.is_none() {
325325
self.current_event
326-
.replace(Event::LegacyPassThrough(LegacyPassThroughOutput::Stderr(
326+
.replace(Event::LegacyPassThrough(LegacyPassThroughOutput::Stdout(
327327
Default::default(),
328328
)));
329329
}

0 commit comments

Comments
 (0)