Skip to content

chore: don't fail when browser is already installed #268

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

Closed
wants to merge 1 commit into from

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Apr 25, 2025

Some models like calling browser_install just to be sure. For users of channels like chrome or msedge, this call throws an error; making the model think that it can't use a browser at all!

@Skn0tt Skn0tt requested a review from pavelfeldman April 25, 2025 15:15
@Skn0tt Skn0tt self-assigned this Apr 25, 2025
if (code === 0)
resolve();
resolve(`// Browser ${channel} installed`);
else if (output.includes('already installed'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's going to break over time, especially if we don't have a test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What'd you recommend instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make installing chrome idempotent upstream?

@Skn0tt
Copy link
Member Author

Skn0tt commented Apr 29, 2025

closing in favour of microsoft/playwright#35791

@Skn0tt Skn0tt closed this Apr 29, 2025
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.

2 participants