fix: browser improvements, playwright hotfix. #186
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
re-introducing a dedicated base image, improving local development workflows, and adding some build scripts.
browser-baseimage (hudevals/hud-browser-base:latest), moving all core system/browser dependencies and Playwright installation intoenvironments/browser/browser-base/Dockerfile. The main environment Dockerfile now uses this base image, resulting in a cleaner and faster build process.Bgu fixes for Browser Environment:
Local development improvements:
environments/browser/Dockerfile.localto support building the browser environment with a local version ofhud-python, for development. This Dockerfile copies local sources and installs dependencies in editable mode.Build scripts:
scripts/build-and-push-env.sh, - for building and pushing multi-architecture (arm64, amd64) Docker images and manifests for any HUD environment.scripts/build_local.sh, - for building any HUD environment locally with support forDockerfile.localand automatic lock file updates.Note
Adds a reusable browser base image and refactors the browser environment to use it, improves Playwright page handling/navigation, and adds scripts for multi-arch builds and local development.
environments/browser/browser-basewith Playwright/Chromium/VNC; publish ashudevals/hud-browser-base:latest.environments/browser/Dockerfilenow builds from the new base image.environments/browser/Dockerfile.localto build with localhud-python(editable install).hud/tools/playwright.pyreuses existing page if present (esp. CDP), else creates a new one.environments/browser/server/tools.pynow navigates withwait_for_load_state="networkidle"after launching apps.scripts/build-and-push-env.sh: build/push multi-arch images and manifests for any environment.scripts/build_local.sh: build environments locally (supportsDockerfile.local) and updateshud.lock.yamlimage reference.Written by Cursor Bugbot for commit 91f9416. This will update automatically on new commits. Configure here.