@@ -467,16 +467,16 @@ test("agent session input routes through terminal channel runtime ids with contr
467467
468468 assert . match (
469469 source ,
470- / s e n d T e r m i n a l C h a n n e l I n p u t \( t a b \. i d , t a b \. c o n t r o l l e r \. d e v i c e I d , t a b \. c o n t r o l l e r \. c l i e n t I d , t a b \. c o n t r o l l e r \. f e n c i n g T o k e n , s e s s i o n \. t e r m i n a l R u n t i m e I d , i n p u t \) / ,
470+ / w r i t e T e r m i n a l R e q u e s t \( t a b \. i d , t a b \. c o n t r o l l e r , n u m e r i c T e r m i n a l I d , i n p u t \) / ,
471471 ) ;
472- assert . match ( source , / i f \( ! s e s s i o n \. t e r m i n a l R u n t i m e I d \) r e t u r n f a l s e ; / ) ;
472+ assert . match ( source , / i f \( \ !s e s s i o n \. t e r m i n a l R u n t i m e I d \| \| s e s s i o n \. r u n t i m e L i v e n e s s ! = = " a t t a c h e d " \| \| \! s e s s i o n \. t e r m i n a l I d \) r e t u r n f a l s e ; / ) ;
473473 assert . match ( source , / c o n s t b u f f e r e d I n p u t = a g e n t T e r m i n a l I n p u t B u f f e r R e f \. c u r r e n t \. g e t \( p a n e I d \) \? \? " " ; / ) ;
474474 assert . match ( source , / c l e a r A g e n t T e r m i n a l I n p u t F l u s h T i m e r \( p a n e I d \) ; / ) ;
475475 assert . match ( source , / c o n s u m e T e r m i n a l C h a n n e l I n p u t F r a g m e n t \( b u f f e r e d I n p u t , d a t a \) / ) ;
476476 assert . match ( source , / i f \( p e n d i n g = = = " \\ u 0 0 1 b " \) \{ [ \s \S ] * ?s c h e d u l e A g e n t T e r m i n a l E s c a p e F l u s h \( p a n e I d \) ; / ) ;
477477 assert . match ( source , / v o i d f o r w a r d A g e n t T e r m i n a l I n p u t \( p a n e I d , p e n d i n g \) ; / ) ;
478478 assert . match ( source , / a w a i t f o r w a r d A g e n t T e r m i n a l I n p u t \( p a n e I d , f o r w a r d e d \) ; / ) ;
479- assert . doesNotMatch ( source , / i f \( ! s e s s i o n \. t e r m i n a l I d \| \| ! s e s s i o n \. t e r m i n a l R u n t i m e I d \) r e t u r n f a l s e ; / ) ;
479+ assert . doesNotMatch ( source , / i f \( ! s e s s i o n \. t e r m i n a l I d \| \| \ !s e s s i o n \. t e r m i n a l R u n t i m e I d \) r e t u r n f a l s e ; / ) ;
480480 assert . doesNotMatch ( source , / i f \( r e s u l t \. b o o t _ i n p u t \) [ \s \S ] * ?w r i t e W o r k s p a c e T e r m i n a l D a t a \( / ) ;
481481 assert . doesNotMatch ( source , / s a n i t i z e T e r m i n a l C h a n n e l I n p u t \( d a t a \) / ) ;
482482 assert . doesNotMatch ( source , / \^ \\ x 1 B \\ \[ \[ 0 - 9 ; \] \* \[ R \? A H F G S T I c J J K M S X h \] / ) ;
@@ -488,7 +488,7 @@ test("agent pane session readiness starts runtimes from runtime identity instead
488488 "utf8" ,
489489 ) ;
490490
491- assert . match ( source , / i f \( ! s e s s i o n S n a p s h o t \. t e r m i n a l R u n t i m e I d \) \{ / ) ;
491+ assert . match ( source , / i f \( ! i s S e s s i o n R u n t i m e W r i t a b l e \( s e s s i o n S n a p s h o t \) \) \{ / ) ;
492492 assert . doesNotMatch ( source , / i f \( ! s e s s i o n S n a p s h o t \. t e r m i n a l I d \) \{ / ) ;
493493} ) ;
494494
0 commit comments