Add back output

This commit is contained in:
jif-oai
2025-11-11 12:27:26 +00:00
parent 0a712631ce
commit ec4428f13a
2 changed files with 6 additions and 6 deletions

View File

@@ -110,7 +110,6 @@ pub(crate) struct UnifiedExecSessionManager {
#[derive(Clone, Debug)]
pub(crate) struct StdinEvent {
pub input: String,
#[allow(dead_code)]
pub output: String,
}

View File

@@ -54,11 +54,12 @@ fn escape_stdin_for_log(input: &str) -> String {
}
fn render_stdin_events(events: &[StdinEvent]) -> String {
events
.iter()
.map(|event| event.input.clone())
.collect::<Vec<String>>()
.join("\n")
let mut lines = Vec::new();
for event in events {
lines.push(event.input.clone());
lines.push(format!("> {}", event.output));
}
lines.join("\n")
}
impl UnifiedExecSessionManager {