File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,6 @@ export const osworld: EvalFunction = async ({
9898 agent . setScreenshotCollector ( screenshotCollector ) ;
9999 }
100100
101- let screenshots : Buffer [ ] = [ ] ;
102- let result ;
103-
104101 screenshotCollector . start ( ) ;
105102
106103 // Execute the task using the pre-initialized agent with timeout
@@ -117,9 +114,9 @@ export const osworld: EvalFunction = async ({
117114 ) ,
118115 ) ;
119116
120- result = await Promise . race ( [ executionPromise , timeoutPromise ] ) ;
117+ await Promise . race ( [ executionPromise , timeoutPromise ] ) ;
121118 // Always stop collecting and get all screenshots, even on error
122- screenshots = screenshotCollector . stop ( ) ;
119+ const screenshots = screenshotCollector . stop ( ) ;
123120
124121 logger . log ( {
125122 category : "evaluation" ,
You can’t perform that action at this time.
0 commit comments