Skip to content

Commit 15f737a

Browse files
committed
patch osworld
1 parent 4d9ecf2 commit 15f737a

File tree

14 files changed

+3609
-8
lines changed

14 files changed

+3609
-8
lines changed

CHANGELOG.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,13 @@
233233
We're thrilled to announce the release of Stagehand 2.0, bringing significant improvements to make browser automation more powerful, faster, and easier to use than ever before.
234234

235235
### 🚀 New Features
236-
237236
- **Introducing `stagehand.agent`**: A powerful new way to integrate SOTA Computer use models or Browserbase's [Open Operator](https://operator.browserbase.com) into Stagehand with one line of code! Perfect for multi-step workflows and complex interactions. [Learn more](https://docs.stagehand.dev/concepts/agent)
238237
- **Lightning-fast `act` and `extract`**: Major performance improvements to make your automations run significantly faster.
239238
- **Enhanced Logging**: Better visibility into what's happening during automation with improved logging and debugging capabilities.
240239
- **Comprehensive Documentation**: A completely revamped documentation site with better examples, guides, and best practices.
241240
- **Improved Error Handling**: More descriptive errors and better error recovery to help you debug issues faster.
242241

243242
### 🛠️ Developer Experience
244-
245243
- **Better TypeScript Support**: Enhanced type definitions and better IDE integration
246244
- **Better Error Messages**: Clearer, more actionable error messages to help you debug faster
247245
- **Improved Caching**: More reliable action caching for better performance
@@ -502,7 +500,6 @@
502500
- [#316](https://github.com/browserbase/stagehand/pull/316) [`902e633`](https://github.com/browserbase/stagehand/commit/902e633e126a58b80b757ea0ecada01a7675a473) Thanks [@kamath](https://github.com/kamath)! - rename browserbaseResumeSessionID -> browserbaseSessionID
503501

504502
- [#296](https://github.com/browserbase/stagehand/pull/296) [`f11da27`](https://github.com/browserbase/stagehand/commit/f11da27a20409c240ceeea2003d520f676def61a) Thanks [@kamath](https://github.com/kamath)! - - Deprecate fields in `init` in favor of constructor options
505-
506503
- Deprecate `initFromPage` in favor of `browserbaseResumeSessionID` in constructor
507504
- Rename `browserBaseSessionCreateParams` -> `browserbaseSessionCreateParams`
508505

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)