@@ -39,7 +39,12 @@ test('keeps normal status compact while retaining proven-stale claims for explic
3939 JSON . stringify ( {
4040 schemaVersion : 1 ,
4141 deviceKey : 'local:android:none:stale' ,
42- device : { platform : 'android' , id : 'stale' , name : 'Stale Pixel' , kind : 'emulator' } ,
42+ device : {
43+ platform : 'android' ,
44+ id : 'stale' ,
45+ name : 'Stale Pixel; echo no' ,
46+ kind : 'emulator' ,
47+ } ,
4348 session : 'stale-session' ,
4449 workspace : '/worktrees/stale' ,
4550 stateDir : process . cwd ( ) ,
@@ -70,13 +75,16 @@ test('keeps normal status compact while retaining proven-stale claims for explic
7075 assert . equal ( stale . calls . length , 0 ) ;
7176 const payload = JSON . parse ( stale . stdout ) ;
7277 assert . equal ( payload . data . claims . length , 1 ) ;
73- assert . equal ( payload . data . claims [ 0 ] . device . name , 'Stale Pixel' ) ;
78+ assert . equal ( payload . data . claims [ 0 ] . device . name , 'Stale Pixel; echo no ' ) ;
7479 assert . equal ( payload . data . claims [ 0 ] . recovery , undefined ) ;
7580
76- const scoped = await runCliCapture ( [ 'device' , 'status' , '--serial ' , 'stale ' ] , {
81+ const scoped = await runCliCapture ( [ 'device' , 'status' , '--device ' , 'Stale Pixel; echo no ' ] , {
7782 env : { AGENT_DEVICE_CLAIMS_DIR : claimsDir } ,
7883 } ) ;
79- assert . match ( scoped . stdout , / i n s p e c t w i t h : a g e n t - d e v i c e d e v i c e s t a t u s - - s e r i a l s t a l e - - s t a l e / ) ;
84+ assert . match (
85+ scoped . stdout ,
86+ / i n s p e c t w i t h : a g e n t - d e v i c e d e v i c e s t a t u s - - d e v i c e ' S t a l e P i x e l ; e c h o n o ' - - s t a l e / ,
87+ ) ;
8088 } finally {
8189 fs . rmSync ( claimsDir , { recursive : true , force : true } ) ;
8290 }
0 commit comments