@@ -115,7 +115,7 @@ test.describe('workspace transport baseline', () => {
115115 workspace_tree : expect . any ( Number ) ,
116116 } ) ;
117117 expect ( Object . values ( baseline . initialCounts ) . every ( ( count ) => count >= 1 ) ) . toBe ( true ) ;
118- expect ( baseline . countsBeforeNextPoll ) . toEqual ( baseline . initialCounts ) ;
118+ expectPollCountsNotToRegressFrom ( baseline . countsBeforeNextPoll , baseline . initialCounts ) ;
119119 expectPollCountsToAdvanceFrom ( baseline . countsAfterNextPoll , baseline . initialCounts ) ;
120120 } ) ;
121121
@@ -615,6 +615,13 @@ function expectPollCountsToAdvanceFrom(actual: PollCounts, baseline: PollCounts)
615615 expect ( actual . workspace_tree ) . toBeGreaterThan ( baseline . workspace_tree ) ;
616616}
617617
618+ function expectPollCountsNotToRegressFrom ( actual : PollCounts , baseline : PollCounts ) {
619+ expect ( actual . git_status ) . toBeGreaterThanOrEqual ( baseline . git_status ) ;
620+ expect ( actual . git_changes ) . toBeGreaterThanOrEqual ( baseline . git_changes ) ;
621+ expect ( actual . worktree_list ) . toBeGreaterThanOrEqual ( baseline . worktree_list ) ;
622+ expect ( actual . workspace_tree ) . toBeGreaterThanOrEqual ( baseline . workspace_tree ) ;
623+ }
624+
618625function rpcCommand ( url : string ) {
619626 return url . split ( '/api/rpc/' ) [ 1 ] ?. split ( '?' ) [ 0 ] ?? '' ;
620627}
@@ -638,7 +645,9 @@ function buildTerminalProbeInput(target: WorkspaceHandle['target']) {
638645}
639646
640647function buildAgentProbeCommand ( target : WorkspaceHandle [ 'target' ] ) {
641- return isWindowsNativeTarget ( target ) ? 'more' : 'cat' ;
648+ return isWindowsNativeTarget ( target )
649+ ? 'powershell -NoLogo -NoProfile -Command "$line = [Console]::In.ReadLine(); if ($null -ne $line) { Write-Output $line }"'
650+ : 'cat' ;
642651}
643652
644653function countTrackedSockets ( tracker : TransportTrackerSnapshot , fragment : string ) {
0 commit comments