feat: allow disabling update checks - #634
Open
MagMueller wants to merge 1 commit into
Open
Conversation
MagMueller
marked this pull request as ready for review
August 21, 2026 05:15
This was referenced Aug 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
BH_UPDATE_CHECK=0to disable the CLI update banner before cache or network accessWhy
Long-lived orchestrators can run Browser Harness in isolated runtime directories. Their lifecycle probes and cleanup commands should not make an unrelated PyPI request or wait on its timeout. This gives trusted callers a narrow opt-out without changing normal CLI behavior.
Validation
uv run --with pytest pytest -q(145 passed)python3 -m compileall -q src testsgit diff --checkThis is intentionally separate from #626 and is not merged.
Summary by cubic
Allow disabling update banner update checks via the BH_UPDATE_CHECK environment variable to avoid network/cache access in CI or hermetic environments. Previously, print_update_banner always read cache and could trigger a network call; now it can be skipped.
Written for commit 37849b8. Summary will update on new commits.