@@ -31,6 +31,8 @@ const EXEC_STREAM_SIZE: PtySize = PtySize {
3131const STARTUP_INPUT : & [ u8 ] = b"exercise active turn resize Q7Z9" ;
3232const STARTUP_INPUT_SENTINEL : & str = "Q7Z9" ;
3333const MULTILINE_INPUT_SENTINEL : & str = "M7Q4" ;
34+ // Must not match the product version in the startup header (for example beta).
35+ const MULTILINE_TAIL_SENTINEL : & str = "Z9R2" ;
3436const RECOVERY_INPUT : & [ u8 ] = b"READY_AFTER_CANCEL K4W8" ;
3537const RECOVERY_INPUT_SENTINEL : & str = "K4W8" ;
3638
@@ -117,12 +119,16 @@ fn interactive_startup_survives_resize_multiline_input_and_emits_cleanup() {
117119 // Ratatui emits only changed cells, so the sentinel must not share characters
118120 // with the startup placeholder at the same screen positions.
119121 #[ cfg( unix) ]
120- process. write ( b"\x1b [200~M7Q4\r \n beta\x1b [201~" ) ;
122+ process. write (
123+ format ! ( "\x1b [200~{MULTILINE_INPUT_SENTINEL}\r \n {MULTILINE_TAIL_SENTINEL}\x1b [201~" )
124+ . as_bytes ( ) ,
125+ ) ;
121126 #[ cfg( windows) ]
122127 {
123128 let mut rapid_input = MULTILINE_INPUT_SENTINEL . as_bytes ( ) . to_vec ( ) ;
124129 rapid_input. extend ( std:: iter:: repeat_n ( b'a' , 251 ) ) ;
125- rapid_input. extend_from_slice ( b"\r beta" ) ;
130+ rapid_input. push ( b'\r' ) ;
131+ rapid_input. extend_from_slice ( MULTILINE_TAIL_SENTINEL . as_bytes ( ) ) ;
126132 process. write ( & rapid_input) ;
127133 }
128134
@@ -132,7 +138,7 @@ fn interactive_startup_survives_resize_multiline_input_and_emits_cleanup() {
132138 "interactive startup did not render multiline input" ,
133139 ) ;
134140 process. expect_output (
135- "beta" ,
141+ MULTILINE_TAIL_SENTINEL ,
136142 Duration :: from_secs ( 15 ) ,
137143 "interactive startup did not render the multiline input tail" ,
138144 ) ;
@@ -152,7 +158,7 @@ fn interactive_startup_survives_resize_multiline_input_and_emits_cleanup() {
152158 "paste text was not rendered:\n {output}"
153159 ) ;
154160 assert ! (
155- output. contains( "beta" ) ,
161+ output. contains( MULTILINE_TAIL_SENTINEL ) ,
156162 "paste tail was not rendered:\n {output}"
157163 ) ;
158164 assert ! (
0 commit comments