mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
Add back output
This commit is contained in:
@@ -110,7 +110,6 @@ pub(crate) struct UnifiedExecSessionManager {
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct StdinEvent {
|
||||
pub input: String,
|
||||
#[allow(dead_code)]
|
||||
pub output: String,
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user