Skip to content

Commit ac4cb00

Browse files
committed
patch osworld
1 parent 4d9ecf2 commit ac4cb00

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

evals/tasks/agent/osworld.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)