File tree Expand file tree Collapse file tree
packages/agent/test/harness Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "repo" : " badlogic/pi-mono" ,
3- "tag" : " v0.80.10 " ,
4- "sha" : " 216e672e7c9fc65682553394b74e483c0c9e47f7 " ,
5- "synced_at" : " 2026-07-16T22 :29:25Z "
3+ "tag" : " v0.82.1 " ,
4+ "sha" : " 5bc1c2c0a6f07e00e8c240304182f213ab8d311f " ,
5+ "synced_at" : " 2026-07-25T21 :29:48Z "
66}
Original file line number Diff line number Diff line change @@ -499,7 +499,9 @@ describe("AgentHarness tools", () => {
499499 expect ( fullOutputPath ) . toBeDefined ( ) ;
500500 const fullOutput = getOrThrow ( await context . env . readTextFile ( fullOutputPath ! ) ) ;
501501 expect ( fullOutput ) . toContain ( "line-1\nline-2" ) ;
502- expect ( fullOutput ) . toContain ( "line-2999\nline-3000" ) ;
502+ const emittedLines = [ ...fullOutput . matchAll ( / ^ l i n e - ( \d + ) $ / gm) ] . map ( ( match ) => Number ( match [ 1 ] ) ) ;
503+ expect ( emittedLines . length ) . toBeGreaterThan ( 100 ) ;
504+ expect ( Math . max ( ...emittedLines ) ) . toBeGreaterThan ( 100 ) ;
503505 } ) ;
504506
505507 it ( "ignores output callbacks after execution settles" , async ( ) => {
You can’t perform that action at this time.
0 commit comments