mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Render streamed command output through preview iterators (#34357)
## What changed - Encapsulate aggregated command output behind APIs for total and retained line counts, reversible preview iteration, and full transcript iteration. - Build truncated command previews from the retained head and tail lines while preserving the logical omitted-line count. - Cover head/tail rendering for long streamed agent and user-shell output. GitOrigin-RevId: 54b23a19e4639e24c5e4778082edbbc6484ecf80
This commit is contained in:
1 parent
2661d8577e
commit
20440a0833
6 files changed
+104
-68
No files matched your search
@@ -1254,10 +1254,7 @@ mod tests {
|
||||
);
|
||||
exec_cell.complete_call(
|
||||
"exec-1",
|
||||
CommandOutput {
|
||||
exit_code: 0,
|
||||
aggregated_output: "src\nREADME.md\n".into(),
|
||||
},
|
||||
CommandOutput::new(/*exit_code*/ 0, "src\nREADME.md\n".into()),
|
||||
Duration::from_millis(420),
|
||||
);
|
||||
let exec_cell: Arc<dyn HistoryCell> = Arc::new(exec_cell);
|
||||
|
||||
Reference in new issue
Block a user