Skip to content

fix tmp user contexts #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Dec 1, 2024
Merged

Conversation

sameelarif
Copy link
Member

why

Current handling causes errors on Windows, this PR makes handling consistent on both OS.

what changed

Ensured the tmp folder is created in within the project directory, and used the path module to ensure it works cross-platform.

test plan

Run evals on Windows and Mac. Can confirm it's running well on Windows. I don't have access to a MacOS system atm, so that needs to be tested.

Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: 5a839da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@browserbasehq/stagehand Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kamath kamath self-requested a review November 25, 2024 22:33
@kamath
Copy link
Contributor

kamath commented Nov 26, 2024

Have you tried running this with caching? My concern is primarily around that; we use the tmp directory for maintaining the local LLM cache

@sameelarif
Copy link
Member Author

Can test shortly, though in theory it shouldn't have any effect on LLM caching as they create separate sub directories

@sameelarif
Copy link
Member Author

image

Works smoothly as tested with the example script after enabling caching @kamath

@kamath kamath linked an issue Dec 1, 2024 that may be closed by this pull request
@seanmcguire12 seanmcguire12 merged commit a2366fe into browserbase:main Dec 1, 2024
1 check failed
@github-actions github-actions bot mentioned this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no such file or directory, mkdtemp '/tmp/pwtestXXXXXX'
3 participants