Fix Codex transcript streaming and images

This commit is contained in:
iris committed 2026-09-09 15:14:24 -04:00
1 parent 14dd520719
commit 4dc3e3d784
7 files changed
+422 -53

No files matched your search

+7 -1
View File
@@ -252,6 +252,12 @@ impl Transport {
/// would otherwise need a runtime to ask a machine a question. Both build the
/// invocation the same way.
pub fn capture_blocking(&self, launch: &Launch) -> Result<String> {
Ok(String::from_utf8_lossy(&self.capture_bytes_blocking(launch)?).into_owned())
}
/// The byte-preserving form of [`capture_blocking`](Self::capture_blocking), used when a
/// driver copies a file back from the machine it runs on.
pub fn capture_bytes_blocking(&self, launch: &Launch) -> Result<Vec<u8>> {
let host = match self {
Self::Here => None,
Self::Ssh { ssh, .. } => Some(ssh),
@@ -273,7 +279,7 @@ impl Transport {
stderr
});
}
Ok(String::from_utf8_lossy(&output.stdout).into_owned())
Ok(output.stdout)
}
/// Runs `launch` with `input` on its stdin and reports everything it