fix: retain command failure stages and output collection state
This commit is contained in:
@@ -38045,6 +38045,8 @@ mod tests {
|
||||
chunks: Vec::new(),
|
||||
next_cursor: 0,
|
||||
terminal: Some(workdir::CommandTerminal {
|
||||
process_failure: None,
|
||||
output_collection: workdir::CommandOutputCollection::Complete,
|
||||
status: workdir::CommandStatus::Cancelled,
|
||||
exit_code: None,
|
||||
|
||||
@@ -38147,6 +38149,8 @@ mod tests {
|
||||
chunks: Vec::new(),
|
||||
next_cursor: 0,
|
||||
terminal: Some(workdir::CommandTerminal {
|
||||
process_failure: None,
|
||||
output_collection: workdir::CommandOutputCollection::Complete,
|
||||
status: workdir::CommandStatus::Cancelled,
|
||||
exit_code: None,
|
||||
|
||||
@@ -39239,6 +39243,8 @@ mod tests {
|
||||
chunks: Vec::new(),
|
||||
next_cursor: 0,
|
||||
terminal: Some(workdir::CommandTerminal {
|
||||
process_failure: None,
|
||||
output_collection: workdir::CommandOutputCollection::Complete,
|
||||
status: workdir::CommandStatus::Cancelled,
|
||||
exit_code: None,
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ fn page(cursor: u64, bytes: &[u8], terminal: bool) -> workdir::CommandOutput {
|
||||
},
|
||||
next_cursor: cursor + bytes.len() as u64,
|
||||
terminal: terminal.then_some(workdir::CommandTerminal {
|
||||
process_failure: None,
|
||||
output_collection: workdir::CommandOutputCollection::Complete,
|
||||
status: workdir::CommandStatus::Cancelled,
|
||||
exit_code: None,
|
||||
stdout_bytes: cursor + bytes.len() as u64,
|
||||
|
||||
Reference in New Issue
Block a user