Skip to content

Add Chromium binary check and auto-install if not available - #440

Merged
xingyaoww merged 10 commits into
mainfrom
ht/error-if-chronium-not-installed
Sep 24, 2025
Merged

xingyaoww merged 10 commits into
mainfrom
ht/error-if-chronium-not-installed

Conversation

@ryanhoangt

@ryanhoangt ryanhoangt commented Sep 23, 2025 •

Copy link
Copy Markdown
Member

Related to #398, but didn't fix it completely

@xingyaoww xingyaoww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks ok but it still doesn't fix my frozen import issue :(

Can we add timeout to the import?

Image

@xingyaoww
xingyaoww enabled auto-merge (squash) September 23, 2025 14:39
@ryanhoangt
ryanhoangt disabled auto-merge September 23, 2025 14:44
@ryanhoangt

Copy link
Copy Markdown
Member Author

Hmm that's weird, let me debug a bit more before we merge this

@ryanhoangt

Copy link
Copy Markdown
Member Author

@xingyaoww I've tried running uv run agent-server on a fresh VM on main (without chromium) after make build and it seems to be able to start the server normally. It's a bit tricky for me to repro the issue :( can you maybe delete the venv and rebuild to see if it helps 🤔

Screenshot 2025-09-23 at 22 18 29

@xingyaoww

Copy link
Copy Markdown
Contributor

@ryanhoangt if you can't repro, maybe adding a timeout check on the import should be sufficient for this PR.

We will install playwright to docker so as long as it runs in docker, it should be ok

@ryanhoangt

Copy link
Copy Markdown
Member Author

maybe adding a timeout check on the import should be sufficient for this PR.

Sounds good, I just added a timeout mechanism for the constructor of BrowserToolExecutor, can you give it another try to see if the timeout does indeed happen?

@xingyaoww xingyaoww left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've tested locally and confirmed now starting a conversation with BrowserUseToolSet without playwright throw exceptions properly!

@xingyaoww
xingyaoww merged commit 95fffbe into main Sep 24, 2025
@xingyaoww
xingyaoww deleted the ht/error-if-chronium-not-installed branch September 24, 2025 15:37
@xingyaoww

Copy link
Copy Markdown
Contributor

Attached logs!

{
  "detail": "Internal Server Error",
  "exception": "Chromium is required for browser operations but is not installed.\n\nTo install Chromium, run one of the following commands:\n  1. Using uvx (recommended): uvx playwright install chromium --with-deps --no-shell\n  2. Using pip: pip install playwright && playwright install chromium\n\n"
}

@github-actions

Copy link
Copy Markdown
Contributor

Agent Server image for this PR

Pull (multi-arch manifest):

docker pull ghcr.io/all-hands-ai/agent-server:d069435

Run:

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-d069435 \
  ghcr.io/all-hands-ai/agent-server:d069435

This tag is a multi-arch manifest (amd64/arm64). Your client pulls the right arch automatically.

StressTestor pushed a commit to StressTestor/software-agent-sdk that referenced this pull request Jun 1, 2026
…s#440)

Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
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