Skip to content

feat(admin): BU_NO_OPEN to suppress liveUrl auto-open - #542

Open
dylanpulver wants to merge 1 commit into
browser-use:mainfrom
dylanpulver:feat/bu-no-open-suppress
Open

feat(admin): BU_NO_OPEN to suppress liveUrl auto-open#542
dylanpulver wants to merge 1 commit into
browser-use:mainfrom
dylanpulver:feat/bu-no-open-suppress

Conversation

@dylanpulver

@dylanpulver dylanpulver commented Jul 20, 2026

Copy link
Copy Markdown

What

Adds a BU_NO_OPEN env var that stops start_remote_daemon from auto-opening the cloud browser's liveUrl in the local default browser. The URL is still printed.

Why

For unattended / headless-style automation (audit runs, batch panels, cron), auto-opening the liveUrl pops a local browser tab and steals window focus every time a cloud browser is provisioned. There's currently no way to opt out short of running on a machine with no GUI.

Concretely: driving many Perplexity/ChatGPT samples on cloud browsers from a macOS workstation, each start_remote_daemon opened a tab and grabbed focus mid-run. BU_NO_OPEN=1 makes the same flow fully background.

Change

_show_live_url skips the webbrowser.open when BU_NO_OPEN is set (still prints the URL, same as the no-GUI path). One-line guard, plus a unit test covering both branches.

Existing behavior is unchanged when BU_NO_OPEN is unset.


Summary by cubic

Add BU_NO_OPEN env var to suppress auto-opening the cloud browser liveUrl in the local default browser when running start_remote_daemon. The URL is still printed; default behavior remains when BU_NO_OPEN is unset, avoiding focus-stealing tabs in unattended runs.

Written for commit b731272. Summary will update on new commits.

Review in cubic

For unattended/audit runs, auto-opening the cloud browser's liveUrl in the
local default browser is an unwanted popup that steals focus. BU_NO_OPEN
skips the auto-open (URL is still printed). Enables fully off-machine,
no-local-window browser automation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SY7iBojYKGTdNTS78GKZSZ

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 2 files

Re-trigger cubic

@Kastan97 Kastan97 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ollie (CTO) Review: APPROVED

What this does: Adds BU_NO_OPEN env var to suppress browser auto-open of the liveUrl on bu run. Simple, well-scoped, tested.

Good to merge once CI passes.

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