@@ -1293,12 +1293,10 @@ pub(crate) fn new_patch_apply_failure(stderr: String) -> PlainHistoryCell {
12931293 let output = output_lines (
12941294 Some ( & CommandOutput {
12951295 exit_code : 1 ,
1296- stdout : String :: new ( ) ,
1297- stderr,
12981296 formatted_output : String :: new ( ) ,
1297+ aggregated_output : stderr,
12991298 } ) ,
13001299 OutputLinesParams {
1301- only_err : true ,
13021300 include_angle_pipe : true ,
13031301 include_prefix : true ,
13041302 } ,
@@ -1739,16 +1737,7 @@ mod tests {
17391737 duration : None ,
17401738 } ) ;
17411739 // Mark call complete so markers are ✓
1742- cell. complete_call (
1743- & call_id,
1744- CommandOutput {
1745- exit_code : 0 ,
1746- stdout : String :: new ( ) ,
1747- stderr : String :: new ( ) ,
1748- formatted_output : String :: new ( ) ,
1749- } ,
1750- Duration :: from_millis ( 1 ) ,
1751- ) ;
1740+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
17521741
17531742 let lines = cell. display_lines ( 80 ) ;
17541743 let rendered = render_lines ( & lines) . join ( "\n " ) ;
@@ -1770,16 +1759,7 @@ mod tests {
17701759 duration : None ,
17711760 } ) ;
17721761 // Call 1: Search only
1773- cell. complete_call (
1774- "c1" ,
1775- CommandOutput {
1776- exit_code : 0 ,
1777- stdout : String :: new ( ) ,
1778- stderr : String :: new ( ) ,
1779- formatted_output : String :: new ( ) ,
1780- } ,
1781- Duration :: from_millis ( 1 ) ,
1782- ) ;
1762+ cell. complete_call ( "c1" , CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
17831763 // Call 2: Read A
17841764 cell = cell
17851765 . with_added_call (
@@ -1792,16 +1772,7 @@ mod tests {
17921772 } ] ,
17931773 )
17941774 . unwrap ( ) ;
1795- cell. complete_call (
1796- "c2" ,
1797- CommandOutput {
1798- exit_code : 0 ,
1799- stdout : String :: new ( ) ,
1800- stderr : String :: new ( ) ,
1801- formatted_output : String :: new ( ) ,
1802- } ,
1803- Duration :: from_millis ( 1 ) ,
1804- ) ;
1775+ cell. complete_call ( "c2" , CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
18051776 // Call 3: Read B
18061777 cell = cell
18071778 . with_added_call (
@@ -1814,16 +1785,7 @@ mod tests {
18141785 } ] ,
18151786 )
18161787 . unwrap ( ) ;
1817- cell. complete_call (
1818- "c3" ,
1819- CommandOutput {
1820- exit_code : 0 ,
1821- stdout : String :: new ( ) ,
1822- stderr : String :: new ( ) ,
1823- formatted_output : String :: new ( ) ,
1824- } ,
1825- Duration :: from_millis ( 1 ) ,
1826- ) ;
1788+ cell. complete_call ( "c3" , CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
18271789
18281790 let lines = cell. display_lines ( 80 ) ;
18291791 let rendered = render_lines ( & lines) . join ( "\n " ) ;
@@ -1856,16 +1818,7 @@ mod tests {
18561818 start_time : Some ( Instant :: now ( ) ) ,
18571819 duration : None ,
18581820 } ) ;
1859- cell. complete_call (
1860- "c1" ,
1861- CommandOutput {
1862- exit_code : 0 ,
1863- stdout : String :: new ( ) ,
1864- stderr : String :: new ( ) ,
1865- formatted_output : String :: new ( ) ,
1866- } ,
1867- Duration :: from_millis ( 1 ) ,
1868- ) ;
1821+ cell. complete_call ( "c1" , CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
18691822 let lines = cell. display_lines ( 80 ) ;
18701823 let rendered = render_lines ( & lines) . join ( "\n " ) ;
18711824 insta:: assert_snapshot!( rendered) ;
@@ -1885,16 +1838,7 @@ mod tests {
18851838 duration : None ,
18861839 } ) ;
18871840 // Mark call complete so it renders as "Ran"
1888- cell. complete_call (
1889- & call_id,
1890- CommandOutput {
1891- exit_code : 0 ,
1892- stdout : String :: new ( ) ,
1893- stderr : String :: new ( ) ,
1894- formatted_output : String :: new ( ) ,
1895- } ,
1896- Duration :: from_millis ( 1 ) ,
1897- ) ;
1841+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
18981842
18991843 // Small width to force wrapping on both lines
19001844 let width: u16 = 28 ;
@@ -1914,16 +1858,7 @@ mod tests {
19141858 start_time : Some ( Instant :: now ( ) ) ,
19151859 duration : None ,
19161860 } ) ;
1917- cell. complete_call (
1918- & call_id,
1919- CommandOutput {
1920- exit_code : 0 ,
1921- stdout : String :: new ( ) ,
1922- stderr : String :: new ( ) ,
1923- formatted_output : String :: new ( ) ,
1924- } ,
1925- Duration :: from_millis ( 1 ) ,
1926- ) ;
1861+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
19271862 // Wide enough that it fits inline
19281863 let lines = cell. display_lines ( 80 ) ;
19291864 let rendered = render_lines ( & lines) . join ( "\n " ) ;
@@ -1942,16 +1877,7 @@ mod tests {
19421877 start_time : Some ( Instant :: now ( ) ) ,
19431878 duration : None ,
19441879 } ) ;
1945- cell. complete_call (
1946- & call_id,
1947- CommandOutput {
1948- exit_code : 0 ,
1949- stdout : String :: new ( ) ,
1950- stderr : String :: new ( ) ,
1951- formatted_output : String :: new ( ) ,
1952- } ,
1953- Duration :: from_millis ( 1 ) ,
1954- ) ;
1880+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
19551881 let lines = cell. display_lines ( 24 ) ;
19561882 let rendered = render_lines ( & lines) . join ( "\n " ) ;
19571883 insta:: assert_snapshot!( rendered) ;
@@ -1969,16 +1895,7 @@ mod tests {
19691895 start_time : Some ( Instant :: now ( ) ) ,
19701896 duration : None ,
19711897 } ) ;
1972- cell. complete_call (
1973- & call_id,
1974- CommandOutput {
1975- exit_code : 0 ,
1976- stdout : String :: new ( ) ,
1977- stderr : String :: new ( ) ,
1978- formatted_output : String :: new ( ) ,
1979- } ,
1980- Duration :: from_millis ( 1 ) ,
1981- ) ;
1898+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
19821899 let lines = cell. display_lines ( 80 ) ;
19831900 let rendered = render_lines ( & lines) . join ( "\n " ) ;
19841901 insta:: assert_snapshot!( rendered) ;
@@ -1997,16 +1914,7 @@ mod tests {
19971914 start_time : Some ( Instant :: now ( ) ) ,
19981915 duration : None ,
19991916 } ) ;
2000- cell. complete_call (
2001- & call_id,
2002- CommandOutput {
2003- exit_code : 0 ,
2004- stdout : String :: new ( ) ,
2005- stderr : String :: new ( ) ,
2006- formatted_output : String :: new ( ) ,
2007- } ,
2008- Duration :: from_millis ( 1 ) ,
2009- ) ;
1917+ cell. complete_call ( & call_id, CommandOutput :: default ( ) , Duration :: from_millis ( 1 ) ) ;
20101918 let lines = cell. display_lines ( 28 ) ;
20111919 let rendered = render_lines ( & lines) . join ( "\n " ) ;
20121920 insta:: assert_snapshot!( rendered) ;
@@ -2033,9 +1941,8 @@ mod tests {
20331941 & call_id,
20341942 CommandOutput {
20351943 exit_code : 1 ,
2036- stdout : String :: new ( ) ,
2037- stderr,
20381944 formatted_output : String :: new ( ) ,
1945+ aggregated_output : stderr,
20391946 } ,
20401947 Duration :: from_millis ( 1 ) ,
20411948 ) ;
@@ -2077,9 +1984,8 @@ mod tests {
20771984 & call_id,
20781985 CommandOutput {
20791986 exit_code : 1 ,
2080- stdout : String :: new ( ) ,
2081- stderr,
20821987 formatted_output : String :: new ( ) ,
1988+ aggregated_output : stderr,
20831989 } ,
20841990 Duration :: from_millis ( 5 ) ,
20851991 ) ;
0 commit comments